php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34051 JavaScript Error in userprefs.js
Submitted: 2005-08-09 17:35 UTC Modified: 2005-08-10 09:43 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: stephen at newnet dot co dot uk Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS:
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: stephen at newnet dot co dot uk
New email:
PHP Version: OS:

 

 [2005-08-09 17:35 UTC] stephen at newnet dot co dot uk
Description:
------------
There appears to be a typo/error in the userprefs.js file, FireFox gives the following error message, and is even kind enough to give the solution -not that its a difficult one to work out.

The error appeared when I searched the 'function list' for the ucfirst function giving the page: <http://uk.php.net/manual/en/function.ucfirst.php>

Warning: test for equality (==) mistyped as assignment (=)?
Source File: http://uk.php.net/userprefs.js
Line: 103, Column: 40
Source Code:
    if (myphpnet = getCookie('MYPHPNET')) {


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-09 19:44 UTC] adam at oxeo dot com
not 100% sure but looking at the code this is not an error. 
Most likely firefox is just being overzealous.
 [2005-08-10 09:43 UTC] stephen at newnet dot co dot uk
Having checked through the JavaScript the function 'getCookie' returns 'null' if there is no value found, which then evaluates to false.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC