php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61568 PHP crashes while including classes without any error message or log
Submitted: 2012-03-30 15:30 UTC Modified: 2012-08-06 06:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: login dot naitsirch at arcor dot de Assigned: aharvey (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.3.10 OS: Win 7 (x64)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: login dot naitsirch at arcor dot de
New email:
PHP Version: OS:

 

 [2012-03-30 15:30 UTC] login dot naitsirch at arcor dot de
Description:
------------
Hi,

I have a strange problem with two PHP scripts. If I include them in another file without doing anything else PHP will crash without any error message. It doesn't matter if you execute it with CLI or via web server. But if I change or remove any char even in the comments the script works again. Maybe there is any special char in the script which result in a PHP crash during parsing. This problem occurs in PHP 5.3.9 and 5.3.10 on Windows. I have not tested it on Linux.

Test script:
---------------
I have uploaded a ZIP archive which contains three files: test.php, Product.php and InvoiceProcessor.php

You have just to execute or call the 'test.php' (via CLI or web server). Product.php and InvoiceProcessor.php contains both one class. 

Link to download page: http://www.filehosting.org/file/details/326139/test.zip


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-04 10:09 UTC] reeze dot xia at gmail dot com
Hi, naitsirch:
   I did't reproduce it in PHP5.3. I've notice that, those two files really do 
nothing but declare classes. "Product.php would Fatal because of 
"Leonex_Core_Model_Abstract" not found. It's reasonable. but the anther file 
inclusion do nothing is expected. but if you turn display_errors to Off. it will 
output nothing.
   Please check your ini config.
 [2012-04-04 13:30 UTC] login dot naitsirch at arcor dot de
Hi.
display_errors is On and PHP crashes also if I only include the InvoiceProcessor.php.
The point is that the script does not only exit because of any error. It really crashes. You can see a screenshot here http://www.abload.de/img/php-erroryvk88.png

I found out that a Windows event report is created.

Application Error
Name der fehlerhaften Anwendung: php.exe, Version: 5.3.10.0, Zeitstempel: 0x4f2ae50c
Name des fehlerhaften Moduls: php5ts.dll, Version: 5.3.10.0, Zeitstempel: 0x4f2ae5d1
Ausnahmecode: 0xc0000005
Fehleroffset: 0x000a3b02
ID des fehlerhaften Prozesses: 0x1b70
Startzeit der fehlerhaften Anwendung: 0x01cd1264a473718d
Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\PHP\php.exe
Pfad des fehlerhaften Moduls: C:\Program Files (x86)\PHP\php5ts.dll
Berichtskennung: e2bf8482-7e57-11e1-926f-e06995696037

Sorry, it is in German because I have the German Win7 edition
 [2012-05-24 09:23 UTC] login dot naitsirch at arcor dot de
In PHP 5.3.13 this problem seem to be fixed.
 [2012-08-06 06:01 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2012-08-06 06:01 UTC] aharvey@php.net
Fixed, per OP.
 [2012-08-06 06:02 UTC] aharvey@php.net
Damned auto-assign.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 15:01:28 2025 UTC