Modify

Opened 7 years ago

Closed 6 years ago

#9839 closed defect (fixed)

PHP SimpleXML

Reported by: anonymous Owned by: mhei
Priority: normal Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03.1 RC5
Keywords: simplexml php Cc:

Description

Package php5-mod-simplexml is _not_ available via opkg. And if you build-your-own, it cannot be selected using "make menuconfig".

Changeset 26341 added configuration option CONFIG_PACKAGE_php5-mod-simplexml to the packages/lang/php5/Makefile. This was a good start.

Please make this generally available via opkg. Note simplexml is not part of php5-mod-xml.

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous

Update: After much manual configuration, recompilation and experimentation, I have discovered that you can build-your-own via "make menuconfig". If (and only if) you configure option "PHP5 LIBXML Support", then php5-mod-simplexml appears as an option.

However, compiling with this option for Broadcom 947xx, No WiFi creates an invalid simplexml.so. On startup, php-fcgi reports:

PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'simplexml.so' in Unknown on line 0

Function phpinfo() reports "--enable-simplexml=shared" in the configure command; "/etc/php5/simplexml.ini" loaded in additional ini files parsed; but there is no "SimpleXML" section and calls to simplexml functions fail with an error.

Note that phpinfo() does indicate ctype.ini, hash.ini, pdo.ini, pdo_sqlite.ini, session.ini, and sqlite3.ini are parsed; reports no errors for the associated so files (ctype.so, hash.so, pdo.so, pso_sqlite.so, session.so, sqlite3.so); all the related sections appear in the report; and functions can be called from all modules without error. From this I conclude there is a failure with only simplexml.so, not php modules in general.

As a further test, php5 was manually reconfigured with "--enable-simplexml" but NO shared library option, and manually compiled (within the source tree). The resulting executable runs correctly! Phpinfo() reports "--enable-simplexml" in the configure list; the SimpleXML section appears in the report; and simplexml functions execute correctly. The code is functional. Note: the lib dependency on libxml2 is satisfied; it is specified in the .config, and verified as installed on the system for both shared and non-shared tests. The module format simply appears to be wrong. A quick check with the "file" command shows no difference between functioning modules and the simplexml module.

The request for php5-mod-simplexml as an opkg module is unchanged (please).

Craig Oakes
cpo9893 at craigoakes.com (address will be discarded when spam becomes unmanageable)
Ubuntu 10.4 i686 host
10.03.1rc6 (r27765) from svn
SimpleShare, BCM4780 chip

comment:2 Changed 7 years ago by anonymous

May this simplexml be included in the php5 extensions trunk?

comment:3 Changed 6 years ago by mhei

  • Owner changed from developers to mhei
  • Status changed from new to assigned

comment:4 Changed 6 years ago by mhei

  • Resolution set to fixed
  • Status changed from assigned to closed

Should be fixed with r29024, but pre-compiled packages are still missing for download. So please be patient until new RC is uploaded.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.