Edit report at https://bugs.php.net/bug.php?id=60611&edit=1

 ID:                 60611
 User updated by:    do dot hiroaki at gmail dot com
 Reported by:        do dot hiroaki at gmail dot com
 Summary:            Segmentation fault with Cls::{expr}() syntax
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   CentOs5.6
 PHP Version:        5.4.0RC4
 Block user comment: N
 Private report:     N

 New Comment:

sorry. Only "Cls::{1.0}();" result is "Bus error"


Previous Comments:
------------------------------------------------------------------------
[2011-12-27 07:54:09] do dot hiroaki at gmail dot com

Description:
------------
Segmentation fault with Cls::{expr}() syntax when expr is not string.

also $cls->{expr}() syntax.

Test script:
---------------
Cls::{0}();
Cls::{1.0}();
Cls::{true}();
Cls::{false}();
Cls::{null}();

$cls->{0}();
$cls->{1.0}();
$cls->{true}();
$cls->{false}();
$cls->{null}();


Expected result:
----------------
Fatal error: Method name must be a string

(Occurred by code "$cls->{0}();" on php5.3)

Actual result:
--------------
Segmentation fault

(each line)


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



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

Reply via email to