Edit report at https://bugs.php.net/bug.php?id=60611&edit=1
ID: 60611 Updated by: larue...@php.net Reported by: do dot hiroaki at gmail dot com Summary: Segmentation fault with Cls::{expr}() syntax -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: CentOs5.6 PHP Version: 5.4.0RC4 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-12-27 08:37:54] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=321429 Log: Fix bug #60611 (Segmentation fault with Cls::{expr}() syntax) ------------------------------------------------------------------------ [2011-12-27 08:07:44] do dot hiroaki at gmail dot com sorry. Only "Cls::{1.0}();" result is "Bus error" ------------------------------------------------------------------------ [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