OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005031 [php5_json] regular use minor have not tried 2012-12-17 09:13 2014-09-08 17:17
Reporter johnyc20 View Status public  
Assigned To bwalton
Priority normal Resolution no change required  
Status closed  
Summary 0005031: JSON module fot php5 is not loading
Description Hello,

On a Solaris 10 php5 is not loading the json shared module.
I sow that in the /opt/csw/php53/lib/php.ini config file the extension_dir directive is pointing to the "/opt/csw/php53/lib/php/extensions/no-debug-non-zts-20090626" directory, but iconv.so provided by CSWphp5-iconv package is installed in "/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20090626" .
I tried to make symlinks from /opt/csw/php5 to /opt/csw/php53, but without any result.

Thanks,
Silviu
Additional Information $ ggrep -ri json /opt/csw/php53/lib/php.ini
extension=json.so

$ /opt/csw/php5/bin/phpext -q
session_enabled=true
ctype_enabled=false
bz2_enabled=false
curl_enabled=false
fileinfo_enabled=false
gd2_enabled=false
gettext_enabled=false
gmp_enabled=false
intl_enabled=false
imap_enabled=false
interbase_enabled=false
ldap_enabled=false
mbstring_enabled=false
mysql_enabled=true
mysqli_enabled=true
openssl_enabled=false
pdo_firebird_enabled=false
pdo_mssql_enabled=false
pdo_mysql_enabled=false
pdo_oci_enabled=false
pdo_odbc_enabled=false
pdo_pgsql_enabled=false
pdo_sqlite_enabled=false
pgsql_enabled=false
pspell_enabled=false
shmop_enabled=false
snmp_enabled=false
soap_enabled=false
sockets_enabled=false
sqlite_enabled=false
sqlite3_enabled=false
sybase_ct_enabled=false
tidy_enabled=false
xmlrpc_enabled=false
xsl_enabled=false
zip_enabled=false

$ ldd /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20090626/json.so
        libCstd.so.1 => /usr/lib/libCstd.so.1
        libz.so.1 => /opt/csw/lib/libz.so.1
        libc.so.1 => /lib/libc.so.1
        libCrun.so.1 => /usr/lib/libCrun.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        libm.so.2 => /lib/libm.so.2
        /platform/SUNW,Ultra-250/lib/libc_psr.so.1
"""
[Mon Dec 17 09:40:18 2012] [error] [client X.X.X.X] PHP Fatal error: Call to undefined function json_encode() in /opt/csw/apache2/share/htdocs/moodle21/moodle/lib/outputcomponents.php on line 1658
""""

Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010260)
bwalton (administrator)
2013-01-06 10:29

Hello,

I think this is the same problem as the iconv issue you filed. If you correct the extension directory path in php.ini does the problem go away? Do you know how the setting got to be php53 instead of php5?

Thanks
-Ben


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker