#50260 [NEW]: Variable Expectation NOT Defined
| From: | sapientdruid at hotmail dot com | Date: | Sun, 22 Nov 2009 00:16:46 +0000 |
| Subject: | #50260 [NEW]: Variable Expectation NOT Defined | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-144919@lists.php.net to get a copy of this message | ||
From: sapientdruid at hotmail dot com
Operating system:
PHP version: 5.2.11
PHP Bug Type: *General Issues
Bug description: Variable Expectation NOT Defined
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.)
--
Edit bug report at http://bugs.php.net/?id=50260&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50260&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50260&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50260&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50260&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50260&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50260&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50260&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50260&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50260&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50260&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50260&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50260&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50260&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50260&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50260&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50260&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50260&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50260&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50260&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50260&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50260&r=mysqlcfg