This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4004-on-090928) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows Vista, 6.0, x86 User Comments: GUEST: Debugging PHP after handy migration from version 6.5 GUEST: ??? GUEST: Debugging PHP each step produce error... GUEST: I was working on some PHP. My intent was to create a recursive array out of my some maps. You can read about it here: http://stackoverflow.com/questions/952263 So this one guy showed me a function, I tested it out and then this happened. The function in question is: function dirToArray($dir) { $contents = array(); # Foreach node in $dir foreach (scandir($dir) as $node) { # Skip link to current and parent folder if ($node == '.') continue; if ($node == '..') continue; # Check if it's a node or a folder if (is_dir($dir . DIRECTORY_SEPARATOR . $node)) { # Add directory recursively, be sure to pass a valid path # to the function, not just the folder's name $contents[$node] = dirToArray($dir . DIRECTORY_SEPARATOR . $node); } else { # Add node, the keys will be updated automatically $contents[] = $node; } } # done return $contents; } And that's al neuros_nid: Stopping on a breakpoint while debugging PHP code Stacktrace: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:974) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1539)
Created attachment 88495 [details] stacktrace
This issue already has 22 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=133854
This issue already has 23 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=133854
Probably problem in xdebug. See related issue in xdebug http://bugs.xdebug.org/view.php?id=421 So, needs to fixed in xdebug not in netbeans, but keeping it open as reminder
batch reassigning
115 dups and still rising
I have fixed similar issue #170309 . The solution for this issue should cover also this problem. There is no exception report from a build after the fix. This is hart to reproduce, could someone who can reproduce, check it?
(In reply to comment #7) > I have fixed similar issue #170309 . The solution for this issue should cover > also this problem. There is no exception report from a build after the fix. > > This is hart to reproduce, could someone who can reproduce, check it? How to update NB7b to check fix? Re-download?
You can download the daily builds here: http://bits.netbeans.org/download/trunk/nightly/latest/ or today was published Beta2 that contains the fix as well.
(In reply to comment #9) > You can download the daily builds here: > http://bits.netbeans.org/download/trunk/nightly/latest/ > > or today was published Beta2 that contains the fix as well. Ah, ok. Beta2 seems works fine, except dialog: "This file cannot be safely opened with encoding UTF8. Do you want to continue opening it?". Slightly annoying, but I will survive. I work with Beta2 2 days and no exceptions. Thanks! Great work!
We don't need to reopen this bug. It would be better to create new one (probably P3) and describe the behavior. It would be great to have a reproducible test case.