|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-16 07:31 UTC] jani@php.net
[2009-09-30 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 10:00:01 2025 UTC |
Description: ------------ I wanted to create a class property, and initialize it with data from a Zend_Registry::get(). But I have found that I cannt do it, I mast initialise the varieble, and later in the constructor I can set value from an object to it without problem... P.S. the Value is a string... Reproduce code: --------------- protected $arrRulerPrograms = array ("state"=>Zend_Registry::get ( "objTranslation" )->LBL_PRG_STATE,"search"=>Zend_Registry::get ( "objTranslation" )->LBL_PRG_SEARCH); Expected result: ---------------- Value assigned Actual result: -------------- Parse error: syntax error, unexpected '(', expecting ')'