|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57291 2.0.0RC1 syntax error (conditional)
Submitted: 2006-10-12 04:45 UTC Modified: 2006-10-20 08:46 UTC
From: hiroaki dot kawai at gmail dot com Assigned: derick (profile)
Status: Closed Package: Xdebug
PHP Version: 5.1.6 OS: FreeBSD
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:
Bug Type:
From: hiroaki dot kawai at gmail dot com
New email:
PHP Version: OS:


 [2006-10-12 04:45 UTC] hiroaki dot kawai at gmail dot com
While compiling xdebug.c, ifdef ZEND_ENGINE_2, 
compilation fails.

/var/tmp/reproduce/xdebug-2.0.0RC1/xdebug.c: In function `zm_post_zend_deactivate_xdebug':
/var/tmp/reproduce/xdebug-2.0.0RC1/xdebug.c:771: syntax error before `*'
/var/tmp/reproduce/xdebug-2.0.0RC1/xdebug.c:817: `orig' undeclared (first use in this function)
/var/tmp/reproduce/xdebug-2.0.0RC1/xdebug.c:817: (Each undeclared identifier is reported only once
/var/tmp/reproduce/xdebug-2.0.0RC1/xdebug.c:817: for each function it appears in.)
*** Error code 1

Stop in /var/tmp/reproduce/xdebug-2.0.0RC1.

Expected result:
This patch will fix the problem.

--- xdebug.c    2006-10-09 05:54:14.000000000 +0900
+++        2006-10-12 17:37:07.170136000 +0900
@@ -763,12 +763,13 @@
 #ifdef ZEND_ENGINE_2
+       zend_function *orig;
        zend_function *orig;

        xdebug_llist_destroy(XG(stack), NULL);
        XG(stack) = NULL;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-12 06:02 UTC]
Which compiler are you using (including version!) and please fill in the OS as well. This is working fine here and from what I can see the code is not in fault either.
 [2006-10-20 02:19 UTC] hiroaki dot kawai at gmail dot com
I expienced with FreeBSD 4.11.

$ gcc -v    
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]
$ uname -a
FreeBSD rdpc00 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Fri Aug 12 11:24:24 JST 2005     root@XXXX  i386
 [2006-10-20 08:46 UTC]
Fixed in CVS now. Please file bugs at in the future though.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 01:03:35 2021 UTC