php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11562 PHP crashes everytime with little syntax error
Submitted: 2001-06-19 11:13 UTC Modified: 2001-07-22 13:19 UTC
From: wachters at iae dot nl Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.5 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wachters at iae dot nl
New email:
PHP Version: OS:

 

 [2001-06-19 11:13 UTC] wachters at iae dot nl
create 3 files

test.php:
<?php
include("test1.php");
include("test2.php");
?>

test1.php:
<?php
foreach($a as $b){
echo"a");
}
?>

test2.php:
<?php
?>


now run test.php.. PHP crashes. There's a little syntax error in test1.php: echo"a"); should be echo("a");

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-20 02:32 UTC] derick@php.net
I tried this on Linux with PHP 4.0.7dev as CGI executable and Apache static module, it just gives me a parse error.
Can you possibly try one of the snapshots from http://www.zend.com/shapshots/ and see if the problem does still exists?
 [2001-06-20 09:50 UTC] sniper@php.net
Another question: I assume it does NOT crash if you don't have errors in your scripts?

 [2001-06-21 14:30 UTC] sniper@php.net
The correct url is of course:

http://www.zend.com/snapshots/


 [2001-06-22 08:46 UTC] sniper@php.net
User feedback (next time, use the web interface to answer):
-----------------------------------------------------------
YES.. when i correct the syntax error, it doesn't crash. Also when i remove 
the foreach, or when i remove the 2nd include, or when i remove the "a" 
from echo, or when i make a different syntax error, it doesn't crash. It 
only happens in this particular case. really weird. but i guess it's not so 
important, since it doesn't happen on Linux or any other OS, only windows. 
btw.. I use windows 98 with apache.
----------------------------------------------------------

Did you try the snapshot??

--Jani

 [2001-07-22 13:19 UTC] andy@php.net
no feedback after 30 days.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 10:01:28 2025 UTC