php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57760 runkit_method_redefine() cause php crashing
Submitted: 2007-07-28 21:33 UTC Modified: 2013-02-23 14:22 UTC
From: coconut_vision at yahoo dot fr Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.2.1 OS: windows xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: coconut_vision at yahoo dot fr
New email:
PHP Version: OS:

 

 [2007-07-28 21:33 UTC] coconut_vision at yahoo dot fr
Description:
------------
Hello.

runkit_method_redefine() doesn't want to work for me and cause php crashing.

Thanks for your reply.

Reproduce code:
---------------
<?php
function testme() {
  echo "Original Testme Implementation\n";
}
testme();
runkit_method_redefine('main', 'testme','','echo "New Testme Implementation\n";');
testme();
?> 

Expected result:
----------------
Original Testme Implementation
New Testme Implementation

Actual result:
--------------
Original Testme Implementation

Here is the backtrace:

Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!php_strtolower+25     00c0fb18     00c0fb1c     011ad010    
php_runkit!php_runkit_fetch_function+16     00000006     011ae7b0     00000006    
php_runkit!zif_runkit_function_redefine+70     011aec10     00033970     00000000    
php5ts!zend_execute_scripts+107     00000008     00033970     00000000    
php5ts!php_execute_script+20d     bc800000     bc8dd4f0     00000000    
0x00160100     bc8dd4f0     00000000     00000000    
0x80000000`00000000     00000000     00000000     0003000d    
0x80000000`00000000     00000000     0003000d     000c0100    




PHP5TS!PHP_STRTOLOWER+25In php__PID__13456__Date__07_29_2007__Time_02_40_36AM__125__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!php_strtolower+25 in C:\Documents and Settings\Mik\Bureau\php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to write to memory location 0x00c10000 on thread 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-20 18:10 UTC] danilo dot dominguez at accionasolutions dot net
I have the same problem using linux (ubuntu 9.10 64 bits). My 
PHP version is 5.2.10.
 [2013-02-23 14:22 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:22 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC