Bug #71910 [NEW]: Too many concatinations in a single statement crashes Apache

From: Date: Mon, 28 Mar 2016 17:38:51 +0000
Subject: Bug #71910 [NEW]: Too many concatinations in a single statement crashes Apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200190@lists.php.net to get a copy of this message
From: ksours at internebrands dot com Operating system: Windows7 64bit PHP version: 7.0.4 Package: Apache2 related Bug Type: Bug Bug description:Too many concatinations in a single statement crashes Apache 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 bug report at https://bugs.php.net/bug.php?id=71910&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71910&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71910&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71910&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71910&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71910&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71910&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71910&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71910&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71910&r=support Expected behavior: https://bugs.php.net/fix.php?id=71910&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71910&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71910&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71910&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71910&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71910&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71910&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71910&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71910&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71910&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71910&r=mysqlcfg

« previous php.bugs (#200190) next »