|  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: Assigned: felipe (profile)
Status: Closed Package: intercept (PECL)
PHP Version: 5.2.0 RC4 OS: Linux (Irrelevant)
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:
Solve the problem:
22 - 15 = ?
Subscribe to this entry?

 [2006-12-10 12:32 UTC]
There is a segmentation fault when I try to call intercept_add and set its target.

Reproduce code:
function foo() {

    return 20 + 20;

function trigger() {

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


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

Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


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]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2012-06-15 00:18 UTC]
-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]
Automatic comment from SVN on behalf of felipe
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: Tue Jul 16 00:01:27 2024 UTC