#25508 [NEW]: domxml_open_file() does not work when using relative paths
From: mfladischer at gmx dot net Operating system: WinXP SP1 PHP version: 4.3.3 PHP Bug Type: DOM XML related Bug description: domxml_open_file() does not work when using relative paths Description: I get a bool(false) when trying to open a xml-file with a relative path. It works as expected with FQ paths. Reproduce code: --- ?php // example.xml is in the same directory as this script var_dump(domxml_open_file(example.xml)); ? Expected result: A DOM-document object: object(domdocument) Actual result: -- bool(false) -- Edit bug report at http://bugs.php.net/?id=25508edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25508r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25508r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25508r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25508r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25508r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25508r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25508r=support Expected behavior: http://bugs.php.net/fix.php?id=25508r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25508r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25508r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25508r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25508r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25508r=dst IIS Stability: http://bugs.php.net/fix.php?id=25508r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25508r=gnused
#25508 [Bgs-Opn]: domxml_open_file() does not work when using relative paths
ID: 25508 User updated by: mfladischer at gmx dot net Reported By: mfladischer at gmx dot net -Status: Bogus +Status: Open Bug Type: DOM XML related Operating System: * PHP Version: * New Comment: Please see the Reproduce code: // example.xml is in the same directory as this script the path is relative to the path where the script resides. i'm using the apache2 module so paths relative to the location of the script should work. but they do not work with domxml_open_file()! Previous Comments: [2003-09-12 06:32:09] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. According to config and sapi used relative paths can be relative to executable, server executable, base url or current directory. RTFM. [2003-09-12 04:43:53] mfladischer at gmx dot net Description: I get a bool(false) when trying to open a xml-file with a relative path. It works as expected with FQ paths. Reproduce code: --- ?php // example.xml is in the same directory as this script var_dump(domxml_open_file(example.xml)); ? Expected result: A DOM-document object: object(domdocument) Actual result: -- bool(false) -- Edit this bug report at http://bugs.php.net/?id=25508edit=1
#25428 [NEW]: xmlrpc_server_call_method() causes segfault
From: mfladischer at gmx dot net Operating system: RedHat 9 PHP version: 5CVS-2003-09-08 (dev) PHP Bug Type: XMLRPC-EPI related Bug description: xmlrpc_server_call_method() causes segfault Description: When i'm trying to run a XML-RPC server (using the xml-rpc-extension) with PHP5 i get a segfault. Reproduce code: --- ?php $request = xmlrpc_encode_request(system.listMethods, array()); $server = xmlrpc_server_create(); echo xmlrpc_server_call_method($server, $request, false); ? Expected result: ?xml version=1.0 encoding=iso-8859-1? methodResponse params param value array data value stringsystem.listMethods/string /value value stringsystem.methodHelp/string /value value stringsystem.methodSignature/string /value value stringsystem.describeMethods/string /value value stringsystem.multiCall/string /value value stringsystem.getCapabilities/string /value /data /array /value /param /params /methodResponse Actual result: -- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 19945)] 0x0822d92f in zif_xmlrpc_server_call_method (ht=3, return_value=0x408ef0ac, this_ptr=0x0, return_value_used=1) at /linux/devel/php5/ext/xmlrpc/xmlrpc-epi-php.c:1033 1033set_output_options(out, *output_opts); (gdb) bt #0 0x0822d92f in zif_xmlrpc_server_call_method (ht=3, return_value=0x408ef0ac, this_ptr=0x0, return_value_used=1) at /linux/devel/php5/ext/xmlrpc/xmlrpc-epi-php.c:1033 #1 0x082a2583 in zend_do_fcall_common_helper (execute_data=0xbfffd180, op_array=0x408ee410) at /linux/devel/php5/Zend/zend_execute.c:2541 #2 0x082a2d25 in zend_do_fcall_handler (execute_data=0xbfffd180, op_array=0x408ee410) at /linux/devel/php5/Zend/zend_execute.c:2687 #3 0x0829e834 in execute (op_array=0x408ee410) at /linux/devel/php5/Zend/zend_execute.c:1267 #4 0x0827f0f7 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /linux/devel/php5/Zend/zend.c:1018 #5 0x0823f15c in php_execute_script (primary_file=0xb580) at /linux/devel/php5/main/main.c:1625 #6 0x082acea7 in main (argc=2, argv=0xb614) at /linux/devel/php5/sapi/cli/php_cli.c:910 #7 0x40767bf7 in __libc_start_main () from /lib/i686/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=25428edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25428r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25428r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25428r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25428r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25428r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25428r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25428r=support Expected behavior: http://bugs.php.net/fix.php?id=25428r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25428r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25428r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25428r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25428r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25428r=dst IIS Stability: http://bugs.php.net/fix.php?id=25428r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25428r=gnused
#24530 [Bgs-Dup]: segfault on redhat9
ID: 24530 User updated by: mfladischer at gmx dot net Reported By: mfladischer at gmx dot net -Status: Bogus +Status: Duplicate Bug Type: Compile Failure Operating System: Redhat 9 PHP Version: 5CVS-2003-07-08 (dev) New Comment: Thanks for your Help. Was the same error! Previous Comments: [2003-07-08 10:01:06] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. See bug: #24243 [2003-07-08 02:21:51] mfladischer at gmx dot net Description: Compiled with: ./configure \ --prefix=/usr \ --with-config-file-path=/etc/server \ --with-apxs2=/usr/bin/apxs \ --with-zlib \ --disable-cgi \ --enable-debug \ --disable-all `make test` results in a segfault. glibc: glibc-2.3.2 gcc: gcc-3.2.2 Actual result: -- [EMAIL PROTECTED] cli]# gdb ./php GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux-gnu... (gdb) run Starting program: /home/share/software/linux/devel/php5/sapi/cli/php Program received signal SIGSEGV, Segmentation fault. 0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960 /linux/devel/php5/Zend/zend_hash.c, line=837) at /linux/devel/php5/Zend/zend_hash.c:53 53 if (ht-inconsistent==HT_OK) { (gdb) bt #0 0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960 /linux/devel/php5/Zend/zend_hash.c, line=837) at /linux/devel/php5/Zend/zend_hash.c:53 #1 0x08126d6e in zend_hash_find (ht=0x0, arKey=0xbfffe810 lwp, nKeyLength=4, pData=0xbfffe840) at /linux/devel/php5/Zend/zend_hash.c:837 #2 0x081159db in zend_lookup_class (name=0xbfffe810 lwp, name_length=3, ce=0xbfffe840) at /linux/devel/php5/Zend/zend_execute_API.c:736 #3 0x0811356b in zend_get_constant (name=0x81d3688 LWP::Simple, name_len=11, result=0xbfffe870) at /linux/devel/php5/Zend/zend_constants.c:251 #4 0x08106882 in zend_ini_get_constant (result=0xbfffe8d0, name=0xbfffe930) at zend_ini_parser.y:101 #5 0x08107282 in ini_parse () at zend_ini_parser.y:229 #6 0x08106a43 in zend_parse_ini_file (fh=0xb7b0, unbuffered_errors=1 '\001', ini_parser_cb=0x807e8e2 php_browscap_parser_cb, arg=0x817f960) at zend_ini_parser.y:156 #7 0x0807ec87 in zm_startup_browscap (type=1, module_number=1) at /linux/devel/php5/ext/standard/browscap.c:165 #8 0x08077bcb in zm_startup_basic (type=1, module_number=1) at /linux/devel/php5/ext/standard/basic_functions.c:1069 #9 0x0812311a in zend_startup_module (module=0x8175e20) at /linux/devel/php5/Zend/zend_API.c:1126 #10 0x080e116f in php_startup_extensions (ptr=0x817ef28, count=2) at /linux/devel/php5/main/main.c:1222 #11 0x08148df4 in php_startup_internal_extensions () at main/internal_functions_cli.c:52 #12 0x080e166f in php_module_startup (sf=0x817eea0, additional_modules=0x0, num_additional_modules=0) at /linux/devel/php5/main/main.c:1387 #13 0x081479d6 in main (argc=1, argv=0xbb04) at /linux/devel/php5/sapi/cli/php_cli.c:592 #14 0x400bba07 in __libc_start_main () from /lib/i686/libc.so.6 -- Edit this bug report at http://bugs.php.net/?id=24530edit=1
#24530 [NEW]: segfault on redhat9
From: mfladischer at gmx dot net Operating system: Redhat 9 PHP version: 5CVS-2003-07-08 (dev) PHP Bug Type: Compile Failure Bug description: segfault on redhat9 Description: Compiled with: ./configure \ --prefix=/usr \ --with-config-file-path=/etc/server \ --with-apxs2=/usr/bin/apxs \ --with-zlib \ --disable-cgi \ --enable-debug \ --disable-all `make test` results in a segfault. glibc: glibc-2.3.2 gcc: gcc-3.2.2 Actual result: -- [EMAIL PROTECTED] cli]# gdb ./php GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux-gnu... (gdb) run Starting program: /home/share/software/linux/devel/php5/sapi/cli/php Program received signal SIGSEGV, Segmentation fault. 0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960 /linux/devel/php5/Zend/zend_hash.c, line=837) at /linux/devel/php5/Zend/zend_hash.c:53 53 if (ht-inconsistent==HT_OK) { (gdb) bt #0 0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960 /linux/devel/php5/Zend/zend_hash.c, line=837) at /linux/devel/php5/Zend/zend_hash.c:53 #1 0x08126d6e in zend_hash_find (ht=0x0, arKey=0xbfffe810 lwp, nKeyLength=4, pData=0xbfffe840) at /linux/devel/php5/Zend/zend_hash.c:837 #2 0x081159db in zend_lookup_class (name=0xbfffe810 lwp, name_length=3, ce=0xbfffe840) at /linux/devel/php5/Zend/zend_execute_API.c:736 #3 0x0811356b in zend_get_constant (name=0x81d3688 LWP::Simple, name_len=11, result=0xbfffe870) at /linux/devel/php5/Zend/zend_constants.c:251 #4 0x08106882 in zend_ini_get_constant (result=0xbfffe8d0, name=0xbfffe930) at zend_ini_parser.y:101 #5 0x08107282 in ini_parse () at zend_ini_parser.y:229 #6 0x08106a43 in zend_parse_ini_file (fh=0xb7b0, unbuffered_errors=1 '\001', ini_parser_cb=0x807e8e2 php_browscap_parser_cb, arg=0x817f960) at zend_ini_parser.y:156 #7 0x0807ec87 in zm_startup_browscap (type=1, module_number=1) at /linux/devel/php5/ext/standard/browscap.c:165 #8 0x08077bcb in zm_startup_basic (type=1, module_number=1) at /linux/devel/php5/ext/standard/basic_functions.c:1069 #9 0x0812311a in zend_startup_module (module=0x8175e20) at /linux/devel/php5/Zend/zend_API.c:1126 #10 0x080e116f in php_startup_extensions (ptr=0x817ef28, count=2) at /linux/devel/php5/main/main.c:1222 #11 0x08148df4 in php_startup_internal_extensions () at main/internal_functions_cli.c:52 #12 0x080e166f in php_module_startup (sf=0x817eea0, additional_modules=0x0, num_additional_modules=0) at /linux/devel/php5/main/main.c:1387 #13 0x081479d6 in main (argc=1, argv=0xbb04) at /linux/devel/php5/sapi/cli/php_cli.c:592 #14 0x400bba07 in __libc_start_main () from /lib/i686/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=24530edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24530r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24530r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24530r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24530r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24530r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24530r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24530r=support Expected behavior: http://bugs.php.net/fix.php?id=24530r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24530r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24530r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24530r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24530r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24530r=dst IIS Stability: http://bugs.php.net/fix.php?id=24530r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24530r=gnused
#21685 [NEW]: xmlrpc_decode() causes segfault
From: [EMAIL PROTECTED] Operating system: Redhat Linux 7.3 PHP version: 4CVS-2003-01-16 (stable) PHP Bug Type: XMLRPC-EPI related Bug description: xmlrpc_decode() causes segfault When using the xmlrpc_decode() function, the Apache2 (latest cvs) reports a segfault in the error-log. I've tested it with various xmlrpc-responses like: ?php xmlrpc_decode( ?xml version=\1.0\? methodResponse params param valuestringSouth Dakota/string/value /param /params /methodResponse ); ? Here is my ./configure : './configure' '--prefix=/usr' '--with-config-file-path=/etc/server' '--with-apxs2=/usr/bin/apxs' '--with-pear=/home/httpd/include' '--with-openssl' '--with-zlib' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-dio' '--enable-dbase' '--enable-dx' '--enable-exif' '--enable-ftp' '--enable-mime_magic=/etc/server/mime' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-yp' '--with-xmlrpc' '--with-mnogosearch=/usr' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-imap' '--with-ldap' '--enable-cli=yes' '--with-gettext' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--enable-dbase' '--with-pspell' '--with-pdflib' '--with-iconv' '--with-zlib-dir' '--with-jpeg-dir' '--with-expat-dir=/usr' '--with-readline' '--with-mcrypt=/usr' '--with-unixodbc' '--enable-dba' '--with-db4' '--with-gdbm' '--with-gmp' '--with-curlwrappers' -- Edit bug report at http://bugs.php.net/?id=21685edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21685r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21685r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21685r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21685r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21685r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21685r=support Expected behavior: http://bugs.php.net/fix.php?id=21685r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21685r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21685r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21685r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21685r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21685r=dst IIS Stability: http://bugs.php.net/fix.php?id=21685r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=21685r=gnused
#20280 [NEW]: mktime() returns -3662
From: [EMAIL PROTECTED] Operating system: Linux (Redhat 7.3) PHP version: 4CVS-2002-11-06 PHP Bug Type: Date/time related Bug description: mktime() returns -3662 mktime() returns -3662 for years earlier than 1970. no matter which year (tried with 1967,1956,1945,...). bug or system-limitation? -- Edit bug report at http://bugs.php.net/?id=20280edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20280r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20280r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20280r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20280r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20280r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=20280r=support Expected behavior: http://bugs.php.net/fix.php?id=20280r=notwrong Not enough info:http://bugs.php.net/fix.php?id=20280r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=20280r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20280r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20280r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20280r=dst IIS Stability: http://bugs.php.net/fix.php?id=20280r=isapi