RE: [PHP] weird parser error messages since PHP4

From: Date: Sun, 16 Jul 2000 16:24:59 +0000
Subject: RE: [PHP] weird parser error messages since PHP4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6824@lists.php.net to get a copy of this message
Hi, it seems as if you are actually right, but what strikes me is that it worked different in PHP3. And at least I found it much more practical for debugging the way it was implemented in PHP3. BTW: I could not see this note in the documentation and not on the list of incompatibilities. Florian -----Original Message----- From: Faisal Nasim [mailto:faisal@nasim.org] Hi, require() is different from include(). If you require() a file, that file is now the current file and the line numbers don't start from 0. Read the documentation about require(). Enjoy! Faisal >>Since I upgraded to PHP4 the parser error messages seem to be messed up. I >>do not get the actual file name and proper line number but instead the name >>of a file I included with require and a big line number (maybe everything is >>added up). >>Does anybody else know this problem? Or is this a bug, which should be >>submitted? >> >>Plattform: PHP 4.0.1-Dev (from download.swwwing.com) as ISAPI module on >>WinNT 4, SP6a, IIS4 with the OCI8 and GD extensions.

« previous php.general (#6824) next »