php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27660 "Call to undefined function" errors
Submitted: 2004-03-23 13:20 UTC Modified: 2004-03-26 20:45 UTC
From: memoimyself at yahoo dot com dot br Assigned:
Status: Closed Package: DOM XML related
PHP Version: 5.0.0RC1 OS: *
Private report: No CVE-ID: None
 [2004-03-23 13:20 UTC] memoimyself at yahoo dot com dot br
Description:
------------
I noticed that "php_domxml" is no longer an option in the extensions section of php.ini, so I assume that DOM XML is now bundled with PHP5. As a matter of course, phpinfo() tells me that DOM/XML is enabled and that the version of libxml is 2.5.11.

However, when trying to use domxml_version(), domxml_new_doc(), domxml_open_mem(), or any other DOM XML function, I get a "call to undefined function" error. If these functions now have new names, they're not listed in the online documentation.

I have checked the new php.ini file to make sure that it points to valid paths (e.g. extension_dir = "C:\PHP\ext\") and everything's fine.

The extensions directory is there and is pointed to correctly by php.ini; all PHP files are in c:\php and the sub-directories are exactly the same as in the distribution package; httpd.conf has been properly edited (and in fact Apache issues no error messages); my system path variable contains c:\php. What's going on?

Reproduce code:
---------------
print domxml_version();

$xmldoc = domxml_new_doc('1.0');

$xmldoc = domxml_open_mem('<?xml version="1.0"?><root>test</root>');

Expected result:
----------------
Functions should at least be recognized.

Actual result:
--------------
"Call to undefined function" errors.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-23 14:42 UTC] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

ext/domxml was EXPERIMENTAL.
read the docs on EXPERIMENTAL.

The new ext/dom is w3/dom compatible so the function/method names now follow studlyCaps convention.
 [2004-03-23 16:59 UTC] memoimyself at yahoo dot com dot br
Thank you for your prompt reply.

So this is basically a documentation problem, because these new function names are not documented anywhere.

If I can help with the documentation, please contact me.

One more question: are the new function names still considered experimental?
 [2004-03-26 20:44 UTC] helly@php.net
Since we follow the W3 standard they can be considered stable. You can help documentation of cause, simply contact the documentation group: phpdoc@php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC