Bug #71910 [Opn->Fbk]: Too many concatinations in a single statement crashes Apache

From: Date: Tue, 29 Mar 2016 12:38:33 +0000
Subject: Bug #71910 [Opn->Fbk]: Too many concatinations in a single statement crashes Apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200214@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71910&edit=1 ID: 71910 Updated by: ab@php.net Reported by: ksours at internebrands dot com Summary: Too many concatinations in a single statement crashes Apache -Status: Open +Status: Feedback Type: Bug Package: Apache2 related Operating System: Windows7 64bit PHP Version: 7.0.4 Block user comment: N Private report: N New Comment: 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. Please note also that your generator writes an exit; before anything in the script happens. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-03-28 17:38:47] ksours at internebrands dot com Description: ------------ This only seems to happen on windows and only with php7. I'm using mod_php on Apache 2.4.18 from apache lounge and the php binaries from http://windows.php.net I've encountered the problem on both 32 bit and 64 bit versions of 7.0.3 and the 64 bit version of 7.0.4 It does not occur with the 32bit version of 5.6.14. I've only run the precise sample script against 7.0.4 64bit. The result of the script is that apache crashes when the script is run. Note that it doesn't require the code actually run (note the exit statement in the same script), it just has to be in the script. Commenting it out eliminates the problem as expected. Running the code via the CLI works just fine. PHP Command line: cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" Test script: --------------- <?php /* Note that this script *generates* the script to reproduce The problem might be environment related in terms of how many concatenations reproduce */ $text = ' <?php exit; $out = '; for($i = 0; $i<2000; $i++) { $text .= "'a' . "; } $text .= "'a';"; file_put_contents('sample.php', $text); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71910&edit=1

« previous php.bugs (#200214) next »