Bug #60611 [Csd]: Segmentation fault with Cls::{expr}() syntax

From: Date: Wed, 28 Dec 2011 04:23:56 +0000
Subject: Bug #60611 [Csd]: Segmentation fault with Cls::{expr}() syntax
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166110@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: Closed Type: Bug Package: Scripting Engine problem Operating System: CentOs5.6 PHP Version: 5.4.0RC4 Assigned To: laruence Block user comment: N Private report: N New Comment: Thank you for fix. Bat segmentation fault occurred yet when run "$cls->{expr}()" without run "Cls:: {expr}();" I sent new bug report #60613. Previous Comments: ------------------------------------------------------------------------ [2011-12-27 08:38:44] laruence@php.net 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. ------------------------------------------------------------------------ [2011-12-27 08:37:54] laruence@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

« previous php.bugs (#166110) next »