: Bug #60611 :: Segmentation fault with Cls::{expr}() syntax
[2011-12-27 07:54 UTC] 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)
[2011-12-27 08:07 UTC] do dot hiroaki at gmail dot com
sorry. Only "Cls::{1.0}();" result is "Bus error"[2011-12-27 08:38 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
[2011-12-28 04:23 UTC] do dot hiroaki at gmail dot com
Thank you for fix. Bat segmentation fault occurred yet when run "$cls->{expr}()" without run "Cls:: {expr}();" I sent new bug report #60613.