Bug #69427 [NEW]: Segfault on magic method __call of private method in superclass

From: Date: Sat, 11 Apr 2015 13:42:44 +0000
Subject: Bug #69427 [NEW]: Segfault on magic method __call of private method in superclass
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191963@lists.php.net to get a copy of this message
From:             tom at tmoitie dot co dot uk
Operating system: OS X 10.10
PHP version:      master-Git-2015-04-11 (Git)
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segfault on magic method __call of private method in superclass

Description:
------------
In latest master (5da417), calling a self referencing private method
inside a __call of a parent class causes a segfault in all subclasses.

Configure: https://gist.github.com/tmoitie/61f28d1a188b4e2b0bf9
PHP ini is default


Test script:
---------------
http://3v4l.org/vvRVo

Expected result:
----------------
string(3) "foo"
string(3) "bar"
string(6) "foobar"

Actual result:
--------------
string(3) "foo"
string(3) "bar"
[1]    70326 segmentation fault  php testcase.php

-- 
Edit bug report at https://bugs.php.net/bug.php?id=69427&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69427&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69427&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69427&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69427&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69427&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69427&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69427&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69427&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69427&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69427&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69427&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69427&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69427&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69427&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69427&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69427&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69427&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69427&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69427&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69427&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#191963) next »