Bug #68323 [NEW]: Array makes server crash
| From: | vicentedeteresa at gmail dot com | Date: | Wed, 29 Oct 2014 15:22:38 +0000 |
| Subject: | Bug #68323 [NEW]: Array makes server crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188361@lists.php.net to get a copy of this message | ||
From: vicentedeteresa at gmail dot com
Operating system: MacOs
PHP version: 5.4.34
Package: *General Issues
Bug Type: Bug
Bug description:Array makes server crash
Description:
------------
doing a foreach with an open array inside, this make a server crash,
reporting a Segmentation fault on server log and throwing a fatal error
on php-log first.
Server log:
[Wed Oct 29 15:57:46.962708 2014] [core:notice] [pid 1986] AH00052:
child pid 5856 exit signal Segmentation fault (11)
PhP log:
[29-Oct-2014 15:57:46 Europe/Berlin] PHP Fatal error: Cannot use [] for
reading in
/Applications/XAMPP/xamppfiles/htdocs/index/dev_core_cea/core/app/Plugin/Comparador/Controller/ApuestasController.php
on line 863
Test script:
---------------
foreach($apostadores[$x]['Apuestas'] as $apuesta){
$apuesta[];
}
Expected result:
----------------
I Spect to see an syntax error
--
Edit bug report at https://bugs.php.net/bug.php?id=68323&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68323&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68323&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68323&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68323&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68323&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68323&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68323&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68323&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68323&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68323&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68323&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68323&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68323&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68323&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68323&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68323&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68323&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68323&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68323&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68323&r=mysqlcfg