Re: [PHP4BETA] syntax error causes segfault
| From: | Zeev Suraski | Date: | Wed, 02 Jun 1999 22:20:12 +0000 |
| Subject: | Re: [PHP4BETA] syntax error causes segfault | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1251@lists.php.net to get a copy of this message | ||
I doubt it kills the server, you just don't see the parse error due to error_reporting being set too low (again, this is a most probably, but unless you see a segfault in the logs, I wouldn't imagine it's a segfault).
Unlike PHP 3.0, with PHP 4.0's compile&execute approach, not a single line of your script gets executed unless it compiles successfully.
Ensure you have error_reporting set high enough (do that by putting a page with phpinfo() in it, and see the value for error_reporting). If you use an old php3.ini file, you most probably have error_reporting set to 7, which is not really any good with PHP 4.0 - change that to 1023.
Zeev
At 22:23 01/06/99 , Davor Cengija wrote:
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.ilthis is working fine, of course:for ($j=0; $j<10; $j++) {$polje[$j] = $j; echo 'j='.$j.'<br>polje[j]='.$polje[$j].'.<br>'; // mark .'.<br> echo 'velièina polja' . count($polje) . '<br>';}and this will kill the server (document contains no data, netscape says)for ($j=0; $j<10; $j++) { $polje[$j] = $j; echo 'j='.$j.'<br>polje[j]='.$polje[$j]'.<br>'; //missing dot before ' echo 'velièina polja' . count($polje) . '<br>'; }so...php should complain about irregular syntax--vDavor Cengija davor@linuxfan.com ========================================== "No, thank you, please. I'm only lookin'." -- PHP 4 Beta