|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-04-28 02:22 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Hi Sniper, thanX for your quick reply... Sorry about not mentioning this earlier, but my session-support is inside an extension... Thus using exactly the same configure command for 4.3.10, sessions work fine (with register_globals = On, obviously). Perhaps the output of php_info helps: www.haberer-online.de/php/php4_3_10_info.htm www.haberer-online.de/php/php4_3_11_info.htm These are the two programs I use for testing: /// snip : session_test.php // <? $barney = "A big purple dinosaur."; session_register("barney"); echo "date=".date("H:i:s",time()); ?> <br><a href="session_test2.php">Next</a> //// end session_test.php // /// snip : session_test2.php // <? session_register("barney"); echo $barney."<br>"; echo "date=".date("H:i:s",time()); ?> //// end session_test2.php // with version 4.3.10, no errors get reported and the value set in the first script is reported in the second script... With v 4.3.11 I get the mentioned error messages. BTW, the only things I did was configure make make install - the extensions were not touched. Might there be some incompatibility ? The content of my extension dir looks like: ikarus: # pwd /usr/lib/php/extensions ikarus: # ll total 320 drwxr-xr-x 2 root root 224 Mar 20 23:00 . drwxr-xr-x 5 root root 160 Mar 20 23:39 .. -rwxr-xr-x 1 root root 15426 Oct 5 2004 bz2.so -rwxr-xr-x 1 root root 36096 Oct 5 2004 curl.so -rwxr-xr-x 1 root root 43584 Oct 5 2004 ftp.so -rwxr-xr-x 1 root root 93311 Oct 5 2004 gd.so -rwxr-xr-x 1 root root 49578 Oct 5 2004 mysql.so -rwxr-xr-x 1 root root 52726 Oct 5 2004 session.so -rwxr-xr-x 1 root root 28486 Oct 5 2004 zlib.so ThanX again for your assistance - hope its not a stupid mistake from my side... Sven