Bug #51425 [Com]: segfaults at method_exists()
| From: | cronz at yandex dot ru | Date: | Fri, 07 Jun 2013 08:48:41 +0000 |
| Subject: | Bug #51425 [Com]: segfaults at method_exists() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179392@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51425&edit=1
ID: 51425
Comment by: cronz at yandex dot ru
Reported by: jimmyxx at gmail dot com
Summary: segfaults at method_exists()
Status: Not a bug
Type: Bug
Package: Class/Object related
Operating System: Ubuntu 9.10
PHP Version: 5.2.13
Block user comment: N
Private report: N
New Comment:
Hi Guys.
As per zend forum : http://forums.zend.com/viewtopic.php?f=57&t=42383
The issue was resolved by adding this line to config:
===========================================
zend_loader.obfuscation_level_support=2
===========================================
Previous Comments:
------------------------------------------------------------------------
[2012-03-21 10:13:31] le4776 at gmail dot com
This is still a problem for me.
# php --version
PHP 5.3.10 (cli) (built: Mar 8 2012 13:40:08)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.0.12, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
#
#
#
# php -r "echo (method_exists('c', 'm') ? 'OK' :
'FAIL');"
Segmentation fault
#
------------------------------------------------------------------------
[2012-02-12 12:40:54] eduards at cervon dot net
This also happens with PHP 5.3.3-7+squeeze7 with Suhosin-Patch (latest stable for Debian production
systems)
Code that causes crash:
class db_result extends mysqli_result
{
public function fetch_all()
{
if (method_exists('parent', 'fetch_all'))
{
$result = parent::fetch_all(MYSQLI_ASSOC);
$this->free();
return (array)$result;
}
else
{
// [...] code that emulates mysqli_result::fetch_all functionality
}
}
}
------------------------------------------------------------------------
[2011-11-16 13:56:50] felipe@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2010-07-20 16:38:44] adam dot zivner at gmail dot com
PHP 5.3.12 => PHP 5.2.13
------------------------------------------------------------------------
[2010-07-20 16:37:38] adam dot zivner at gmail dot com
Experiencing the same problem on PHP 5.3.12. PHP 5.3.1 runs fine.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=51425
--
Edit this bug report at https://bugs.php.net/bug.php?id=51425&edit=1