PHP 4.0 Bug #1971: Problem with unsetting global-variables
| From: | jeress at iname dot com | Date: | Thu, 05 Aug 1999 14:45:00 +0000 |
| Subject: | PHP 4.0 Bug #1971: Problem with unsetting global-variables | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9561@lists.php.net to get a copy of this message | ||
From: jeress@iname.com
Operating system: Linux (Debian potato), glibc2.1
PHP version: 4.0 Beta 1
PHP Bug Type: Scripting Engine problem
Bug description: Problem with unsetting global-variables
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).