|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-12 07:15 UTC] yohgaki@php.net
[2001-12-12 20:56 UTC] kumar at chicagomodular dot com
[2001-12-13 00:56 UTC] yohgaki@php.net
[2002-01-03 18:00 UTC] lobbin@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 11:00:01 2025 UTC |
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