domxml_open_file doesn't open DOMXML file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I am currently trying my hand at a Horde installation, which heavyly
depends on PHP, and PEAR.

The environment:
- Operating system: SunOS 5.9 Generic_118558-38 sun4u sparc SUNW,Sun-Fire-V240
- The HTTPD server: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7i PHP/4.4.4
- PEAR Version: 1.5.0
- PHP Version: 4.4.4
- Zend Engine Version: 1.3.0
See also: <https://webmailtest.rz.uni-konstanz.de/phpinfo.php>.

Since my colleague has installed PHP 4.4.4, the domxml_open_file()
function is broken: it aborts the calling PHP program, so that
no HTML output is sent to the browser.

I have written a small PHP programm to try domxml_open_file
on an XML source file, cf. attached test-domxml.php. As there
is no output, whatsoever, once domxml_open_file is called, I
have inserted a submit button to effect domxml_open_file's
invocation and display of its results. Above this button,
test-domxml.php reveals some details about our PHP installation,
and then demonstrates that a readable XML source file is selected
for the test.

Also attached are three test results:
test-domxml-webmailtest.htm:
  the HTML output from test-domxml.php on the faulty PHP installation
  before the "Test now" button is hit, showing installation details
  and demonstrating that the selected XML file is indeed readable;
test-domxml-webmailtest.http:
  the HTTP traffic caused by hitting that button, demonstrating that
  "HTTP/1.x 200 OK" is the whole response from the faulty server;
test-domxml-webmail.htm:
  output from a copy of test-domxml.php, as run on a server running
  still PHP 4.4.2, after the "test now" button was hit, demonstrating
  that domxml_open_file() has delivered its results.

Now the big question is:
- What could be the reason for that erratic behaviour?
- How can I efficiently locate the source of that error?
- What could I do to mend our PHP installation?

Thank you for any hint. A link to some "Troubleshooting PHP installations"
docu would serve as a starting-point. (I have seen docu devoted to
the question of troubleshooting in PHP applications; however, that does
not help in any way, as I know already the ppertinent location in my PHP
program.)

Note that I know next to nothing about compiling, and packaging, PHP:
This has be done by colleagues. Of course, they tell me that they have
followed the pertinent installation documentation, to a T. So I need
some ideas what could have been overlooked or misunderstood, I could
tell my colleagues to consider.

Best wishes,
   Otto Stolz
http://webmailtest.rz.uni-konstanz.de/test-domxml.php?path=%2Fopt%2Ftest-webmail%2Fhorde%2Flocale%2Fen_US%2Fhelp.xml&go=Test+now

GET /test-domxml.php?path=%2Fopt%2Ftest-webmail%2Fhorde%2Flocale%2Fen_US%2Fhelp.xml&go=Test+now HTTP/1.1
Host: webmailtest.rz.uni-konstanz.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en,de-de;q=0.9,de;q=0.7,en-us;q=0.6,la;q=0.4,it;q=0.3,fr;q=0.1
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://webmailtest.rz.uni-konstanz.de/test-domxml.php?path=%2Fopt%2Ftest-webmail%2Fhorde%2Flocale%2Fen_US%2Fhelp.xml&select=Select+test+file

HTTP/1.x 200 OK
----------------------------------------------------------
Title: DOM-XML Test

DOM-XML Test

Present script:
  • /opt/webmail/test-domxml.php
Server software:
  • Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7i
  • PHP Version: 4.4.2
  • Loaded PHP extensions: xml, tokenizer, sysvshm, sysvsem, sysvmsg, standard, session, posix, overload, mbstring, dba, ctype, pcre, apache, imap, mysql, gettext, gd, ldap, mcrypt, zlib, mime_magic, iconv, domxml, calendar
Configuration Options
  • auto_detect_line_endings = false
  • safe_mode = false
  • disable_functions = »«
  • disable_classes = »«
