From: phpbugs at s8 dot org
Operating system: Linux 2.4.29
PHP version: 4.3.10
PHP Bug Type: Class/Object related
Bug description: range() stops script without error when used in delcaring
class member variable
Description:
------------
When defining the initial value of a member variable of a class using the
range () function, the php script does not execute and no error message is
displayed. (I triple-checked that display_errors was set to true.) If I
take cut the line using range and move it outside of the class definition
(and remove the var keyword as well) the script executes normally.
Reproduce code:
---------------
print ( "Hello" );
class test
{
var $test = array ( 1,2,3,4,5 );
var $test_too = range ( 1, 5 );
}
print ( " World!" );
Expected result:
----------------
"Hello World!" is printed out.
Actual result:
--------------
Blank page. No error messages, nothing. I don't even see "Hello" printed
to the screen.
--
Edit bug report at http://bugs.php.net/?id=33280&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33280&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33280&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33280&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33280&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33280&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33280&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33280&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33280&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33280&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33280&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33280&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33280&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33280&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33280&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33280&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33280&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33280&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33280&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33280&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33280&r=mysqlcfg