View Issue Details

IDProjectCategoryView StatusLast Update
0000923Xdebugpublic2013-05-22 03:51
Reporterdizyart Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64, Intel i5OSWindows 7OS VersionUltimate SP1
Product Version2.2.1 
Target Version2.2.3Fixed in Version2.2.3 
Summary0000923: copy of issue 0000883, Xdebug + Netbeans + ext/MongoDB crash on MongoCursor instance
Description

Copy of http://bugs.xdebug.org/view.php?id=883.

When running a "Debug Project" in NetBeans, whenever MongoCursor object is instantiated,
NetBeans throws a SocketException after 0000002:0000001.5 seconds. If the instances are unset and the
exception-throwing step is skipped (with a breakpoint), the debugging session continues normally.

Steps To Reproduce

1.Setup NetBeans to debug with xdebug.
2.Add mongodb extension to PHP.
3.Instantiate a MongoCursor object in code.
4.Step-over to the code (or after it).
5.NetBeans throws a SocketException.

Alternatively
4.Unset MongoCursor instance
5.Set a breaking point in code AFTER the unset.
6.Skip over the part where the instance is in memory.
7.NetBeans continues

Additional Information

ALL additional information (very exhaustive list) is in the uploaded test file.

Also found on https://gist.github.com/dizyart/4942925

Tagsmongodb, netbeans, socket exception
Operating SystemWindows 7
PHP Version5.4.6

Activities

dizyart

2013-02-13 07:52

reporter   ~0002427

Copying my versions here, for easier review:

Versions

PHP 5.4.6
Xdebug 2.2.1
Server version: Apache/2.2.23 (Win32)
NetBeans Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01
System: Windows 7 version 6.1 running on x86 (64); Cp1250; en_US (nb)
MongoDB PHP extension: 1.3.1

dizyart

2013-02-13 08:11

reporter   ~0002428

Last edited: 2013-02-13 08:12

Just checked with Mongo 1.2.12:
extension=php_mongo-1.2.12-5.4-vc9.dll

No change in behavior.

Just change the first line to:

$connection = (class_exists('MongoClient')) ? new MongoClient() : new Mongo();

Makes it compatible with all versions of php_mongo

derick

2013-05-14 18:11

administrator   ~0002461

Fixed for xdebug 2.2.3