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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: msaraujo@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 14 14:01:26 2024 UTC