From: [EMAIL PROTECTED]
Operating system: Redhat 7.3 Linux
PHP version: 4.3.0
PHP Bug Type: Reproducible crash
Bug description: calling a function which expects a ref
The following code works fine in 4.2.3, but segfaults in 4.3.0 (even though
it passes the syntax check):
<?
function hi(&$aref) {
echo $aref."\n";
}
$a="hi";
hi($a);
hi($_dummy = "hey");
?>
My configure line:
# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-java
--with-pdflib=/usr/local --with-gd --w
ith-ttf --enable-trans-sid --with-curl --with-openssl --enable-sysvsem
--enable-sysvshm --with-zlib --wi
th-mysql=/usr/local/mysql --with-freetype-dir=/usr --with-png-dir=/usr
--with-jpeg-dir=/usr --with-gette
xt --with-imap --with-imap-ssl --with-ldap --with-kerberos --enable-ftp
--with-iodbc=/usr --with-oci8 --
with-imagick --enable-xslt --with-xslt-sablot=/usr/local
--with-expat-dir=/usr
--
Edit bug report at http://bugs.php.net/?id=22037&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22037&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22037&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22037&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22037&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22037&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22037&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22037&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22037&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22037&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22037&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22037&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22037&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22037&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22037&r=gnused