php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35132 Incorrect code in Example 1 on php.net/dl
Submitted: 2005-11-07 00:39 UTC Modified: 2005-11-07 00:41 UTC
From: false dot hopes at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-11-07 00:39 UTC] false dot hopes at gmail dot com
Description:
------------
On line 5 of Example 1 on php.net/dl, the following:
   if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
should be:
   if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
So that == 'WIN' is checked against the strtoupper()'d string.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-07 00:41 UTC] aidan@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.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of aidan
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=6617f2292303be2858aa3915bed0381452e8f019
Log: Fix bug #35132
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 03 22:00:03 2025 UTC