#49140 [Opn->Csd]: Bad coding practice in example code

From: Date: Mon, 03 Aug 2009 21:14:24 +0000
Subject: #49140 [Opn->Csd]: Bad coding practice in example code
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2599@lists.php.net to get a copy of this message
ID: 49140 Updated by: kalle@php.net Reported By: zerobot at web dot de -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: kalle New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-08-03 21:14:20] svn@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=286768 Log: Fixed bug #49140 (Bad coding practice in example code) ------------------------------------------------------------------------ [2009-08-03 13:18:02] zerobot at web dot de Description: ------------ Example code on the manpage function.libxml-use-internal-errors should not call DOMDocument::load statically since this is considered bad practice (according to manpage domdocument.load). Instead the example code should read something like this: $doc = new DOMDocument(); $doc->load('file.xml'); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49140&edit=1

« previous php.doc.bugs (#2599) next »