Edit report at https://bugs.php.net/bug.php?id=60758&edit=1
ID: 60758
Comment by: homma dot teppei+php at gmail dot com
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:
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()
Previous Comments:
------------------------------------------------------------------------
[2012-01-28 09:35:49] [email protected]
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] [email protected]
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
------------------------------------------------------------------------
[2012-01-15 10:08:14] bugzilla33 at gmail dot com
Thank you for this manual.
https://bugs.php.net/bugs-generating-backtrace-win32.php
This tool works on Win 7 only as (Analisys only) mode.
"Options and settings" tab looks otherwise.
There is no "Add a rule" button.
Please update the handbook as soon as possible.
---
Does anybody can do backtrace for laruence ??
------------------------------------------------------------------------
[2012-01-15 03:30:56] [email protected]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
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