|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-07 13:11 UTC] zeev at cvs dot php dot net
[2021-03-04 22:29 UTC] armcewen at shaw dot ca
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 13:00:01 2025 UTC |
The following returns 2 under PHP3 and 1 under PHP4: ---- <html> <body> <?php $tv = 1; function test1() { global $tv; unset($tv); $tv = 2; } function test2() { global $tv; echo("should be 2: $tv"); } test1(); test2(); ?> </body> </html> --- I don't think this is a compile/module problem (compiled with mysql, nothing else that really matters).