From 1eb05eae6d4e4924fa465d707828812141d3e56e Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 9 Jan 2011 15:02:50 +0100 Subject: [PATCH 01/15] - add apc serializer to the build --- config.w32 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config.w32 b/config.w32 index 66cd88bd..30664231 100644 --- a/config.w32 +++ b/config.w32 @@ -4,7 +4,9 @@ ARG_ENABLE("igbinary", "whether to enable igbinary support", "no"); if (PHP_IGBINARY == "yes") { - EXTENSION("igbinary", "igbinary.c hash_si.c hash_function.c"); - AC_DEFINE('HAVE_IGBINARY', 1, 'Have igbinary support', false); - ADD_EXTENSION_DEP('igbinary', 'session'); + res = CHECK_HEADER_ADD_INCLUDE("apc_serializer.h", "CFLAGS_IGBINARY", "..\\pecl\\apc;ext\\apc"); + + EXTENSION("igbinary", "igbinary.c hash_si.c hash_function.c"); + AC_DEFINE('HAVE_IGBINARY', 1, 'Have igbinary support', false); + ADD_EXTENSION_DEP('igbinary', 'session'); } From 419db98542ccd05b924ad11e2a37b8a77a2db1c4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 9 Jan 2011 15:04:04 +0100 Subject: [PATCH 02/15] - add apc serializer to the build --- config.w32 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.w32 b/config.w32 index 30664231..52d20f5b 100644 --- a/config.w32 +++ b/config.w32 @@ -5,7 +5,9 @@ ARG_ENABLE("igbinary", "whether to enable igbinary support", "no"); if (PHP_IGBINARY == "yes") { res = CHECK_HEADER_ADD_INCLUDE("apc_serializer.h", "CFLAGS_IGBINARY", "..\\pecl\\apc;ext\\apc"); - + if (res) { + AC_DEFINE('HAVE_APC_SUPPORT', 1, 'Whether to enable apc support') + } EXTENSION("igbinary", "igbinary.c hash_si.c hash_function.c"); AC_DEFINE('HAVE_IGBINARY', 1, 'Have igbinary support', false); ADD_EXTENSION_DEP('igbinary', 'session'); From 3d21780a7e869c44a4113c4a9b14fb0049514ade Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 9 Jan 2011 19:03:56 +0100 Subject: [PATCH 03/15] - fix ts build --- igbinary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/igbinary.c b/igbinary.c index 77c4b14b..17fb1dc3 100644 --- a/igbinary.c +++ b/igbinary.c @@ -517,7 +517,7 @@ PS_SERIALIZER_DECODE_FUNC(igbinary) { #ifdef HAVE_APC_SUPPORT /* {{{ apc_serialize function */ static int APC_SERIALIZER_NAME(igbinary) ( APC_SERIALIZER_ARGS ) { - if (igbinary_serialize(buf, buf_len, value) == 0) { + if (igbinary_serialize(buf, buf_len, value TSRMLS_CC) == 0) { /* flipped semantics */ return 1; } @@ -527,7 +527,7 @@ static int APC_SERIALIZER_NAME(igbinary) ( APC_SERIALIZER_ARGS ) { /* {{{ apc_unserialize function */ static int APC_UNSERIALIZER_NAME(igbinary) ( APC_UNSERIALIZER_ARGS ) { - if (igbinary_unserialize(buf, buf_len, value) == 0) { + if (igbinary_unserialize(buf, buf_len, value TSRMLS_CC) == 0) { /* flipped semantics */ return 1; } From 58c5ec1c1f8bb9912d7abb21e9e2a87c0ee23e08 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 14 Mar 2011 18:41:51 +0100 Subject: [PATCH 04/15] - update package.xml --- igbinary.c | 1 + package.xml | 149 +++++++++++++++++++++++++++++----------------------- 2 files changed, 83 insertions(+), 67 deletions(-) diff --git a/igbinary.c b/igbinary.c index 17fb1dc3..36125644 100644 --- a/igbinary.c +++ b/igbinary.c @@ -268,6 +268,7 @@ PHP_MINIT_FUNCTION(igbinary) { #endif #if HAVE_APC_SUPPORT + apc_register_serializer("igbinary", APC_SERIALIZER_NAME(igbinary), APC_UNSERIALIZER_NAME(igbinary), diff --git a/package.xml b/package.xml index 827d0036..56320e16 100644 --- a/package.xml +++ b/package.xml @@ -1,75 +1,90 @@ - -igbinary - pecl.php.net - igbinary extension - - Igbinary is a drop in replacement for the standard php serializer. Instead of + + igbinary + pecl.php.net + igbinary extension + Igbinary is a drop in replacement for the standard php serializer. Instead of time and space consuming textual representation, igbinary stores php data structures in a compact binary form. Savings are significant when using - memcached or similar memory based storages for serialized data. - - - Oleg Grenrus - - oleg.grenrus@dynamoid.com - yes - - 2009-09-02 - + memcached or similar memory based storages for serialized data. + + Pierre Joye + pajoye + pierre@php.net + yes + + + Teddy Grenman + tricky + teddy.pecl@luuseri.com + yes + + 2011-03-14 + + + 1.1.1 + 1.1.1 + + + stable + stable + + PHP like license + +- Initial PECL release + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.2.0 + + + 1.4.0b1 + + + + igbinary + + + + 2009-09-02 + 1.0.2 1.0.2 - - + + stable stable - - PHP like license - - - Use Z_ADDREF_PP or Z_ADDREF et al. when increasing refcount. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.2.0 - - - 1.4.0b1 - - - - igbinary - - - + + PHP like license + +- Use Z_ADDREF_PP or Z_ADDREF et al. when increasing refcount. + + + From efa827af3217ab43ce884174dcfa99310615f7ae Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 14 Mar 2011 18:42:36 +0100 Subject: [PATCH 05/15] - update package.xml --- package.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.xml b/package.xml index 56320e16..392fd5f2 100644 --- a/package.xml +++ b/package.xml @@ -29,7 +29,7 @@ stable stable - PHP like license + New BSD - Initial PECL release From 63f39d94720007c00094913bf9dc129d739c12d4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 26 Mar 2011 11:21:38 +0100 Subject: [PATCH 06/15] - fix pecl bug #22614 --- igbinary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igbinary.c b/igbinary.c index 36125644..d2431080 100644 --- a/igbinary.c +++ b/igbinary.c @@ -374,7 +374,7 @@ PHP_FUNCTION(igbinary_unserialize) { } if (string_len <= 0) { - RETURN_NULL(); + RETURN_FALSE; } if (igbinary_unserialize((uint8_t *) string, string_len, &return_value TSRMLS_CC)) { From 428a6d37fd8d9b9abf505b5fd9673bc0b95fc156 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 1 Apr 2015 04:56:13 +0200 Subject: [PATCH 07/15] add composer.json --- composer.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..330eddd5 --- /dev/null +++ b/composer.json @@ -0,0 +1,16 @@ +{ + "name": "igbinary", + "version": "1.1.1", + "type": "extension", + "stability": "stable", + "license": [ + "New BSD" + ], + "authors": [ + { + "name": "Teddy Grenman", + "email": "teddy.pecl@luuseri.com" + } + ], + "description": "igbinary extension" +} \ No newline at end of file From 16c4f43d7e26b7b550a477ed76ab7ccfb7767a08 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 13 Apr 2015 09:14:36 +0200 Subject: [PATCH 08/15] use std PHP_*_VERSION --- igbinary.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/igbinary.h b/igbinary.h index 57060cc8..cf7b6faf 100644 --- a/igbinary.h +++ b/igbinary.h @@ -16,7 +16,8 @@ #endif #include "php.h" -#define IGBINARY_VERSION "1.0.2" +#define PHP_IGBINARY_VERSION "1.0.2" +#define IGBINARY_VERSION PHP_IGBINARY_VERSION /** Serialize zval. * Return buffer is allocated by this function with emalloc. From 59fd49a508c013eb5707cb59400ccac5ce354178 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 17 Apr 2015 04:37:20 +0200 Subject: [PATCH 09/15] fix name --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 330eddd5..12b15178 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "igbinary", - "version": "1.1.1", + "name": "pierrejoye/igbinary", + "version": "1.0.2", "type": "extension", "stability": "stable", "license": [ @@ -13,4 +13,4 @@ } ], "description": "igbinary extension" -} \ No newline at end of file +} From 05a37f059c159f9d24927cafbe0802b8e0bcca6a Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 17 Apr 2015 05:43:42 +0200 Subject: [PATCH 10/15] add homepage --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 12b15178..cd598b15 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,7 @@ "license": [ "New BSD" ], + "homepage": "https://github.com/pierrejoye/igbinary", "authors": [ { "name": "Teddy Grenman", From f10b47438fe349436a981698aea9aa4f2c657387 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 20 Apr 2015 10:06:48 +0200 Subject: [PATCH 11/15] test dev --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cd598b15..5e65dc90 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "pierrejoye/igbinary", - "version": "1.0.2", + "version": "1.2.2-dev", "type": "extension", "stability": "stable", "license": [ From ba223eb950881daaff06af376af71accd6a36e19 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 20 Apr 2015 10:07:35 +0200 Subject: [PATCH 12/15] test dev --- igbinary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igbinary.h b/igbinary.h index cf7b6faf..6ce709bf 100644 --- a/igbinary.h +++ b/igbinary.h @@ -16,7 +16,7 @@ #endif #include "php.h" -#define PHP_IGBINARY_VERSION "1.0.2" +#define PHP_IGBINARY_VERSION "1.2.2-dev" #define IGBINARY_VERSION PHP_IGBINARY_VERSION /** Serialize zval. From f1ea1b49da561ff8f5409e8fe7ccabcb209fda4b Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 30 Apr 2015 02:49:40 +0200 Subject: [PATCH 13/15] add keywords --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 5e65dc90..47c9df83 100644 --- a/composer.json +++ b/composer.json @@ -14,4 +14,5 @@ } ], "description": "igbinary extension" + "keywords": {"serializer", "compression", "binary"} } From c3e4d2d95e576081dc22ce747d13349573202c1c Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 30 Apr 2015 06:57:14 +0200 Subject: [PATCH 14/15] add keywords --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 47c9df83..b6a8de14 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,6 @@ "email": "teddy.pecl@luuseri.com" } ], - "description": "igbinary extension" - "keywords": {"serializer", "compression", "binary"} + "description": "igbinary extension", + "keywords": ["serializer", "compression", "binary"] } From 498fb25359c801e785bb899b18b4323ccbf425c5 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 30 Apr 2015 07:14:42 +0200 Subject: [PATCH 15/15] update --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b6a8de14..29c127d1 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,8 @@ "name": "pierrejoye/igbinary", "version": "1.2.2-dev", "type": "extension", + "description": "igbinary extension", + "keywords": ["serializer", "compression"], "stability": "stable", "license": [ "New BSD" @@ -12,7 +14,5 @@ "name": "Teddy Grenman", "email": "teddy.pecl@luuseri.com" } - ], - "description": "igbinary extension", - "keywords": ["serializer", "compression", "binary"] + ] }