From:             svenl at haberer-online dot de
Operating system: SUSE Linux 9.2
PHP version:      4.3.11
PHP Bug Type:     Session related
Bug description:  session_register() causes Segmentation fault

Description:
------------
Hi,

when calling session_register() using php 4.3.11 and apache 2.0.50, I get
an Seg-Fault.

When using $_SESSION, it works fine

Using php 4.3.10 and exactly the same configuration, it worked fine.

my config looks as follows:
 ./configure --prefix=/usr --datadir=/usr/share/php
--mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share
--includedir=/usr/include --sysconfdir=/etc --with-_lib=lib
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin
--disable-debug --enable-inline-optimization --enable-memory-limit
--enable-magic-quotes --enable-safe-mode --enable-sigchild --disable-ctype
--disable-session --without-mysql --disable-cli --without-pear
--with-openssl --with-apxs2=/usr/sbin/apxs2-prefork i586-suse-linux
--with-unixODBC=/usr/lib/unixODBC  

php-ini:
register_globals = On


Reproduce code:
---------------
Script 1: crashes

<?
        $barney = "A big purple dinosaur.";
        session_register("barney");
        echo "date=".date("H:i:s",time());
?>

Script 2: works

<?
        $_SESSION["barney"] = "A big purple dinosaur.";
        echo "date=".date("H:i:s",time());
?>

Expected result:
----------------
both times I expect the time to be displayed

Actual result:
--------------
With the first script the browser shows nothing (FireFox) or complains
that the server closed the connection (Konqueror). 

Also apache adds the following warning to the error_log:
[date] [notice] child pid 30727 exit signal Segmentation fault (11)

---

The second script shows the time as expected

-- 
Edit bug report at http://bugs.php.net/?id=32862&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32862&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32862&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32862&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32862&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32862&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32862&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32862&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32862&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32862&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32862&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32862&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32862&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32862&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32862&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32862&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32862&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32862&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32862&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32862&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32862&r=mysqlcfg

Reply via email to