ID: 32862 Updated by: [EMAIL PROTECTED] Reported By: svenl at haberer-online dot de -Status: Open +Status: Bogus Bug Type: Session related Operating System: SUSE Linux 9.2 PHP Version: 4.3.11 New Comment:
It can hardly work if you have '--disable-session' in your configure line. Previous Comments: ------------------------------------------------------------------------ [2005-04-28 02:32:53] svenl at haberer-online dot de Actually the same problem exists if register_globals = Off ------------------------------------------------------------------------ [2005-04-28 02:22:23] svenl at haberer-online dot de 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 this bug report at http://bugs.php.net/?id=32862&edit=1