#37089 [Opn->Fbk]: Segmentation Fault on array_pop()
| From: | tony2001@php.net | Date: | Sat, 15 Apr 2006 10:00:56 +0000 |
| Subject: | #37089 [Opn->Fbk]: Segmentation Fault on array_pop() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95815@lists.php.net to get a copy of this message | ||
ID: 37089
Updated by: tony2001@php.net
Reported By: info at mgeiger dot de
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5.1.2
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.
Not reproducible.
Previous Comments:
------------------------------------------------------------------------
[2006-04-15 07:33:33] info at mgeiger dot de
Here's how I compiled PHP:
export CFLAGS="-march=c3 -O2"
./configure --prefix=/usr/local/php5 --with-apache=../apache_1.3.34/
--disable-ipv6 --with-zlib --with-gd
--with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib --enable-gd-native-ttf --with-pdo-pgsql
--without-pdo-sqlite --with-pgsql --without-sqlite
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
System: SuSE 10.0, Kernel 2.6.16.2
I have a parallel installation of version 4.4.2 where I cannot
reproduce this error.
Configuration version 4.4.2:
./configure --with-apache=../apache_1.3.34/ --enable-track-vars
--with-gd --with-pgsql --without-mysql --enable-gd-native-ttf
--disable-ipv6 --with-zlib --with-freetype-dir=/usr/include/freetype2
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib
------------------------------------------------------------------------
[2006-04-15 07:05:33] info at mgeiger dot de
Description:
------------
The command line php engine creates a segmentation fault when using
array_pop(). The Apache module doesn't have this problem.
Reproduce code:
---------------
<?
$ar = array (345, 567);
var_dump ($ar);
$v = array_pop ($ar);
var_dump ($v);
?>
Actual result:
--------------
# /usr/local/php5/bin/php fehler.php
array(2) {
[0]=>
int(345)
[1]=>
int(567)
}
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37089&edit=1