|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[1999-11-22 23:09 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
function test() { static $test1; echo "BEFORE: $test1 <BR>"; unset($test1); $test1 = "Hello"; echo "AFTER: $test1 <BR>"; } test(); test(); Output: BEFORE: AFTER: Hello -- BEFORE: AFTER: Hello Should be: BEFORE: AFTER: Hello -- BEFORE: Hello AFTER: Hello Works fine if you remove the unset(); Works fine in PHP3.