php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42954 Invalid PHP Syntax used in example
Submitted: 2007-10-12 19:50 UTC Modified: 2007-10-13 08:55 UTC
From: sleepingkiller at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2007-10-12 19:50 UTC] sleepingkiller at gmail dot com
Description:
------------
http://us2.php.net/http_support

The following example is used:
<?php
if (!http_support(HTTP_SUPPORT_REQUESTS) {
    die("Need HTTP request support!\n");
}
?> 

The example should say:
<?php
if (!http_support(HTTP_SUPPORT_REQUESTS)) {
    die("Need HTTP request support!\n");
}
?> 

Note it is missing a closing parenthesis.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-13 08:55 UTC] tularis@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 20:00:02 2026 UTC