ID: 39833 Comment by: judas dot iscariote at gmail dot com Reported By: sup1382 at accedo dot es Status: Open Bug Type: Session related Operating System: OpenBSD 3.9 PHP Version: 5.2.0 New Comment:
works as expected here, are you sure register_globals is disabled ? Previous Comments: ------------------------------------------------------------------------ [2006-12-14 14:33:14] sup1382 at accedo dot es Description: ------------ Session variables are being overwritten by local variables with everything (that I've checked) set as default, register_globals=off, bug_compat_42=off, etc. In my workstation (Fedora Core 5), I get the correct output. (Surprisingly first time I execute the script in the OpenBSD box I get the correct output. Then always the buggie one). This are the options used in 'configure': --with-apxs=/usr/sbin/apxs --without-mysql --enable-xml --enable-wddx --enable-cli --with-gettext=/usr/local/base/ --enable-dio --with-pear=/usr/share/pear --enable-bcmath --enable-session --enable-trans-sid --enable-calendar --enable-ctype --enable-ftp --with-pcre-regex --with-posix --enable-sockets --enable-sysvsem --enable-sysvshm --enable-yp --enable-exif --without-sqlite (Copied from the OpenBSD ports, the same problem applies also to the packaged version in OpenBSD 3.9, PHP 5.05, I've recompiled and tested with 5.2 to check if the problem continues, and it does). Reproduce code: --------------- <?php session_start(); $_SESSION["test"] = "test"; $test = null; print("<br>Local var test: '".$test."'"); print("<br>Session var test: '".$_SESSION["test"]."'"); ?> Expected result: ---------------- Local var test: '' Session var test: 'test' Actual result: -------------- Local var test: '' Session var test: '' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39833&edit=1