Standard paths:
  • Default include path: .:/opt/php4/lib/php
  • PHP extension directory: /opt/php4/lib/php/extensions/no-debug-non-zts-20020429
  • PHP prefix: /opt/php4
  • PHP binary directory: /opt/php4/bin
  • PHP library directory: /opt/php4/lib/php
  • PHP data directory: /opt/php4/share/php
  • PHP sysconf directory: /opt/etc/php4
  • PHP local state directory: /opt/php4/var
  • PHP configuration file path: /opt/etc/php4
  • PHP config file scan directory:
  • PEAR installation directory: /opt/php4/lib/php
  • PEAR extension directory: /opt/php4/lib/php/extensions/no-debug-non-zts-20020429
  • open_basedir: .:/opt/php4/lib/php:/opt/webmail:/opt/test-webmail
Test XML file /opt/test-webmail/hccx /opt/test-webmail/horde/config/conf.xml /opt/test-webmail/horde/imp/config/conf.xml /opt/test-webmail/horde/turba/config/conf.xml /opt/test-webmail/horde/locale/en_US/help.xml /opt/test-webmail/horde/imp/locale/en_US/help.xml /opt/test-webmail/horde/turba/locale/en_US/help.xml
  • Inode: 21432
  • Protection mode: 100644
  • Owner and group: root:root
  • Size: 0.1 kB
  • Regular file? yes
  • Readable? yes
  • Length: 5 lines
  • First line: »<?xml version='1.0'?> «
  • Testing DOM-XML functions:
    • domxml_open_file():
    • Result: object(domdocument)(9) { ["name"]=> string(9) "#document" ["url"]=> string(45) "/opt/test-webmail/horde/locale/en_US/help.xml" ["version"]=> string(3) "1.0" ["standalone"]=> int(-1) ["type"]=> int(9) ["compression"]=> int(-1) ["charset"]=> int(1) [0]=> int(3) [1]=> int(5432480) }
    • Error: array(0) { }
Title: DOM-XML Test

DOM-XML Test

Present script:
  • /opt/test-webmail/test-domxml.php
Server software:
  • Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7i PHP/4.4.4
  • PHP Version: 4.4.4
  • Loaded PHP extensions: xml, tokenizer, sysvshm, sysvsem, sysvmsg, standard, session, posix, overload, mbstring, dba, ctype, pcre, apache, imap, mysql, gettext, gd, ldap, mcrypt, zlib, mime_magic, iconv, domxml, openssl
Configuration Options
  • auto_detect_line_endings = false
  • safe_mode = false
  • disable_functions = »«
  • disable_classes = »«
Standard paths:
  • Default include path: .:/opt/php4/lib/php
  • PHP extension directory: /opt/php4/lib/php/extensions/no-debug-non-zts-20020429
  • PHP prefix: /opt/php4
  • PHP binary directory: /opt/php4/bin
  • PHP library directory: /opt/php4/lib/php
  • PHP data directory: /opt/php4/share/php
  • PHP sysconf directory: /opt/etc/php4
  • PHP local state directory: /opt/php4/var
  • PHP configuration file path: /opt/etc/php4
  • PHP config file scan directory:
  • PEAR installation directory: /opt/php4/lib/php
  • PEAR extension directory: /opt/php4/lib/php/extensions/no-debug-non-zts-20020429
  • open_basedir: .:/opt/php4/lib/php:/var/adm/httpd/:/opt/test-webmail
Test XML file /opt/test-webmail/hccx /opt/test-webmail/horde/config/conf.xml /opt/test-webmail/horde/imp/config/conf.xml /opt/test-webmail/horde/turba/config/conf.xml /opt/test-webmail/horde/locale/en_US/help.xml /opt/test-webmail/horde/imp/locale/en_US/help.xml /opt/test-webmail/horde/turba/locale/en_US/help.xml
  • Inode: 76562
  • Protection mode: 100644
  • Owner and group: stolz:rz
  • Size: 1.6 kB
  • Regular file? yes
  • Readable? yes
  • Length: 44 lines
  • First line: »<?xml version="1.0"?> «
  • Testing DOM-XML functions:

Attachment: test-domxml.php
Description: application/php


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux