rpms/php-json/devel .cvsignore, 1.2, 1.3 php-json.html, 1.1, 1.2 php-json.spec, 1.3, 1.4 sources, 1.2, 1.3

Ignacio Vazquez-Abrams (ivazquez) fedora-extras-commits at redhat.com
Tue Feb 14 05:03:16 UTC 2006


Author: ivazquez

Update of /cvs/extras/rpms/php-json/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15719/php-json/devel

Modified Files:
	.cvsignore php-json.html php-json.spec sources 
Log Message:
M-M-M-M-MONSTER UPDATE


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-json/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	31 Dec 2005 11:25:32 -0000	1.2
+++ .cvsignore	14 Feb 2006 05:03:16 -0000	1.3
@@ -1 +1 @@
-php-json-ext-1.1.0.tar.bz2
+php-json-ext-1.1.1.tar.bz2


Index: php-json.html
===================================================================
RCS file: /cvs/extras/rpms/php-json/devel/php-json.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- php-json.html	31 Dec 2005 11:25:32 -0000	1.1
+++ php-json.html	14 Feb 2006 05:03:16 -0000	1.2
@@ -19,7 +19,7 @@
 	<td>
 	<a href="/"><img src="/images/omar_kilani.gif" width="155" height="24" alt="omar kilani" /></a><br /><br />
 	<a href="/">home</a> | <a href="/projects/">projects</a><br />
-	<p><a href="/projects/libical/">libical</a> | <a href="/projects/php-js/">php-js</a> | <b>php-json</b> | <a href="/projects/postfix_memcached/">postfix_memcached</a></p>
+	<p><a href="/projects/libical/">libical</a> | <a href="/projects/misc/">misc</a> | <a href="/projects/php-js/">php-js</a> | <b>php-json</b> | <a href="/projects/postfix_memcached/">postfix_memcached</a></p>
 	<br />
 	</td>
 	<td valign="top" rowspan="2">           </td>
@@ -30,6 +30,7 @@
 	<h1>php-json</h1>
         <p><b>php-json</b> is an extremely fast PHP C extension for <a href="http://www.json.org/">JSON</a> (JavaScript Object Notation) serialisation. <b>php-json</b> uses a forked version of <a href="http://oss.metaparadigm.com/json-c/">json-c</a>.</p>
         <h2>Download</h2>
+        <p>Version <a href="/projects/php-json/php-json-ext-1.1.1.tar.bz2">1.1.1</a> (<a href="/projects/php-json/php-json-4.3.2_1.1.1-1.aurore.src.rpm">SRPM</a>, <a href="win32/">Win32</a>) - Released 2006-01-25 - TSRM performance improvements, changed license to version 3.01 of the PHP license, avoid a potential memory leak on invalid JSON input.</p>
         <p>Version <a href="/projects/php-json/php-json-ext-1.1.0.tar.bz2">1.1.0</a> (<a href="/projects/php-json/php-json-4.3.2_1.1.0-1.aurore.src.rpm">SRPM</a>, <b>Win32</b>: <a href="/projects/php-json/php_json-1.1.0_php-4.x.zip">PHP 4.x</a>, <a href="/projects/php-json/php_json-1.1.0_php-5.0.x.zip">PHP 5.0.x</a>, <a href="/projects/php-json/php_json-1.1.0_php-5.1.x.zip">PHP 5.1.x</a>) - Released 2005-12-04 - Port to Win32.</p>
         <p>Version <a href="/projects/php-json/php-json-ext-1.0.8.tar.bz2">1.0.8</a> (<a href="/projects/php-json/php-json-4.3.2_1.0.8-1.aurore.src.rpm">SRPM</a>) - Released 2005-12-01 - Changed license to LGPL, modified build system to allow static compilation into PHP, added strndup check for json-c.</p>
         <p>Version <a href="/projects/php-json/php-json-ext-1.0.7.tar.bz2">1.0.7</a> - Released 2005-09-07 - Fixed issues with negative array keys (Thanks to <b>Marek Lewczuk</b> for the report,) modified json-c to return an error on unquoted object key names instead of going into an infinite loop.</p>
@@ -67,20 +68,27 @@
   </td></tr>
 </table>
         <h2>Documentation</h2>
-        <p>A simple <b>./configure; make; make install</b> should do the trick. Make sure to add an <b>extension=json.so</b> line to your php.ini/php.d. <b>Note:</b> you need to compile php-json with gcc 3.x and up.</p>
+        <p>A simple <b>./configure; make; make install</b> should do the trick. Make sure to add an <b>extension=json.so</b> line to your php.ini/php.d.</p>
         <p>Then, just use <b>json_encode</b> to encode your PHP values into JSON, and <b>json_decode</b> to decode JSON into a PHP value.</p>
         <p>For example:</p>
         <pre>
+$val = array("abc" => 12,
+             "foo" => "bar",
+             "bool0" => false,
+             "bool1" => true,
+             "arr" => array(1, 2, 3, null, 5),
+             "float" => 1.2345
+            );
 $output = json_encode($val);
 echo $output."\n";
         </pre> 
         <p>Would produce:</p>
         <pre>
-{ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.2345 }
+{ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.234500 }
         </pre>
         <p>While:</p>
         <pre>
-$input = '{ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.2345 }';
+$input = '{ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.234500 }';
 $val = json_decode($input);
 echo $val->abc."\n";
         </pre>
@@ -92,7 +100,7 @@
         <p>A PHP object correlates to a JavaScript object (associative array, i.e., key => value pairs), so the above would be referenced in JavaScript like so:</p>
         <pre>
 var obj = ...; /* retrieve JSON and eval() it, returning an object */
-var result = obj["abc"] * obj["float"];
+var result = obj["abc"] * obj["float"]; /* obj.abc would be the same as obj["abc"] */
 alert("result is " + result);
         </pre>
         <p>This should display an alert box with the value of result, i.e., 14.814.</p>


Index: php-json.spec
===================================================================
RCS file: /cvs/extras/rpms/php-json/devel/php-json.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- php-json.spec	18 Jan 2006 07:13:28 -0000	1.3
+++ php-json.spec	14 Feb 2006 05:03:16 -0000	1.4
@@ -2,12 +2,12 @@
 %{!?php_version:%define php_version %(php-config --version 2>/dev/null || echo 4.3.11)}
 
 Name:           php-json
-Version:        1.1.0
-Release:        2%{?dist}
+Version:        1.1.1
+Release:        1%{?dist}
 Summary:        An extremely fast PHP extension for JSON
 
 Group:          Development/Languages
-License:        LGPL
+License:        PHP
 URL:            http://www.aurore.net/projects/php-json/
 Source0:        http://www.aurore.net/projects/php-json/php-json-ext-%{version}.tar.bz2
 Source1:        php-json.html
@@ -63,6 +63,9 @@
 %{php_extdir}/json.so
 
 %changelog
+* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 1.1.1-1
+- Upstream update
+
 * Wed Jan 18 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 1.1.0-2
 - Rebuild for new PHP
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-json/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	31 Dec 2005 11:25:32 -0000	1.2
+++ sources	14 Feb 2006 05:03:16 -0000	1.3
@@ -1 +1 @@
-4a1a41fafabf866784868af59bf30510  php-json-ext-1.1.0.tar.bz2
+d884a5ca7ddb420b5b261941217f6c68  php-json-ext-1.1.1.tar.bz2




More information about the fedora-extras-commits mailing list