php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21134 Parse error in mirrors.inc, reproduced in various browsers
Submitted: 2002-12-21 08:46 UTC Modified: 2002-12-21 10:03 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: carl at kittanning dot com Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.0RC3 OS: Win 98
Private report: No CVE-ID: None
 [2002-12-21 08:46 UTC] carl at kittanning dot com
This error shows on the PHP website, reproduced on IE5, NS4.75, NS7.0 just coming into the site.  www.php.net

Parse error: parse error, expecting `')'' in /local/Web/sites/phpweb/include/mirrors.inc on line 25

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-21 09:11 UTC] alex at netflex dot nl
Hi,

The list of mirrors in /include/mirrors.inc has a wrong array layout:

$MIRRORS = array(
    "http://au.php.net/" => array("AUS","Planet Mirror",FALSE,"http://www.planetmirror.com/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK)
    "http://au2.php.net/" => array("AUS","Web Hosting Australia",FALSE,"http://www.ilisys.com.au/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK)
    "http://au3.php.net/" => array("AUS","AusGamers",TRUE,"http://ausgamers.com/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK)


must be:


$MIRRORS = array(
    "http://au.php.net/" => array("AUS","Planet Mirror",FALSE,"http://www.planetmirror.com/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK),
    "http://au2.php.net/" => array("AUS","Web Hosting Australia",FALSE,"http://www.ilisys.com.au/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK),
    "http://au3.php.net/" => array("AUS","AusGamers",TRUE,"http://ausgamers.com/",MIRROR_STANDARD,FALSE,"en",MIRROR_OK),
 [2002-12-21 09:13 UTC] alex at netflex dot nl
to view the mirrors.inc go to this url: http://www.php.net/source.php?url=/include/mirrors.inc
 [2002-12-21 09:14 UTC] sander@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 [2002-12-21 09:30 UTC] alex at netflex dot nl
An other problem:

if you search via php.net/$query doesn't work! if the $query isn't a valid function or a shortcut!

if you go to the url http://php.net/123 then it must go to www.php.net/search.php?...

doen't work, you can search the function list but not the 'whole site'!
 [2002-12-21 10:03 UTC] goba@php.net
The bug you added is also connected to the original report. As the headers are sent (error is printed out), the search redirection cannot be performed. This will also work again, as the mirror.inc error goes away (as the mirror updates itself).
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 05:00:01 2026 UTC