View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000835 | Xdebug | Uncategorized | public | 2012-05-16 05:28 | 2012-06-11 16:03 |
Reporter | Hawk | Assigned To | derick | ||
Priority | immediate | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | intel | OS | Ubuntu | OS Version | 11.10 |
Product Version | 2.2.0 | ||||
Target Version | 2.2.1 | Fixed in Version | 2.2.1 | ||
Summary | 0000835: xDebug don't work with PHP 5.4.1 | ||||
Description | xDebug don't work with PHP 5.4.1 | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.4.1 | ||||
|
Hi, In order to reproduce and fix this, I'd need the following information:
cheers, |
|
|
|
|
|
I upload VotesWidget.php - xdebug crashes when i set up breakpoint at line 19. Breakpoint at any line involves the same result. |
|
Some additional info: During execute line: $widget=new $className($owner); we go to "__construct" method: public function __construct($owner=null) and in the first line of "__construct" xDebug crashes |
|
I use PHPStorm to debug |
|
Hawk, I would really need a self-contained script that I would be able to run myself. Little snippets is not something that helps me unfortunately. I'd be greatly appreciated if you could spend some time on creating just that. cheers, |
|
Derick, it appears that this is the case where a small, self-contained script that reproduces the problem is extremely difficult to produce. There's that theorem the author of which I forgot (and yes, it's a rigorous theorem not just a Murphy's law) which states that the simplest input that triggers a bug in a program can be arbitrarily complex. Please do consider debugging strategies that don't rely on this holy grail, as they might prove fruitful sooner than than we manage to provide a small, self-contained test case. One such strategy could be to drop the requirements of "small", "self-contained", or both. Towards that, since I hit the bug while developing a Wordpress plugin (and the breakpoint was set in Wordpress code, not in my plugin), I will now set up a virtual server with a fresh Wordpress installation, and try stepping through it. If I can reproduce the bug this way, so can you. Stay tuned. |
|
Once you've set it up, could you provide me with access to it? I have no clue about how Wordpress works :-) |
|
I'm sorry, I over-promised! I simply forgot that I had downgraded to 5.3/2.1 to be able to continue my work, which means that I don't actually have the bug in my system now. In order to test it, I'd have to upgrade again, setup vhost and Wordpress, test, and downgrade again - too much hassle. But but but, there's no magic to how Wordpress works :) - it is just a PHP webapp, and you can set it up in minutes on your local machine running Apache: setup vhost, extract archive to docroot, navigate to http://your-host[/your-prefix]/wp-admin/install.php, complete the quiz ;). The information you will need from me is where to set the breakpoint in the Wordpress code. I'll provide it later today. |
|
OK, I went through with the upgrade/downgrade anyway. Here is a "small, Wordpress-contained" example:
---BEGIN bugger.php--- function bugger_admin_enqueue_scripts($hook) {
} Enable the "XDebug bugger" plugin in Wordpress. Setup remote XDebug debugging. Set breakpoint where the comment says. Visit http://{your_host}/wp-admin/index.html using Firefox extension http://www.elime.be/easyxdebug.htm . That should do it. Edit: this mantis thingy can't cope with national characters! Bad mantis! ;) |
|
The same problem in PHP 5.4.3. I can't provide a self-contained script because i don't know what exact combination of php statements involve to crash. You can reproduce the crash if you install Yii framework and set up breakpoint in any class inherited from CWidget. |
|
I have the same problem using PHP 5.4.3 with NetBeans. But if you try to create a simple class that assignes $this to a variable, xdebug does not crash. |
|
Any progress on this? |
|
I think I've just pushed a fix to github for this issue. Could you please try it? |
|
Tested last build, now it's works! I've not checked all functionality, but this bug is fixed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-16 05:28 | Hawk | New Issue | |
2012-05-16 08:52 | derick | Note Added: 0002158 | |
2012-05-16 08:52 | derick | Assigned To | => derick |
2012-05-16 08:52 | derick | Status | new => feedback |
2012-05-16 08:53 | derick | Target Version | => 2.2.1 |
2012-05-16 20:03 | Hawk | File Added: xdebug.log | |
2012-05-16 20:05 | Hawk | File Added: VotesWidget.php | |
2012-05-16 20:10 | Hawk | Note Added: 0002161 | |
2012-05-16 20:10 | Hawk | Status | feedback => assigned |
2012-05-17 05:41 | Hawk | Note Added: 0002165 | |
2012-05-17 05:43 | Hawk | Note Added: 0002166 | |
2012-05-17 05:43 | Hawk | Note Edited: 0002166 | |
2012-05-17 07:38 | derick | Note Added: 0002170 | |
2012-05-17 07:38 | derick | Status | assigned => feedback |
2012-05-17 08:27 | rulatir | Note Added: 0002171 | |
2012-05-17 08:32 | derick | Note Added: 0002172 | |
2012-05-17 11:59 | rulatir | Note Added: 0002175 | |
2012-05-17 13:21 | rulatir | Note Added: 0002176 | |
2012-05-17 13:22 | rulatir | Note Edited: 0002176 | |
2012-05-17 13:24 | rulatir | Note Edited: 0002176 | |
2012-05-21 08:57 | Hawk | Note Added: 0002181 | |
2012-05-21 08:57 | Hawk | Status | feedback => assigned |
2012-05-22 13:38 | projekter | Note Added: 0002185 | |
2012-05-27 15:23 | rulatir | Note Added: 0002191 | |
2012-05-28 08:27 | derick | Note Added: 0002203 | |
2012-05-28 08:27 | derick | Status | assigned => feedback |
2012-06-08 07:52 | dotbrat | Note Added: 0002239 | |
2012-06-11 16:03 | derick | Status | feedback => closed |
2012-06-11 16:03 | derick | Resolution | open => fixed |
2012-06-11 16:03 | derick | Fixed in Version | => 2.2.1 |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |