php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57424 crash when using intercept_add function
Submitted: 2006-12-10 12:32 UTC Modified: 2012-06-15 00:18 UTC
From: msaraujo@php.net Assigned: felipe (profile)
Status: Closed Package: intercept (PECL)
PHP Version: 5.2.0 RC4 OS: Linux (Irrelevant)
Private report: No CVE-ID: None
 [2006-12-10 12:32 UTC] msaraujo@php.net
Description:
------------
There is a segmentation fault when I try to call intercept_add and set its target.


Reproduce code:
---------------
<?php
function foo() {

    return 20 + 20;
}

function trigger() {

 echo "Triggering it :)\n\n";
}

intercept_add("foo","trigger");
foo();
?>


Actual result:
--------------
#php example.php 
Triggering it :)

Segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-12 11:01 UTC] marvinorez at gmail dot com
PHP version 5.2.9
example from README file throw the same error
 [2012-06-15 00:18 UTC] felipe@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.


 [2012-06-15 00:18 UTC] felipe@php.net
-Summary: intercept_add issue +Summary: crash when using intercept_add function -Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2012-06-15 00:18 UTC] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=326176
Log: - Fixed build on PHP 5.3+
- Fixed bug #57424 (crash when using intercept_add function)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC