Edit report at https://bugs.php.net/bug.php?id=48034&edit=1
ID: 48034 Updated by: [email protected] Reported by: ninzya at inbox dot lv Summary: Crash when script is 8192 (8KB) bytes long Status: Assigned Type: Bug Package: Reproducible crash Operating System: * PHP Version: 5.*, 6CVS (2009-04-21) Assigned To: dmitry Block user comment: N Private report: N New Comment: Dmitry, I think you can apply it already :) Previous Comments: ------------------------------------------------------------------------ [2012-01-16 23:09:15] [email protected] >From Matt (our tester/QA team): "I've tested the patch from 48034 on php_5_4 r322075 on Win7 x64 sp1 and it fixes the bug from 60771. I tested the repro script PID1080 from 60771 that produces a >8k text file and tries to require it. I also produced another >8k file myself and added some php code to it (inside <? php tags) and required it from another script. With 48034 patch, that also works." phpt for that is coming too ------------------------------------------------------------------------ [2012-01-16 17:09:02] pvasilevich at parallels dot com I have applied similar patch and problem solved. ( I have removed #ifdef HAVE_MMAP at all) ------------------------------------------------------------------------ [2012-01-16 14:46:00] dmitry at zend dot com Can anyone check if the attached patch fixes the problem? ------------------------------------------------------------------------ [2012-01-16 11:56:48] pvasilevich at parallels dot com This problem reproduced in 5.3.9 released in public/ It looks like temporary workaround commmited by dmitry in Revision: 279490 (Date: 2:13:30 PM, Tuesday, April 28, 2009) Message: Fixed bug #48034 (PHP crashes when script is 8192 (8KB) bytes long) has been replaced by Revision: 316812 Author: dmitry Date: 6:30:17 PM, Thursday, September 15, 2011 Message: Fixed bug #50982 (incorrect assumption of PAGE_SIZE size) And bug appeared again. Please fix this problem ASAP. ------------------------------------------------------------------------ [2012-01-11 09:35:29] bugzilla33 at gmail dot com The shortest working example: <?php file_put_contents('8192_testcase.php',str_repeat(' ',8192)); ?> <a href="8192_testcase.php">run testcase</a> Use Apache 2.2.21, PHP 5.*, Win 7 x86/x64 ------------------------------------------------------------------------ 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=48034 -- Edit this bug report at https://bugs.php.net/bug.php?id=48034&edit=1
