|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-09 01:27 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
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.