Bug #5125: mod_php stops without warning because of incorrect code
| From: | webmaster at peda dot net | Date: | Mon, 19 Jun 2000 12:48:37 +0000 |
| Subject: | Bug #5125: mod_php stops without warning because of incorrect code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21724@lists.php.net to get a copy of this message | ||
From: webmaster@peda.net
Operating system: Linux 2.2.14-5 (RH6.2)
PHP version: 3.0.16
PHP Bug Type: Parser error
Bug description: mod_php stops without warning because of incorrect code
Including or inserting following non-php code as php3 code causes parser to stop before running any
code and mod_php returns document without data (= browser sees length 0 bytes). It should be noted
that following code isn't supposed to work but parser doesn't give any reason for failure
- nothing goes into logs or browser. Interesting enough php doesn't even enter forever loop -
child quits normally.
Tested with mod_php distributed with Mandrake 7.1 and mod_php build with "./configure
'--with-apxs=/usr/sbin/apxs' '--with-mysql=/usr/local/mysql'".
<?php
# Note that we DO NOT run following function - parser just stops??
function phpDie()
{
# comment following to make script working.
@($a,$b) = print("PHP3 - Yet another parser bug");
return 1;
}
print("It works now?!?");
?>