Another 'incompatibility' with php3.

From: Date: Mon, 09 Aug 1999 23:29:02 +0000
Subject: Another 'incompatibility' with php3.
Groups: php.version4 
Request: Send a blank email to php-version4+get-3262@lists.php.net to get a copy of this message
<script language="php"> class foo { var $test; }; function test() { static $test1; echo "BEFORE: $test1 <BR>"; unset($test1); $test1 = "Hello"; echo "AFTER: $test1 <BR>"; } test(); echo "-- <BR>"; test(); </script> PHP4B2 outputs: (static variable is lost) BEFORE: AFTER: Hello -- BEFORE: AFTER: Hello PHP3 outputs: (expected behaviour) BEFORE: AFTER: Hello -- BEFORE: Hello AFTER: Hello Sander Pilon - President, 3DN.NET, Inc. http://www.3dnews.net http://www.3dn.net mail: sander@3dnews.net

« previous php.version4 (#3262) next »