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:
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";
?>
Previous Comments:
------------------------------------------------------------------------
[2003-12-01 11:45:48] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2003-12-01 08:53:12] friosa at pnpitalia dot it
Description:
------------
crash on := assign to a non-existent array element
php 5.00 (beta2)
php 5.00 (200311291630)
hope that the example i easy enough, i'm not in condition now to put
here a back trace sorry :( i will try it later.
./configure
--prefix=/usr/local
--with-config-file-path=/etc/php5.ini
--disable-posix
--disable-session
--disable-tokenizer
--without-sqlite
--disable-cgi
--disable-shared
--enable-shared=no
--with-mysql
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-informix=/opt/informix
--with-libxml-dir=/pnp
--with-dom=/pnp
--with-dom-xslt=/pnp
--with-dom-exslt=/pnp
--enable-simplexml
--enable-pcntl
--enable-sigchild
--enable-mime-magic
--with-gnu-ld
--with-pcre-regex
--enable-ftp
[PHP Modules]
ctype
dom
ftp
informix
libxml
mysql
pcntl
pcre
simplexml
standard
xml
[Zend Modules]
Reproduce code:
---------------
#! /usr/local/bin/php
# try.php
<?php
$ar = array();
$ar[0] .= "pluto";
?>
./try.php
Segmentation fault
Expected result:
----------------
$ar[0] == "pluto";
OR
an error displayed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26487&edit=1