Bug #13375 Updated: bug with include() ?
| From: | yohgaki@php.net | Date: | Wed, 12 Dec 2001 12:15:13 +0000 |
| Subject: | Bug #13375 Updated: bug with include() ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73275@lists.php.net to get a copy of this message | ||
ID: 13375
Updated by: yohgaki
Reported By: kumar@chicagomodular.com
Old Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: LINUX
PHP Version: 4.0.5
New Comment:
Cannot reproduce with 4.1.0.
Do you still have problem with 4.1.0?
Previous Comments:
------------------------------------------------------------------------
[2001-09-21 08:33:21] kumar@chicagomodular.com
hmmm.. didn't catch this in the include() notes or docs:
PHP 4.0.5 doesn't seem to process an include() file
correctly if the file has comments on the first line after
the "<?"
took me a while to try it without the comments but my
function only worked when I did. the include file looked
like this:
<?
//some comments on first line
function null_zero_val($zero_val) {
if ($zero_val == '0') {
$zero_val = '';
return $zero_val;
}
else {
return $zero_val;
}
}
?>
before I took the comments out all the code was returned in
the web browser as text without line breaks and an error
was generated saying call to undefined function
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13375&edit=1