Bug #60611 [Opn]: Segmentation fault with Cls::{expr}() syntax
| From: | do dot hiroaki at gmail dot com | Date: | Tue, 27 Dec 2011 08:07:44 +0000 |
| Subject: | Bug #60611 [Opn]: Segmentation fault with Cls::{expr}() syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166096@lists.php.net to get a copy of this message | ||
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