ID:               49563
 Updated by:       j...@php.net
 Reported By:      sirshurf at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Class/Object related
 Operating System: i5
 PHP Version:      5.2.10
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2009-09-15 15:05:25] sirshurf at yahoo dot com

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 ')'


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49563&edit=1

Reply via email to