From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      4.1.2
PHP Bug Type:     Documentation problem
Bug description:  Sample code bug on in your documentation

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 bug report at http://bugs.php.net/?id=15840&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15840&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15840&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15840&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15840&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15840&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15840&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15840&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15840&r=submittedtwice

Reply via email to