Edit report at https://bugs.php.net/bug.php?id=60758&edit=1
ID: 60758
Comment by: hannes at dorn dot cc
Reported by: bugzilla33 at gmail dot com
Summary: require() crashes Apache
Status: Not a bug
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 5.4.0RC5
Block user comment: N
Private report: N
New Comment:
FYI I had this problem in 5.3.9, but it is fixed in 5.3.10.
Previous Comments:
------------------------------------------------------------------------
[2012-01-30 12:49:01] pajoye@php.net
@homma dot teppei+php at gmail dot com
This bug has been fixed already and is totally different issue.
Thanks for your feedback.
------------------------------------------------------------------------
[2012-01-30 02:26:02] homma dot teppei+php at gmail dot com
The same problem occurred with CLI version.
The file to be 'include' (or 'require'), PHP will crash if its size is multiples
of 4096 bytes.
OS:
both Windows 7 Professional (x64) and Windows 7 Home Premium (32bit)
PHP:
5.3.9 (thread safe, with no extension)
Test case:
First of all, I prepared the file is filled with 4096bytes white spaces.
And save as 'test.txt'.
with command prompt
c:\php-sdk\> php.exe -a
<?php
require 'test.txt';
^Z[Ctrl+z enter]
-> then crash.
another case:
test.php
<?php
file_put_contents('test.txt', str_pad('', 4096));
include('./test.txt');
?>
with command prompt
c:\php-sdk\> php.exe test.php
-> then crash.
Call Stack:
> php5ts_debug.dll!lex_scan(_zval_struct * zendlval, void * * * tsrm_ls)
line 942 + 0x12 bytes C
php5ts_debug.dll!zendlex(_znode * zendlval, void * * * tsrm_ls) line
4975 + 0x10 bytes C
php5ts_debug.dll!zendparse(void * tsrm_ls) line 3285 + 0xd bytes
C
php5ts_debug.dll!compile_file(_zend_file_handle * file_handle, int type,
void * * * tsrm_ls) line 364 + 0x9 bytes C
php5ts_debug.dll!compile_filename(int type, _zval_struct * filename,
void * * * tsrm_ls) line 407 + 0x14 bytes C
php5ts_debug.dll!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER(_zend_execute_data *
execute_data, void * * * tsrm_ls) line
1966 + 0x14 bytes C
php5ts_debug.dll!execute(_zend_op_array * op_array, void * * * tsrm_ls)
line 107 + 0x11 bytes C
php5ts_debug.dll!zend_execute_scripts(int type, void * * * tsrm_ls,
_zval_struct * * retval, int file_count, ...) line
1236 + 0x21 bytes C
php5ts_debug.dll!php_execute_script(_zend_file_handle * primary_file,
void * * * tsrm_ls) line 2308 + 0x1b bytes C
php.exe!main(int argc, char * * argv) line 1184 + 0x13 bytes C
php.exe!__tmainCRTStartup() line 555 + 0x19 bytes C
php.exe!mainCRTStartup() line 371 C
kernel32.dll!7718339a()
------------------------------------------------------------------------
[2012-01-28 09:35:49] pajoye@php.net
There is no bug, sadly he is spamming bugs.php.net with "crash bugs" which are
actually configuration issues.
------------------------------------------------------------------------
[2012-01-28 00:47:48] rasmus@php.net
Works fine on Linux. Doesn't seem like this should be an OS-specific thing. Can
anybody else reproduce this on Windows?
------------------------------------------------------------------------
[2012-01-16 18:18:41] bugzilla33 at gmail dot com
Here you are:
http://host0001.webd.pl/bugs/php/reports/CrashHang_Report__PID_1080__01162012191518294.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60758
--
Edit this bug report at https://bugs.php.net/bug.php?id=60758&edit=1