#32444 [Opn->Bgs]: simplexml_import_dom() isn't available
| From: | sniper@php.net | Date: | Thu, 24 Mar 2005 17:36:10 +0000 |
| Subject: | #32444 [Opn->Bgs]: simplexml_import_dom() isn't available | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76943@lists.php.net to get a copy of this message | ||
ID: 32444
Updated by: sniper@php.net
Reported By: gpt at tirloni dot org
-Status: Open
+Status: Bogus
Bug Type: SimpleXML related
Operating System: FreeBSD 5.3-STABLE
PHP Version: 5.0.3
New Comment:
But it's not enough to have DOM extension installed as shared.
You need to compile the extensions as static.
Previous Comments:
------------------------------------------------------------------------
[2005-03-24 18:18:41] gpt at tirloni dot org
Description:
------------
The bug report #32438 was wrongly set as bogus IMHO. I'm experiencing
the same problem.
Here is some information that may help. This is a default install using
the FreeBSD 5.3-STABLE ports.
Please understand that DOM was installed. Do I need to do anything in
order to make SimpleXML understand DOM is enabled ?
I installed lang/ph5 and then lang/php5-extensions, which is a
meta-port to select other extensions.
Installed packages:
php5-5.0.3_2
php5-bz2-5.0.3_2
php5-ctype-5.0.3_2
php5-dom-5.0.3_2
php5-extensions-1.0
php5-gd-5.0.3_2
php5-iconv-5.0.3_2
php5-interbase-5.0.3_2
php5-mcrypt-5.0.3_2
php5-mhash-5.0.3_2
php5-mysql-5.0.3_2
php5-mysqli-5.0.3_2
php5-pcre-5.0.3_2
php5-pear-5.0.3_2
php5-pgsql-5.0.3_2
php5-posix-5.0.3_2
php5-session-5.0.3_2
php5-shmop-5.0.3_2
php5-simplexml-5.0.3_2
php5-soap-5.0.3_2
php5-sockets-5.0.3_2
php5-sqlite-5.0.3_2
php5-tokenizer-5.0.3_2
php5-xml-5.0.3_2
php5-xmlrpc-5.0.3_2
php5-xsl-5.0.3_2
php5-zlib-5.0.3_2
# php -v
PHP 5.0.3 (cli) (built: Mar 23 2005 17:31:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
# php -m
[PHP Modules]
bz2
ctype
dom
gd
iconv
interbase
libxml
mcrypt
mhash
mysql
mysqli
pcre
pdf
pgsql
posix
session
shmop
SimpleXML
soap
sockets
SPL
SQLite
standard
tokenizer
xml
xmlrpc
xsl
zlib
[Zend Modules]
# ls -1 /usr/local/lib/php/20041030
XML_CSSML
bz2.so
ctype.so
dom.so
gd.so
iconv.so
interbase.so
mcrypt.so
mhash.so
mysql.so
mysqli.so
pcre.so
pdf.so
pgsql.so
posix.so
session.so
shmop.so
simplexml.so
soap.so
sockets.so
sqlite.so
tokenizer.so
xml.so
xmlrpc.so
xsl.so
zlib.so
# objdump -t simplexml.so
simplexml.so: file format elf32-i386-freebsd
SYMBOL TABLE:
00000094 l d .hash 00000000
000004b4 l d .dynsym 00000000
00000ce4 l d .dynstr 00000000
000015e0 l d .rel.dyn 00000000
00001828 l d .rel.plt 00000000
00001a98 l d .init 00000000
00001aa4 l d .plt 00000000
00001f94 l d .text 00000000
000049fc l d .fini 00000000
00004a04 l d .rodata 00000000
00005000 l d .data 00000000
00005214 l d .eh_frame 00000000
00005218 l d .dynamic 00000000
000052e8 l d .ctors 00000000
000052f0 l d .dtors 00000000
000052f8 l d .jcr 00000000
000052fc l d .got 00000000
0000547c l d .bss 00000000
00000000 l d .comment 00000000
00000000 l d *ABS* 00000000
00000000 l d *ABS* 00000000
00000000 l d *ABS* 00000000
00000000 l df *ABS* 00000000 /usr/src/lib/csu/i386-elf/crti.S
00000000 l df *ABS* 00000000 <command line>
00000000 l df *ABS* 00000000 <built-in>
00000000 l df *ABS* 00000000 /usr/src/lib/csu/i386-elf/crti.S
00000000 l df *ABS* 00000000 crtstuff.c
000052e8 l O .ctors 00000000 __CTOR_LIST__
000052f0 l O .dtors 00000000 __DTOR_LIST__
00005214 l O .eh_frame 00000000 __EH_FRAME_BEGIN__
000052f8 l O .jcr 00000000 __JCR_LIST__
00005004 l O .data 00000000 p.0
0000547c l O .bss 00000001 completed.1
00001f94 l F .text 00000000 __do_global_dtors_aux
00005480 l O .bss 00000018 object.2
00002014 l F .text 00000000 frame_dummy
00000000 l df *ABS* 00000000 crtstuff.c
000052ec l O .ctors 00000000 __CTOR_END__
000052f4 l O .dtors 00000000 __DTOR_END__
00005214 l O .eh_frame 00000000 __FRAME_END__
000052f8 l O .jcr 00000000 __JCR_END__
000049cc l F .text 00000000 __do_global_ctors_aux
00000000 l df *ABS* 00000000 /usr/src/lib/csu/i386-elf/crtn.S
00000000 l df *ABS* 00000000 <command line>
00000000 l df *ABS* 00000000 <built-in>
00000000 l df *ABS* 00000000 /usr/src/lib/csu/i386-elf/crtn.S
00000000 l df *ABS* 00000000 simplexml.c
00002094 l F .text 0000008e _node_as_zval
00003dbc l F .text 00000068 php_sxe_object_new
00003e24 l F .text 0000005e php_sxe_register_object
00002124 l F .text 00000083 php_sxe_get_first_node
000021a8 l F .text 000000e6 sxe_get_element_by_offset
00002290 l F .text 00000347 sxe_prop_dim_read
000025d8 l F .text 00000022 sxe_property_read
000025fc l F .text 00000019 sxe_dimension_read
00002618 l F .text 000000a9 change_node_zval
000026c4 l F .text 00000414 sxe_prop_dim_write
00002ad8 l F .text 0000001a sxe_property_write
00002af4 l F .text 0000001a sxe_dimension_write
00002b10 l F .text 00000213 sxe_prop_dim_exists
00002d24 l F .text 0000001a sxe_property_exists
00002d40 l F .text 0000001a sxe_dimension_exists
00002d5c l F .text 000001c4 sxe_prop_dim_delete
00002f20 l F .text 00000017 sxe_property_delete
00002f38 l F .text 00000017 sxe_dimension_delete
00002f50 l F .text 00000106 _get_base_node_value
00003058 l F .text 000002d8 sxe_properties_get
00003330 l F .text 00000075 sxe_objects_compare
000039b0 l F .text 000000cc cast_object
00003a7c l F .text 0000011e sxe_object_cast
00003b9c l F .text 00000064 sxe_get_value
00005020 l O .data 0000005c sxe_object_handlers
00005080 l O .data 0000005c sxe_ze1_object_handlers
00003c00 l F .text 0000003d sxe_object_ze1_clone
00003c40 l F .text 00000083 sxe_object_clone
00003cc4 l F .text 00000077 sxe_object_dtor
00003d3c l F .text 0000007d sxe_object_free_storage
000043f0 l F .text 00000038 php_sxe_iterator_dtor
00004428 l F .text 00000011 php_sxe_iterator_valid
0000443c l F .text 00000013 php_sxe_iterator_current_data
00004450 l F .text 0000006d php_sxe_iterator_current_key
000046dc l F .text 00000023 php_sxe_iterator_move_forward
00004700 l F .text 00000023 php_sxe_iterator_rewind
00005180 l O .data 00000078 sxe_functions
00005000 l O .data 00000000 .hidden __dso_handle
00000000 *UND* 00000000 zend_exception_get_default
00000000 *UND* 00000000 _zval_ptr_dtor
000047a0 g F .text 000001a4 zm_startup_simplexml
00000000 *UND* 00000000 zm_startup_spl_sxe
00000000 *UND* 00000000
_zend_hash_index_update_or_next_insert
00000000 F *UND* 00000051 xmlXPathFreeContext
00000000 F *UND* 000000f8 xmlNodeSetContentLen
00000000 *UND* 00000000 zend_hash_quick_find
00005218 g O *ABS* 00000000 _DYNAMIC
00000000 *UND* 00000000 php_libxml_increment_doc_ref
00003fa8 g F .text 00000110 zif_simplexml_load_string
00000000 *UND* 00000000 zend_hash_func
000035d4 g F .text 00000294 zif_simplexml_element_asXML
00000000 F *UND* 00000168 xmlXPathEval
00000000 *UND* 00000000 convert_to_boolean
00000000 *UND* 00000000 convert_to_long
00000000 F *UND* 000000d8 xmlAllocOutputBuffer
00000000 w *UND* 00000000 __cxa_finalize
00000000 F *UND* 00000018 xmlDocCopyNode
00002078 g F .text 00000019 sxe_get_element_class_entry
00000000 F *UND* 00000042 xmlOutputBufferCreateFilename
00000000 F *UND* 00000168 xmlGetNsList
00000000 F *UND* 0000002a xmlDocDumpMemory
00003e9c g F .text 0000010c zif_simplexml_load_file
00000000 F *UND* 00000027 xmlDocGetRootElement
00001a98 g F .init 00000000 _init
00000000 *UND* 00000000 zend_ce_traversable
00000000 F *UND* 00000043 xmlStrdup
00000000 *UND* 00000000 zend_get_std_object_handlers
00000000 F *UND* 00000044 xmlStrcmp
00005498 g O .bss 00000004 sxe_class_entry
00000000 *UND* 00000000 _zend_hash_quick_add_or_update
00000000 *UND* 00000000 _array_init
00000000 F *UND* 00000027 xmlStrlen
00004788 g F .text 00000017 get_module
000044c0 g F .text 0000021c php_sxe_move_forward_iterator
00000000 *UND* 00000000 zend_throw_exception
000051f8 g O .data 0000001c php_sxe_iterator_funcs
00000000 *UND* 00000000 zend_hash_clean
00000000 w *UND* 00000000 __deregister_frame_info
000040b8 g F .text 000000ce zif_simplexml_element___construct
00000000 F *UND* 00000027 xmlParseMemory
00000000 *UND* 00000000 zend_objects_store_put
00003868 g F .text 000000a1 zif_simplexml_element_children
00000000 *UND* 00000000 php_info_print_table_start
00000000 *UND* 00000000 _estrndup
00000000 F *UND* 00000024 xmlParseFile
00000000 *UND* 00000000 zend_objects_store_clone_obj
00000000 *UND* 00000000 zend_objects_store_del_ref
00000000 F *UND* 0000018a xmlNewProp
00000000 *UND* 00000000 _efree
00000000 *UND* 00000000 php_error_docref0
000043a8 g F .text 00000047 php_sxe_get_iterator
00000000 *UND* 00000000 php_info_print_table_row
00000000 F *UND* 00000073 xmlStrndup
00000000 *UND* 00000000 strdup
00000000 F *UND* 0000009d xmlUnlinkNode
00000000 F *UND* 00000172 xmlNodeListGetString
00003e84 g F .text 00000018 sxe_object_new
0000547c g *ABS* 00000000 __bss_start
00000000 *UND* 00000000 zend_hash_destroy
00004968 g F .text 00000064 zm_info_simplexml
00000000 *UND* 00000000 zend_get_class_entry
00004188 g F .text 00000220 php_sxe_reset_iterator
00000000 F *UND* 00000111 xmlOutputBufferFlush
00000000 *UND* 00000000 _emalloc
00000000 *UND* 00000000 php_libxml_increment_node_ptr
0000390c g F .text 000000a1 zif_simplexml_element_attributes
00000000 *UND* 00000000 php_libxml_node_decrement_resource
000049fc g F .fini 00000000 _fini
00000000 *UND* 00000000 _zval_dtor
00004724 g F .text 00000061 simplexml_export_node
00000000 *UND* 00000000 php_trim
00000000 F *UND* 00000151 xmlNodeDumpOutput
00000000 F *UND* 000000d1 xmlXPathNewContext
00000000 *UND* 00000000 php_libxml_node_free_resource
00000000 *UND* 00000000 php_info_print_table_end
00005120 g O .data 00000048 simplexml_module_entry
000050e0 g O .data 0000003c simplexml_functions
00000000 F *UND* 000000cf xmlOutputBufferClose
00000000 *UND* 00000000 php_info_print_table_header
00000000 *UND* 00000000 zend_error
00000000 *UND* 00000000 php_libxml_register_export
00000000 *UND* 00000000 convert_to_double
0000547c g *ABS* 00000000 _edata
00000000 *UND* 00000000 zend_objects_store_add_ref
000052fc g O *ABS* 00000000 _GLOBAL_OFFSET_TABLE_
0000549c g *ABS* 00000000 _end
000033a8 g F .text 00000229 zif_simplexml_element_xpath
00000000 F *UND* 00000027 xmlSaveFile
00000000 *UND* 00000000 _zend_hash_init
00000000 *UND* 00000000 php_set_error_handling
00000000 O *UND* 00000004 xmlFree
00000000 F *UND* 000000a7 xmlXPathFreeObject
00000000 *UND* 00000000 add_next_index_zval
00000000 *UND* 00000000 _zval_copy_ctor
00000000 *UND* 00000000 executor_globals
00000000 *UND* 00000000 zval_used_for_init
00000000 w *UND* 00000000 _Jv_RegisterClasses
00000000 *UND* 00000000 zend_get_module_started
00000000 *UND* 00000000 _ecalloc
00000000 *UND* 00000000 zend_object_store_get_object
00000000 *UND* 00000000 zval_add_ref
00000000 *UND* 00000000 zend_lookup_class
00000000 w *UND* 00000000 __register_frame_info
00000000 F *UND* 00000060 xmlIsBlankNode
00000000 *UND* 00000000 zend_class_implements
00000000 *UND* 00000000 _convert_to_string
00000000 *UND* 00000000 zend_parse_parameters
00004944 g F .text 00000022 zm_shutdown_simplexml
00000000 *UND* 00000000 zend_register_internal_class
Reproduce code:
---------------
http://php.bs2.com.br/sxml.php
Expected result:
----------------
simplexml_import_dom should be available.
Actual result:
--------------
simplexml_import_dom isn't available.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32444&edit=1