php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50260 Variable Expectation NOT Defined
Submitted: 2009-11-22 00:16 UTC Modified: 2009-11-22 00:38 UTC
From: sapientdruid at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.11 OS:
Private report: No CVE-ID: None
 [2009-11-22 00:16 UTC] sapientdruid at hotmail dot com
Description:
------------
this is one of the lines in the fleets page (1329) which is throwing errors.

$pages = array($page1, $page2, $page3, $page4, $page5, $page6, $page7);

the variable $page1,....,$page7 are used by this line everytime the page is opened   and usually most of them are undefined (well page1 and 2 are almost always defined, but page 7 is almost never done.)

The error is a php issue complaining that several page variables are undefined. It only occurs some of the time, and i've no clue what is throwing it.


Reproduce code:
---------------
$pages = array($page1, $page2, $page3, $page4, $page5, $page6, $page7);

Expected result:
----------------
$page1 through $page7 to be properly defined. 

Actual result:
--------------
the variable $page1,....,$page7 are used by this line every time the page is opened   and usually most of them are undefined (well page1 and 2 are almost always defined, but page 7 is almost never done.)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-22 00:38 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 19:01:30 2024 UTC