|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
sorry. Only "Cls::{1.0}();" result is "Bus error"Thank you for fix. Bat segmentation fault occurred yet when run "$cls->{expr}()" without run "Cls:: {expr}();" I sent new bug report #60613.