[PHP-BUG] Bug #61597 [NEW]: SimpleXML drops attributes for tags with both attributes and text
From: Operating system: Mac OS X PHP version: 5.3.10 Package: SimpleXML related Bug Type: Bug Bug description:SimpleXML drops attributes for tags with both attributes and text Description: When loading XML into SimpleXML, tags which have both attributes and text will have their attributes dropped. For example, loading this into SimpleXML: Here is some text Will cause 'attribute="value"' to be lost. If there is no text w/in a tag, but attributes, the attributes and their values are preserved. I'm not the only PHP developer to notice this bug; please see: http://stackoverflow.com/questions/8563073/disappearing-attributes-in-php-simplexml-object I didn't see this bug reported on php.net, however. Test script: --- See above. Expected result: Tags with both attributes and text should not have their attributes dropped. -- Edit bug report at https://bugs.php.net/bug.php?id=61597&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61597&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61597&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61597&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61597&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61597&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61597&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61597&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61597&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61597&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61597&r=support Expected behavior: https://bugs.php.net/fix.php?id=61597&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61597&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61597&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61597&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61597&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=61597&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61597&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61597&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61597&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61597&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61597&r=mysqlcfg
Bug #60021 [Com]: DOMDocument errors on HTML5 tags
Edit report at https://bugs.php.net/bug.php?id=60021&edit=1 ID: 60021 Comment by: drgroove at gmail dot com Reported by:drgroove at gmail dot com Summary:DOMDocument errors on HTML5 tags Status: Open Type: Bug Package:DOM XML related Operating System: Mac OS X PHP Version:5.3.8 Block user comment: N Private report: N New Comment: Any progress on resolving this? Working w/ DOMDocument and HTML5 is a huge pain in the butt right now; you have to write custom error handlers for things like , , and other HTML5 tags. Also, just entered a bug report for SimpleXML (where tags w/ both attributes and text have their attributes dropped). Both DOMDocument and SimpleXML need updates... it's very difficult to work w/ HTML and XML when both of these APIs have so many issues. Thanks for your help everyone :) Previous Comments: [2011-10-09 05:24:13] drgroove at gmail dot com Description: Loading HTML documents through DOMDocument->loadHTMLFile(), when the HTML file contains certain new HTML5 tags, results in this error: Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here} is a new HTML5 tag. The error appears for other HTML5 tags as well (eg, ). Test script: --- // TEST.html Some text here // TEST.php loadHTMLFile("TEST.html"); ?> Expected result: DOMDocument should not fail on HTML5 tags. Actual result: -- Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here} -- Edit this bug report at https://bugs.php.net/bug.php?id=60021&edit=1
Req #52647 [Com]: Function to get Windows drive letters
Edit report at http://bugs.php.net/bug.php?id=52647&edit=1 ID: 52647 Comment by: drgroove at gmail dot com Reported by:shaun dot spiller at yahoo dot com Summary:Function to get Windows drive letters Status: Assigned Type: Feature/Change Request Package:Filesystem function related Operating System: Windows PHP Version:5.3.3 Assigned To:pajoye Block user comment: N Private report: N New Comment: I'd really like to see this, or something like it, added to the next version of PHP. Previous Comments: [2010-12-10 03:20:24] paj...@php.net 5.3 is not for new features. And as I said in my comment, there are issues with this patch. So don't be too much disappointed :) [2010-12-10 02:37:12] shaun dot spiller at yahoo dot com I'm very disappointed this wasn't added to PHP 5.3.4. I've been checking daily since submitting this but the new version of PHP was just released and my patch has been forgotten. This code works perfectly (as far as I can tell) and fills a glaring hole in the PHP filesystem API. All it needs is for somebody to decide to add it to the source tree. Name the function whatever. I did the best I could to learn the ins and outs of the PHP internals to integrate it and provide it in an acceptable form. This is where someone (?) on IRC told me to submit it. [2010-08-20 17:33:02] ka...@php.net That was what I was thinking too, something like sys_get_drives() or sys_get_devices() was what I had in mind if someone one day was going to port it so the name is consistent :) [2010-08-19 22:26:08] paj...@php.net Sorry Kalle, already looked at that a while back. Also the function name and co is not that good. >> taking back :) [2010-08-19 22:24:10] ka...@php.net I'm re-assigning this one to me, I'll have a look and test of it doing the weekend and commit it to trunk Thanks for the contribution! :) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=52647 -- Edit this bug report at http://bugs.php.net/bug.php?id=52647&edit=1
[PHP-BUG] Bug #71674 [NEW]: DOMDocument errors on HTML5 tags
From: Operating system: Mac OS X PHP version: 5.3.8 Package: DOM XML related Bug Type: Bug Bug description:DOMDocument errors on HTML5 tags Description: Loading HTML documents through DOMDocument->loadHTMLFile(), when the HTML file contains certain new HTML5 tags, results in this error: Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here} is a new HTML5 tag. The error appears for other HTML5 tags as well (eg, ). Test script: --- // TEST.html Some text here // TEST.php loadHTMLFile("TEST.html"); ?> Expected result: DOMDocument should not fail on HTML5 tags. Actual result: -- Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here} -- Edit bug report at https://bugs.php.net/bug.php?id=71674&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71674&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=71674&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71674&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71674&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=71674&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=71674&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71674&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71674&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71674&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71674&r=support Expected behavior: https://bugs.php.net/fix.php?id=71674&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71674&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71674&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71674&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71674&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=71674&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71674&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71674&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71674&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71674&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71674&r=mysqlcfg