[php-maint] Bug#710677: [php5] Call to undefined function json_decode()/json_encode()
Mitch Halmu
mitch at netside.net
Sun Jun 9 03:19:05 UTC 2013
As a follow-up for package php5-json not found for architecture sparc,
I built from source:
=====================================================================
PHP : /usr/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.5.0RC2
ZEND_VERSION: 2.5.0-dev
PHP_OS : Linux - Linux debian-v240 3.8-1-sparc64-smp #1 SMP Debian
3.8.12-1 sparc64
INI actual : /var/tmp/php-json/tmp-php.ini
More .INIs :
CWD : /var/tmp/php-json
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2013-06-09 02:45:40
=====================================================================
....
=====================================================================
TIME END 2013-06-09 02:45:45
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 43
---------------------------------------------------------------------
Number of tests : 49 45
Tests skipped : 4 ( 8.2%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 1 ( 2.0%) ( 2.2%)
Expected fail : 4 ( 8.2%) ( 8.9%)
Tests passed : 40 ( 81.6%) ( 88.9%)
---------------------------------------------------------------------
Time taken : 5 seconds
=====================================================================
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
json_last_error() tests [tests/007.phpt] XFAIL REASON: Different parser,
so different error codes.
json_decode() with large integers [tests/008.phpt] XFAIL REASON: Large
number always treat as integer.
Bug #42090 (json_decode causes segmentation fault) [tests/bug42090.phpt]
XFAIL REASON: New parser is less strict, produce different result, but
don't crash.
JSON (http://www.crockford.com/JSON/JSON_checker/test/fail*.json)
[tests/fail001.phpt] XFAIL REASON: New parser is less strict, produce
different result, but don't crash.
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
[tests/pass001.1.phpt]
=====================================================================
You may have found a problem in PHP.
....
Installing and using extension=json.so in php.ini works for CLI and
apache2. Nevertheless, having a sparc package in the repo like it is
available for other platforms would be nice.
Cheers,
Mitch Halmu
More information about the pkg-php-maint
mailing list