From:             j dot uribe at globalforma dot com
Operating system: Windows XP
PHP version:      5.0.0RC2
PHP Bug Type:     Compile Failure
Bug description:  Fatal error: Internal compiler error - please report!

Description:
------------
The compiler gives me an error when i exec a code




Reproduce code:
---------------
echo(LMS::$dataModelCore[$_POST['lmsget']]());

Part of the class is:
        class LMS{
                public static $dataModelCore=array(
                                                                                
"cmi.core.student_id"=>'coreStudentID($tipo,$valor="")',
                                                                                
"cmi.core.student_name"=>'coreStudentName($tipo,$valor="")',
                                                                                
"cmo.core.lesson_location"=>'coreLessonLocation($tipo,$valor="")',
                                                                                
"cmi.core.credit"=>'coreCredit($tipo,$valor="")',
                                                                                
"cmi.core.lesson_status"=>'coreLessonStatus($tipo,$valor="")',
                                                                                
"cmi.core.entry"=>'coreEntry($tipo,$valor="")',
                                                                                
"cmi.core.score"=>
                                                                                       
 array(  
                                                                                       
                 "cmi.core.score.raw"=>'coreScoreRaw($tipo,$valor="")',
                                                                                       
                 "cmi.core.score.max"=>'coreScoreMax($tipo,$valor="")',
                                                                                       
                 "cmi.core.score.min"=>'coreScoreMin($tipo,$valor="")',
                                                                                       
         ),
                                                                                
"cmi.core.total_time"=>'coreTotalTime($tipo,$valor="")',
                                                                                
"cmi.core.lesson_mode"=>'coreLessonMode($tipo,$valor="")',
                                                                                
"cmi.core.exit"=>'coreExit($tipo,$valor="")',
                                                                                
"cmi.core.session_time"=>'coreSessionTime($tipo,$valor="")',
                                                                );

            static function suspendData($tipo,$valor=""){
                echo "Suspend Data";
            }
            static function launchData($tipo,$valor=""){
                echo "Launch Data";
            }

...
...
)

Expected result:
----------------
I expected execute the function asociate whith the value of the array.




-- 
Edit bug report at http://bugs.php.net/?id=28315&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28315&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28315&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28315&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28315&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28315&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28315&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28315&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28315&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28315&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28315&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28315&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28315&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28315&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28315&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28315&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28315&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28315&r=float

Reply via email to