php.net |  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
 [2006-10-12 04:45 UTC] hiroaki dot kawai at gmail dot com
Description:
------------
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
+++ xdebug.c.new        2006-10-12 17:37:07.170136000 +0900
@@ -763,12 +763,13 @@
 #ifdef ZEND_ENGINE_2
 ZEND_MODULE_POST_ZEND_DEACTIVATE_D(xdebug)
 {
+       zend_function *orig;
        TSRMLS_FETCH();
 #else
 PHP_RSHUTDOWN_FUNCTION(xdebug)
 {
-#endif
        zend_function *orig;
+#endif

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-12 06:02 UTC] derick@php.net
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] derick@php.net
Fixed in CVS now. Please file bugs at http://bugs.xdebug.org in the future though.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 09 03:05:43 2021 UTC