#27660 [Bgs]: "Call to undefined function" errors
ID: 27660
User updated by: memoimyself at yahoo dot com dot br
Reported By: memoimyself at yahoo dot com dot br
Status: Bogus
Bug Type: DOM XML related
Operating System: *
PHP Version: 5.0.0RC1
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2004-03-23 14:42:31] 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 13:20:27] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27660&edit=1
Thread (5 messages)