|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-05-08 10:47 UTC] Paul_Kroll at hotmail dot com
Previously, doing:
<?php
session_register('user');
$user['UserName'] = "this is a test";
print $user['UserName'];
?>
would result in the browser displaying:
this is a test
In PHP 4.0.5, the browser displays:
t
Which is not quite the expected result.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
I could not verify this withphp 4.0.6dev, can you try the lastest snapshot from snaps.php.net? This was my test: [root@aarde mp3]# php <?php session_register('user'); $user['UserName'] = "this is a test"; print $user['UserName']; ?> X-Powered-By: PHP/4.0.6-dev Set-Cookie: PHPSESSID=435a120c6d20caee178fff903259557d; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html this is a test