php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23857 Trouble with <html><head> Tags -- Scriptingengine dont work
Submitted: 2003-05-28 09:55 UTC Modified: 2003-06-01 10:39 UTC
From: php at panzyk dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.1 OS: Red Hat 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at panzyk dot net
New email:
PHP Version: OS:

 

 [2003-05-28 09:55 UTC] php at panzyk dot net
Hello,

I got a strange Problem with PhP4.3.1
This document will not be executed by PHP,and PHPCode
stands in cleartext into the document:

----- snip -------------------------------
<html><head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Titel</title>
</head><html>
<? phpinfo();?>

After changing one line:
----- snip -------------------------------
<?="<html><head>"?>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Titel</title>
</head><html>
<? phpinfo();?>

With changing that single "<html><head>"-line i got the full phpinformation. And all script-stuff is working fine.

Here some installparameters:

some installparameters:
'./configure' '--prefix=/opt/lampp' '--with-apxs2=/opt/lampp/bin/apxs' '--with-config-file-path=/opt/lampp/etc' '--with-mysql=/opt/lampp' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf' '--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-ftp' '--with-gdbm=/opt/lampp' '--with-jpeg-dir=/opt/lampp' '--with-png-dir=/opt/lampp' '--with-tiff-dir=/opt/lampp' '--with-freetype-dir=/opt/lampp' '--without-xpm' '--with-zlib=yes' '--with-zlib-dir=/opt/lampp' '--with-openssl=/opt/lampp' '--with-expat-dir=/opt/lampp' '--enable-xslt' '--with-xslt-sablot=/opt/lampp' '-with-ming=/opt/lampp' '--with-dom=/opt/lampp' '--with-ldap=/opt/lampp' '--with-ncurses=/opt/lampp' '--with-gd' '--with-imap-dir=/opt/lampp' '--with-imap-ssl' '--with-imap=/opt/lampp' '--with-gettext=/opt/lampp' '--with-mssql=/opt/lampp' 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-28 12:35 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-05-28 20:35 UTC] php at panzyk dot net
Its an precompiled lampp version from http://www.apachefriends.org on an pentium 2 System with an fresh Installed RedHat 8 Psyche System, Serverinstall. 

I cant reproduce the same problem on an Xbox-Debian-Compiled Version of PHP 4.3.1. 
When i use the php-Writing Methode to write that html-Tags or remove the <html><head> tags, all scripts working fine.

The PHP-Interpreter will not crash or something like that, he will just not interprete any line of code and the hole File will be send in cleartext to the browser. If u need more informations, ask me.
 [2003-05-28 20:42 UTC] sniper@php.net
We don't support any other pre-compiled binaries but
the win32 ones. It's most likely some bug in that package.
You can always prove me wrong and compile PHP yourself on that machine..

 [2003-05-29 01:53 UTC] php at panzyk dot net
After some reading at apachefriends.org 's forum i found a link for this problem. Seems to be a known Bug: Its a problem with Execute-Rights-Flags ... when that flag is set, code with Html will not be executed.

I checked my old non working example without execution-rights, what shall i say, now it works.

Maybe it helps ... i stop the bug-report for now :)
 [2003-05-29 03:05 UTC] sniper@php.net
I've no idea what that flag is but it definately has nothing to do with PHP..

 [2003-05-31 11:35 UTC] oswald at apachefriends dot org
The bug was fixed in PHP 4.3.2. See bug report #22321.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 13:01:28 2025 UTC