php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58205 calls to runkit_function_* crashes thephp 5.2.6
Submitted: 2008-05-30 06:57 UTC Modified: 2013-02-23 14:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: esad at esse dot at Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.2.5 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 37 = ?
Subscribe to this entry?

 
 [2008-05-30 06:57 UTC] esad at esse dot at
Description:
------------
I'm using php 5.2.6 win32 binaries together with collection of PECL-5.2.6 binaries.

I enabled the php_runkit.dll in php.ini, it shows up as loaded in phpinfo(). I can use stuff like runkit_superglobals() without problems, yet when I try to execute the code containing any call to runkit_function_*, PHP will just silently terminate.

runkit version shows up as 1.0.0-dev, I tried downloading the 0.9 release from pecl4win, but the same happens.

I also tried enabling runkit.internal_override, didn't help.

Reproduce code:
---------------
<?php
function original() {
  echo "In a function\n";
}
runkit_function_copy('original','duplicate');
original();
duplicate();
?>


Expected result:
----------------
In a function
In a function

Actual result:
--------------
PHP terminates, no output

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-30 06:58 UTC] esad at esse dot at
Forgot to mention that I tried using both CLI and apache2.2 handler, they both crash. Apache2 reports: "Parent: child process exited with status 3221225477 -- Restarting."
 [2008-06-17 05:22 UTC] tomasz at yzeo dot fr
I have the same bug with php 5.2.5 (WampServer 2.0 / win XP) & runkit 0.9
 [2008-08-29 07:48 UTC] dave at webvariants dot de
i habe the same bug.

i tested it with XAMPP on windows XP pro SP2 and i have the following php-extensions switched on:

extension=php_gd2.dll
extension=php_gettext.dll
extension=php_imap.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdf.dll
extension=php_pdo.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_runkit.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
extension=php_xdebug.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll

i had XAMPP 1.5.4a (PHP 5.1.6) installed and the apache crashed while using a runkit function. i tested this with some upgrades up to XAMPP 1.6.7 (PHP 5.2.6) and it always crashed.

i tried to switch off xdebug, but this had no effect.

the following functions i tried:
runkit_function_add - failed
runkit_function_redefine - failed
runkit_lint - failed

sandboxing worked, but i could even not call any of the mentioned runkit functions inside a sandbox. standard php worked properly.

i'd like to know if this will be fixed.
 [2011-01-24 05:12 UTC] mahamud at databizsoftware dot com
ddddd
 [2013-02-23 14:18 UTC] pollita@php.net
The fix for this bug has been committed.

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.


 [2013-02-23 14:18 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 16 04:05:45 2022 UTC