ID: 26487
User updated by: friosa at pnpitalia dot it
Reported By: friosa at pnpitalia dot it
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: athlon suse linux 9
PHP Version: 5.0.0b2 (beta2)
New Comment:
sapi/cli/php ../try1.php ; sapi/cli/php ../try2.php ; sapi/cli/php
../try3.php
Segmentation fault
Segmentation fault
ok
I've tryed with php 4.3.4 (compiled with the previous options) and it
work fine
... and gdm still don't help me
Previous Comments:
------------------------------------------------------------------------
[2003-12-01 13:37:47] sniper@php.net
Try this:
# rm config.cache
# ./configure --disable-all --disable-cgi --enable-debug
# make clean && make
# sapi/cli/php try.php
------------------------------------------------------------------------
[2003-12-01 13:01:21] friosa at pnpitalia dot it
downloaded and compiled with minimum requirements
./bin/php try1.php ; ./bin/php try2.php ; ./bin/php try3.php
Segmentation fault (core dumped)
Segmentation fault (core dumped)
ok
------------------------------------------------------------------------
[2003-12-01 12:36:00] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2003-12-01 12:24:07] friosa at pnpitalia dot it
Still the same result, I've tryed also something else ..
I suggest the problem is with ".=" operator
./configure \
--enable-debug \
--prefix=/INSTALL/php_latest2 \
--with-config-file-path=/etc/php5.ini \
--disable-cgi \
make && make install
./bin/php try1.php
<?
$ar = array('a');
$ar[0] .= 'b';
?>
Segmentation fault (core dumped)
./bin/php try2.php ... still the same
<?
$ar = array('a');
$ar[0] = $ar[0] . 'b';
$ar[0] = 'ab';
echo "ok";
?>
------------------------------------------------------------------------
[2003-12-01 11:45:48] sniper@php.net
Can you please try adding 'error_reporting(0);' as first line in your
script to see if the crash happens in the error output function.
------------------------------------------------------------------------
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
http://bugs.php.net/26487--
Edit this bug report at http://bugs.php.net/?id=26487&edit=1