php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #15840 Sample code bug on in your documentation
Submitted: 2002-03-02 17:43 UTC Modified: 2002-03-02 17:45 UTC
From: rburkat at pinkbike dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.2 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rburkat at pinkbike dot com
New email:
PHP Version: OS:

 

 [2002-03-02 17:43 UTC] rburkat at pinkbike dot 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']++;
?>
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-02 17:45 UTC] derick@php.net
Fixed in CVS. IT will show up online in a few days.

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 00:01:34 2025 UTC