|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-14 19:14 UTC] judas dot iscariote at gmail dot com
[2006-12-14 22:48 UTC] sup1382 at accedo dot es
[2006-12-14 23:07 UTC] sup1382 at accedo dot es
[2006-12-15 09:55 UTC] tony2001@php.net
[2006-12-15 11:10 UTC] sup1382 at accedo dot es
[2006-12-15 11:31 UTC] sup1382 at accedo dot es
[2006-12-15 11:46 UTC] tony2001@php.net
[2006-12-15 11:49 UTC] sup1382 at accedo dot es
[2006-12-18 10:53 UTC] tony2001@php.net
[2006-12-19 10:14 UTC] sup1382 at accedo dot es
[2006-12-19 10:23 UTC] sup1382 at accedo dot es
[2006-12-19 10:29 UTC] tony2001@php.net
[2006-12-19 11:54 UTC] sup1382 at accedo dot es
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
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: ''