[xdebug-dev] Bug 0000083: More than 20 parameters functions make xdebug crashes

From: <xdebug-dev[@]lists.xdebug.org>
Date: Fri, 6 Aug 2004 08:52:48 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000083
======================================================================
Reporter: mathieu
Handler:
======================================================================
Project: Xdebug
Bug ID: 83
Category: Usage problems
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Operating System: Linux
PHP Version: 4.3.7
Xdebug Version: 1.3.2
======================================================================
Date Submitted: 2004-08-02 12:15 CEST
Last Modified: 2004-08-06 08:52 CEST
======================================================================
Summary: More than 20 parameters functions make xdebug crashes
Description:
-------------- Script 1 ----------------
<?
   function a()
   {
      return true ;
   }

   a( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
      11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ) ;

   echo "This message won't be printed\n" ;
?>

No apache response :
[mathieu[@]localhost test]$ netcat 192.168.0.4 80
GET http://192.168.0.4/ubi/test.php
[mathieu[@]localhost test]$

-------------- Script 2 ----------------

<?
   function a()
   {
      return true ;
   }

   a( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
      11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ) ;

   echo "This message will be printed\n" ;
?>

Apache output :
[mathieu[@]localhost test]$ netcat 192.168.0.4 80
GET http://192.168.0.4/ubi/test.php
This message will be printed
[mathieu[@]localhost test]$

Both of these tests work well when xdebug is not activated in php.ini. It
makes me think you allocate statically something with a 20 value. Or you
talked about a limit and I didn't see it.

Hope it can help you

Mathieu

======================================================================

----------------------------------------------------------------------
 derick - 2004-08-02 13:46 CEST
----------------------------------------------------------------------
There is indeed a static limit of 20 in Xdebug 1.3, and a limit of 32 in
Xdebug 2.0. I will definitely fix this in 2.0, but not sure about 1.3 yet
as there might be too many different things to be done and I don't really
want to re-do it for 1.3. If you can compile Xdebug yourself, just change
the "20" in line 156 of php_xdebug.h to something higher and recompile.

----------------------------------------------------------------------
 mathieu - 2004-08-02 14:17 CEST
----------------------------------------------------------------------
Thank you Derick,

it works very well now.

For information, I compiled it with "xdebug_var vars[200];".

I will look if I can make it dynamic later.

Bye bye,
++mathieu;

----------------------------------------------------------------------
 derick - 2004-08-03 22:47 CEST
----------------------------------------------------------------------
I just fixed this in CVS for Xdebug 2.0x, I will have a look now if I can
fix it easily for 1.3.x too.

----------------------------------------------------------------------
 derick - 2004-08-03 22:51 CEST
----------------------------------------------------------------------
The fix is very easy to port to 1.3.x I noticed, I just don't have the
energy to do it now. Will have a look tomorrow (I guess).

----------------------------------------------------------------------
 derick - 2004-08-06 08:52 CEST
----------------------------------------------------------------------
Also fixed in the XDEBUG_1_3 branch in CVS now.

Bug History
Date Modified Username Field Change
======================================================================
2004-08-02 12:15mathieu New Bug
2004-08-02 13:46derick Bugnote Added: 0000163
2004-08-02 13:46derick Status new => confirmed
2004-08-02 14:17mathieu Bugnote Added: 0000164
2004-08-03 22:47derick Bugnote Added: 0000167
2004-08-03 22:47derick Status confirmed => closed
2004-08-03 22:51derick Bugnote Added: 0000169
2004-08-03 22:52derick Status closed => confirmed
2004-08-06 08:52derick Bugnote Added: 0000177
2004-08-06 08:52derick Status confirmed => closed
======================================================================
Received on Fri Aug 06 2004 - 08:52:50 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST