ID:               39833
 User updated by:  sup1382 at accedo dot es
 Reported By:      sup1382 at accedo dot es
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: OpenBSD 3.9
 PHP Version:      5.2.0
 New Comment:

Ups, this is a hosting production server I prefer, too much server info
to disclose it to the public, if it is posible I'll send you by mail the
url


Previous Comments:
------------------------------------------------------------------------

[2006-12-15 09:55:29] [EMAIL PROTECTED]

Add phpinfo() to end of this code and put the URL here.

------------------------------------------------------------------------

[2006-12-14 23:07:53] sup1382 at accedo dot es

BTW, in my parameters of 'config' there was one directory wrong
--with-gettext=/usr/local/base/ is really
--with-gettext=/usr/local/bin/ 

I've made a symlink to avoid this, but I believe this problem has
nothing to do with gettext (same result anyway)

------------------------------------------------------------------------

[2006-12-14 22:48:10] sup1382 at accedo dot es

Yes, absolutely. The most strange behavior, is that first output is ok,
then always the bad one.

------------------------------------------------------------------------

[2006-12-14 19:14:31] judas dot iscariote at gmail dot com

works as expected here, are you sure register_globals is disabled ?

------------------------------------------------------------------------

[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

Reply via email to