note 38852 added to function.unset
| From: | bobglobesetyahoocom at rn2 dot php dot net | Date: | Fri, 09 Jan 2004 00:14:46 +0000 |
| Subject: | note 38852 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63176@lists.php.net to get a copy of this message | ||
The previous note is true also for PHP 4.3.2. I struggled with it for awhile before reviewing the
notes on this page.
If you try to use unset() to unregister a session variable, the following error message will be
returned:
"Parse error: parse error, unexpected T_UNSET..."
No problems noticed when using session_unregister().
Is this a bug in PHP? The examples in the documentation use unset().
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38852
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38852&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38852&report=yes
Search -- http://master.php.net/manage/user-notes.php