Christoph Baudson schrieb:
Peter Hopfgartner schrieb:
Christoph Baudson wrote:
A new problem has been encountered in Mapbender. Currently we are
using the JSON library Services_JSON from Pear for PHP. It seems to
be unreliable with huge data sets. Replacing the erroneous code with
the native PHP JSON functions then was successful. However, these
PHP native JSON functions are only available in PHP > 5.2.
What do we do? Require PHP 5.2? Or look for another JSON library?
This matter is urgent and should be resolved before the release of
Mapbender 2.5
Christoph
As long as the extension can be installed from PECL
(http://pecl.php.net/package/json), this could be an option.
Requiring PHP >= 5.2 would be a problem for many people using the
packaged PHP for their linux distro. As an example, the current
CentOS/Red Hat 5.1 has PHP 5.1.6
Nice, we can offer it those who have trouble with JSON and don't have
PHP5.2.
I'm now writing a wrapper class that will determine which JSON
function to use. By this I hope to determine the best option for the
current PHP setting. This favors the native/PECL solution and uses
Pear otherwise.
Check out the latest version from branches/2.5 to test this. I don't
have a platform with PHP < 5.2, so I didn't test that yet. But it now
uses the native functions on my machine.
I'm grateful for any feedback, especially on the class_json.php
Have a nice weekend,
Christoph
Thanks very much for your input, Michael and Peter,
Christoph
.
Regards,
Peter
R3 GIS
http://www.r3-gis.com
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
--
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
[EMAIL PROTECTED]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Arnulf Christl, Olaf Knopp, Peter Stamm
_______________________________________
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev