Bug #15840 Updated: Sample code bug on in your documentation
| From: | derick@php.net | Date: | Sat, 02 Mar 2002 22:45:44 +0000 |
| Subject: | Bug #15840 Updated: Sample code bug on in your documentation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1514@lists.php.net to get a copy of this message | ||
ID: 15840
Updated by: derick@php.net
Reported By: rburkat@pinkbike.com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.1.2
New Comment:
Fixed in CVS. IT will show up online in a few days.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 17:43:11] rburkat@pinkbike.com
On this page
http://www.php.net/manual/en/ref.session.php
there is a bug in this sample code provided.
Missing "}" at the end of the code sample.
Example 2. Registering a variable with $_SESSION.
<?php
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15840&edit=1