Projects
home:rottame:vhosts-ng:php8-extensions
php8-igbinary
Log In
Username
Password
Sorry, you are not authorized to perform this action.
×
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
php8-igbinary.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon May 19 08:32:05 UTC 2025 - Angelo Grossini <angelo@intercom.it> + +- update to 3.2.16 + +------------------------------------------------------------------- Fri May 31 14:32:40 UTC 2024 - Angelo Grossini <angelo@intercom.it> - update to 3.2.15
View file
php8-igbinary.spec
Changed
@@ -19,7 +19,7 @@ %define pkg_name igbinary # Name: php8-%{pkg_name} -Version: 3.2.15 +Version: 3.2.16 Release: 1 Summary: Replacement for the Standard PHP Serializer # need to ask authors to clarify. There's 'New BSD' in package description,
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/src/php7/igbinary.h
Deleted
@@ -1,95 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | See COPYING file for further copyright information | - +----------------------------------------------------------------------+ - | Author: Oleg Grenrus <oleg.grenrus@dynamoid.com> | - | See CREDITS for contributors | - +----------------------------------------------------------------------+ -*/ - -#ifndef IGBINARY_H -#define IGBINARY_H -#include <stdint.h> - -/* Forward declarations. */ -struct zval; - -/* Constants and constant macros */ -/** Binary protocol version of igbinary. */ -#define IGBINARY_FORMAT_VERSION 0x00000002 - -#define PHP_IGBINARY_VERSION "3.2.15" - -/* Macros */ - -#ifdef PHP_WIN32 -# if defined(IGBINARY_EXPORTS) || (!defined(COMPILE_DL_IGBINARY)) -# define IGBINARY_API __declspec(dllexport) -# elif defined(COMPILE_DL_IGBINARY) -# define IGBINARY_API __declspec(dllimport) -# else -# define IGBINARY_API /* nothing special */ -# endif -#elif defined(__GNUC__) && __GNUC__ >= 4 -# define IGBINARY_API __attribute__ ((visibility("default"))) -#else -# define IGBINARY_API /* nothing special */ -#endif - -/** Struct that contains pointers to memory allocation and deallocation functions. - * @see igbinary_serialize_data - */ -struct igbinary_memory_manager { - void *(*alloc)(size_t size, void *context); - void *(*realloc)(void *ptr, size_t new_size, void *context); - void (*free)(void *ptr, void *context); - void *context; -}; - -/** Serialize zval. - * Return buffer is allocated by this function with emalloc. - * @paramout ret Return buffer - * @paramout ret_len Size of return buffer - * @paramin z Variable to be serialized - * @return 0 on success, 1 elsewhere. - */ -IGBINARY_API int igbinary_serialize(uint8_t **ret, size_t *ret_len, zval *z); - -/** Serialize zval. - * Return buffer is allocated by this function with emalloc. - * @paramout ret Return buffer - * @paramout ret_len Size of return buffer - * @paramin z Variable to be serialized - * @paramin memory_manager Pointer to the structure that contains memory allocation functions. - * @return 0 on success, 1 elsewhere. - */ -IGBINARY_API int igbinary_serialize_ex(uint8_t **ret, size_t *ret_len, zval *z, struct igbinary_memory_manager *memory_manager); - -/** Unserialize to zval. - * @paramin buf Buffer with serialized data. - * @paramin buf_len Buffer length. - * @paramout z Unserialized zval - * @return 0 on success, 1 elsewhere. - */ -IGBINARY_API int igbinary_unserialize(const uint8_t *buf, size_t buf_len, zval *z); - -static zend_always_inline int _igbinary_has_valid_header(const uint8_t *buf, size_t buf_len) { - if (buf_len < 5) { - /* Must have 4 header bytes and at least one byte of data */ - return 0; - } - /* Unserialize 32bit value the same way on big-endian and little-endian architectures. - * This compiles to a load+optional bswap when compiler optimizations are enabled. */ - const uint32_t ret = - ((uint32_t)(buf0) << 24) | - ((uint32_t)(buf1) << 16) | - ((uint32_t)(buf2) << 8) | - ((uint32_t)(buf3)); - return ret == 1 || ret == 2; -} -/** This is defined as a macro and a static C function - * to allow callers to use the macro from newer igbinary versions even with older igbinary installations. */ -#define igbinary_has_valid_header(buf, buf_len) _igbinary_has_valid_header((buf), (buf_len)) - - -#endif /* IGBINARY_H */
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/__serialize_020.phpt
Deleted
@@ -1,643 +0,0 @@ ---TEST-- -issue when serializing/deserializing nested objects with __serialize ---SKIPIF-- -<?php if (PHP_VERSION_ID < 70100) { echo "skip uses php 7.1 syntax\n"; } ?> ---FILE-- -<?php -// Based on bug report seen in a Symfony codebase - https://github.com/igbinary/igbinary/issues/287 -// NOTE: This test would also pass in older php versions, where igbinary doesn't call __serialize, -// just because we're returning the same data we fetch. -// (However, the serialized data generated before/after 7.4 would be incompatible if saved to memcache, etc.) -class Event -{ -} - -class MessageEvents -{ - private $events = ; - private $transports = ; - - public function add(MessageEvent $event): void - { - $this->events = $event; - $this->transports$event->getTransport() = true; - } - - public function getEvents(string $name = null): array - { - return $this->events; - } -} - -final class MessageEvent extends Event -{ - private $propagationStopped = false; - private $message; - private $envelope; - private $transport; - private $queued; - - public function __construct(RawMessage $message, Envelope $envelope, string $transport, bool $queued = false) - { - $this->message = $message; - $this->envelope = $envelope; - $this->transport = $transport; - $this->queued = $queued; - } - - public function getTransport(): string - { - return $this->transport; - } - - public function getMessage(): RawMessage - { - return $this->message; - } -} - -class Envelope -{ - protected $sender; - protected $recipients = ; - protected $senderSet = false; - protected $recipientsSet = false; - protected $message; - - public function __construct(Address $sender, array $recipients) - { - $this->setSender($sender); - $this->setRecipients($recipients); - } - - public static function create(RawMessage $message): self - { - return new DelayedEnvelope($message); - } - - public function setSender(Address $sender): void - { - $this->sender = $sender; - } - - public function setRecipients(array $recipients): void - { - $this->recipients = ; - foreach ($recipients as $recipient) { - $this->recipients = new Address($recipient->getAddress()); - } - } - - public function getRecipients(): array - { - return $this->recipients; - } -} - -final class DelayedEnvelope extends Envelope -{ - - public function __construct(Message $message) - { - $this->message = $message; - } - - public function setSender(Address $sender): void - { - parent::setSender($sender); - - $this->senderSet = true; - } - - public function setRecipients(array $recipients): void - { - parent::setRecipients($recipients); - - $this->recipientsSet = parent::getRecipients(); - } -} - -final class Address -{ - private $address; - private $name; - - public function __construct(string $address, string $name = '') - { - $this->address = trim($address); - $this->name = trim(str_replace("\n", "\r", '', $name)); - } - - /** - * @param Address|string $address - */ - public static function create($address): self - { - if ($address instanceof self) { - return $address; - } - if (\is_string($address)) { - if (false === strpos($address, '<')) { - return new self($address); - } - - return new self($matches'addrSpec', trim($matches'displayName', ' \'"')); - } - - throw new InvalidArgumentException(sprintf('An address can be an instance of Address or a string ("%s" given).', get_debug_type($address))); - } - - public static function createArray(array $addresses): array - { - $addrs = ; - foreach ($addresses as $address) { - $addrs = self::create($address); - } - - return $addrs; - } -} - -abstract class AbstractHeader -{ - private static $encoder; - - private $name; - private $lineLength = 76; - private $lang; - private $charset = 'utf-8'; - protected $addresses = ; - - public function __construct(string $name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - -} - -final class Headers -{ - private $headers = ; - private $lineLength = 76; - - public function __construct(...$headers) - { - foreach ($headers as $header) { - $this->add($header); - } - } - - public function __clone() - { - foreach ($this->headers as $name => $collection) { - foreach ($collection as $i => $header) { - $this->headers$name$i = clone $header;
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_015.phpt
Deleted
@@ -1,77 +0,0 @@ ---TEST-- -Check for serialization handler ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} - ---FILE-- -<?php - -$output = ''; - -function open($path, $name) { - return true; -} - -function close() { - return true; -} - -function read($id) { - global $output; - return pack('H*', '0000000214011103666f6f0601'); -} - -function write($id, $data) { - global $output; - $output .= substr(bin2hex($data), 8). "\n"; - return true; -} - -function destroy($id) { - return true; -} - -function gc($time) { - return true; -} - -ini_set('session.serialize_handler', 'igbinary'); - -session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); - -session_start(); - -echo ++$_SESSION'foo', "\n"; - -session_write_close(); - -echo $output; - -/* - * you can add regression tests for your extension here - * - * the output of your test code has to be equal to the - * text in the --EXPECT-- section below for the tests - * to pass, differences between the output and the - * expected text are interpreted as failure - * - * see TESTING.md for further information on - * writing regression tests - */ -?> ---EXPECT-- -2 -14011103666f6f0602
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_015b.phpt
Deleted
@@ -1,77 +0,0 @@ ---TEST-- -Check for serialization handler, ini-directive ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} - ---INI-- ---FILE-- -<?php -ini_set('session.serialize_handler', 'igbinary'); - -$output = ''; - -function open($path, $name) { - return true; -} - -function close() { - return true; -} - -function read($id) { - global $output; - return pack('H*', '0000000214011103666f6f0601'); -} - -function write($id, $data) { - global $output; - $output .= substr(bin2hex($data), 8). "\n"; - return true; -} - -function destroy($id) { - return true; -} - -function gc($time) { - return true; -} - -session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); - -session_start(); - -echo ++$_SESSION'foo', "\n"; - -session_write_close(); - -echo $output; - -/* - * you can add regression tests for your extension here - * - * the output of your test code has to be equal to the - * text in the --EXPECT-- section below for the tests - * to pass, differences between the output and the - * expected text are interpreted as failure - * - * see TESTING.md for further information on - * writing regression tests - */ -?> ---EXPECT-- -2 -14011103666f6f0602
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_015c.phpt
Deleted
@@ -1,70 +0,0 @@ ---TEST-- -Check for serialization handler ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} -?> ---FILE-- -<?php - -$output = ''; - -function open($path, $name) { - return true; -} - -function close() { - return true; -} - -function read($id) { - global $output; - $output .= "read($id)\n"; - return ''; -} - -function write($id, $data) { - global $output; - $output .= "write($id): data:(" . bin2hex($data) . ")\n"; - return true; -} - -function destroy($id) { - return true; -} - -function gc($time) { - return true; -} - -ini_set('session.serialize_handler', 'igbinary'); - -session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); -session_id('abcdef10231512dfaz_12311'); - -session_start(); - -// save an empty session -session_write_close(); - -// See https://github.com/igbinary/igbinary/issues/231 -// - Redis expects a non-empty string to be serialized -// - When igbinary serializes data, many applications expect it to begin with \x00\x00\x00\x02. -// - \x14\x00 represents an array(0x14) of size 0 (0x00) -echo $output; -?> ---EXPECT-- -read(abcdef10231512dfaz_12311) -write(abcdef10231512dfaz_12311): data:(000000021400)
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_027.phpt
Deleted
@@ -1,91 +0,0 @@ ---TEST-- -Check for serialization handler ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} - - ---FILE-- -<?php - -$output = ''; - -function open($path, $name) { - return true; -} - -function close() { - return true; -} - -function read($id) { - global $output; - $output .= "read\n"; - return pack('H*', '0000000214011103666f6f0601'); -} - -function write($id, $data) { - global $output; - $output .= "wrote: "; - $output .= substr(bin2hex($data), 8). "\n"; - return true; -} - -function destroy($id) { - return true; -} - -function gc($time) { - return true; -} - -class Foo { -} - -class Bar { -} - -ini_set('session.serialize_handler', 'igbinary'); - -session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); - - -$db_object = new Foo(); -$session_object = new Bar(); - -$v = session_start(); -var_dump($v); -$_SESSION'test' = "foobar"; - -session_write_close(); - -echo $output; - -/* - * you can add regression tests for your extension here - * - * the output of your test code has to be equal to the - * text in the --EXPECT-- section below for the tests - * to pass, differences between the output and the - * expected text are interpreted as failure - * - * see TESTING.md for further information on - * writing regression tests - */ -?> ---EXPECT-- -bool(true) -read -wrote: 14021103666f6f06011104746573741106666f6f626172
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_028.phpt
Deleted
@@ -1,127 +0,0 @@ ---TEST-- -Serialize object into session, full set ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} - - ---FILE-- -<?php - -class Foo { - private static $s1 = array(); - protected static $s2 = array(); - public static $s3 = array(); - - private $d1; - protected $d2; - public $d3; - - public function __construct($foo) { - $this->d1 = $foo; - $this->d2 = $foo; - $this->d3 = $foo; - } -} - -class Bar { - private static $s1 = array(); - protected static $s2 = array(); - public static $s3 = array(); - - public $d1; - private $d2; - protected $d3; - - public function __construct() { - } - - public function set($foo) { - $this->d1 = $foo; - $this->d2 = $foo; - $this->d3 = $foo; - } -} - -if(!extension_loaded('igbinary')) { - dl('igbinary.' . PHP_SHLIB_SUFFIX); -} - -$output = ''; - -function open($path, $name) { - return true; -} - -function close() { - return true; -} - -function read($id) { - global $output; - $output .= "read\n"; - $a = new Bar(); - $b = new Foo($a); - $a->set($b); - $session = array('old' => $b); - return igbinary_serialize($session); -} - -function write($id, $data) { - global $output; - $output .= "write: "; - $output .= substr(bin2hex($data), 8). "\n"; - return true; -} - -function destroy($id) { - return true; -} - -function gc($time) { - return true; -} - -ini_set('session.serialize_handler', 'igbinary'); - -session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); - -session_start(); - -$_SESSION'test' = "foobar"; -$a = new Bar(); -$b = new Foo($a); -$a->set($b); -$_SESSION'new' = $a; - -session_write_close(); - -echo $output; - -/* - * you can add regression tests for your extension here - * - * the output of your test code has to be equal to the - * text in the --EXPECT-- section below for the tests - * to pass, differences between the output and the - * expected text are interpreted as failure - * - * see TESTING.md for further information on - * writing regression tests - */ -?> ---EXPECT-- -read -write: 140311036f6c641703466f6f1403110700466f6f0064311703426172140311026431220111070042617200643222011105002a00643322011105002a00643222021102643322021104746573741106666f6f62617211036e65771a0314030e041a0114030e0222030e0722030e0822030e0522040e062204
View file
igbinary-3.2.15.tgz/igbinary-3.2.15/tests/igbinary_047.phpt
Deleted
@@ -1,95 +0,0 @@ ---TEST-- -Check for serialization handler, SessionHandlerInterface ---SKIPIF-- -<?php -if (!extension_loaded('session')) { - exit('skip session extension not loaded'); -} - -ob_start(); -phpinfo(INFO_MODULES); -$str = ob_get_clean(); - -$array = explode("\n", $str); -$array = preg_grep('/^igbinary session support.*yes/', $array); -if (!$array) { - exit('skip igbinary session handler not available'); -} -?> ---FILE-- -<?php -// https://github.com/igbinary/igbinary/issues/23 -// http://www.php.net/manual/en/class.sessionhandlerinterface.php -$output = ''; - -class S implements SessionHandlerInterface { - public function open($path, $name): bool { - return true; - } - - public function close(): bool { - return true; - } - - public function read($id): string { - global $output; - $output .= "read\n"; - return pack('H*', '0000000214011103666f6f0601'); - } - - public function write($id, $data): bool { - global $output; - $output .= "wrote: "; - $output .= substr(bin2hex($data), 8). "\n"; - return true; - } - - public function destroy($id): bool { - return true; - } - - // > Returns the number of deleted sessions on success, or false on failure. - // > Note this value is returned internally to PHP for processing. - public function gc($time): int { - return 0; - } -} - -class Foo { -} - -class Bar { -} - -ini_set('session.serialize_handler', 'igbinary'); - -$handler = new S(); -session_set_save_handler($handler, true); - -$db_object = new Foo(); -$session_object = new Bar(); - -$v = session_start(); -var_dump($v); -$_SESSION'test' = "foobar"; - -session_write_close(); - -echo $output; - -/* - * you can add regression tests for your extension here - * - * the output of your test code has to be equal to the - * text in the --EXPECT-- section below for the tests - * to pass, differences between the output and the - * expected text are interpreted as failure - * - * see TESTING.md for further information on - * writing regression tests - */ -?> ---EXPECT-- -bool(true) -read -wrote: 14021103666f6f06011104746573741106666f6f626172
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/COPYING
Changed
(renamed from igbinary-3.2.15/COPYING)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/CREDITS
Changed
(renamed from igbinary-3.2.15/CREDITS)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/NEWS
Changed
(renamed from igbinary-3.2.15/NEWS)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/README.md
Changed
(renamed from igbinary-3.2.15/README.md)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/TECH_NOTES.md
Changed
(renamed from igbinary-3.2.15/TECH_NOTES.md)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/config.m4
Changed
(renamed from igbinary-3.2.15/config.m4)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/config.w32
Changed
(renamed from igbinary-3.2.15/config.w32)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/igbinary.h
Changed
(renamed from igbinary-3.2.15/igbinary.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/igbinary.php
Changed
(renamed from igbinary-3.2.15/igbinary.php)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/igbinary.php.ini
Changed
(renamed from igbinary-3.2.15/igbinary.php.ini)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/igbinary.spec
Changed
(renamed from igbinary-3.2.15/igbinary.spec)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/php_igbinary.h
Changed
(renamed from igbinary-3.2.15/php_igbinary.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/hash.h
Changed
(renamed from igbinary-3.2.15/src/php7/hash.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/hash_ptr.h
Changed
(renamed from igbinary-3.2.15/src/php7/hash_ptr.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/hash_si.c
Changed
(renamed from igbinary-3.2.15/src/php7/hash_si.c)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/hash_si_ptr.c
Changed
(renamed from igbinary-3.2.15/src/php7/hash_si_ptr.c)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/ig_win32.h
Changed
(renamed from igbinary-3.2.15/src/php7/ig_win32.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/igbinary.c
Changed
(renamed from igbinary-3.2.15/src/php7/igbinary.c)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/igbinary.h
Added
@@ -0,0 +1,95 @@ +/* + +----------------------------------------------------------------------+ + | See COPYING file for further copyright information | + +----------------------------------------------------------------------+ + | Author: Oleg Grenrus <oleg.grenrus@dynamoid.com> | + | See CREDITS for contributors | + +----------------------------------------------------------------------+ +*/ + +#ifndef IGBINARY_H +#define IGBINARY_H +#include <stdint.h> + +/* Forward declarations. */ +struct zval; + +/* Constants and constant macros */ +/** Binary protocol version of igbinary. */ +#define IGBINARY_FORMAT_VERSION 0x00000002 + +#define PHP_IGBINARY_VERSION "3.2.16" + +/* Macros */ + +#ifdef PHP_WIN32 +# if defined(IGBINARY_EXPORTS) || (!defined(COMPILE_DL_IGBINARY)) +# define IGBINARY_API __declspec(dllexport) +# elif defined(COMPILE_DL_IGBINARY) +# define IGBINARY_API __declspec(dllimport) +# else +# define IGBINARY_API /* nothing special */ +# endif +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define IGBINARY_API __attribute__ ((visibility("default"))) +#else +# define IGBINARY_API /* nothing special */ +#endif + +/** Struct that contains pointers to memory allocation and deallocation functions. + * @see igbinary_serialize_data + */ +struct igbinary_memory_manager { + void *(*alloc)(size_t size, void *context); + void *(*realloc)(void *ptr, size_t new_size, void *context); + void (*free)(void *ptr, void *context); + void *context; +}; + +/** Serialize zval. + * Return buffer is allocated by this function with emalloc. + * @paramout ret Return buffer + * @paramout ret_len Size of return buffer + * @paramin z Variable to be serialized + * @return 0 on success, 1 elsewhere. + */ +IGBINARY_API int igbinary_serialize(uint8_t **ret, size_t *ret_len, zval *z); + +/** Serialize zval. + * Return buffer is allocated by this function with emalloc. + * @paramout ret Return buffer + * @paramout ret_len Size of return buffer + * @paramin z Variable to be serialized + * @paramin memory_manager Pointer to the structure that contains memory allocation functions. + * @return 0 on success, 1 elsewhere. + */ +IGBINARY_API int igbinary_serialize_ex(uint8_t **ret, size_t *ret_len, zval *z, struct igbinary_memory_manager *memory_manager); + +/** Unserialize to zval. + * @paramin buf Buffer with serialized data. + * @paramin buf_len Buffer length. + * @paramout z Unserialized zval + * @return 0 on success, 1 elsewhere. + */ +IGBINARY_API int igbinary_unserialize(const uint8_t *buf, size_t buf_len, zval *z); + +static zend_always_inline int _igbinary_has_valid_header(const uint8_t *buf, size_t buf_len) { + if (buf_len < 5) { + /* Must have 4 header bytes and at least one byte of data */ + return 0; + } + /* Unserialize 32bit value the same way on big-endian and little-endian architectures. + * This compiles to a load+optional bswap when compiler optimizations are enabled. */ + const uint32_t ret = + ((uint32_t)(buf0) << 24) | + ((uint32_t)(buf1) << 16) | + ((uint32_t)(buf2) << 8) | + ((uint32_t)(buf3)); + return ret == 1 || ret == 2; +} +/** This is defined as a macro and a static C function + * to allow callers to use the macro from newer igbinary versions even with older igbinary installations. */ +#define igbinary_has_valid_header(buf, buf_len) _igbinary_has_valid_header((buf), (buf_len)) + + +#endif /* IGBINARY_H */
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/igbinary_bswap.h
Changed
(renamed from igbinary-3.2.15/src/php7/igbinary_bswap.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/igbinary_macros.h
Changed
(renamed from igbinary-3.2.15/src/php7/igbinary_macros.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/igbinary_zend_hash.h
Changed
(renamed from igbinary-3.2.15/src/php7/igbinary_zend_hash.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/src/php7/php_igbinary.h
Changed
(renamed from igbinary-3.2.15/src/php7/php_igbinary.h)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tags.sh
Changed
(renamed from igbinary-3.2.15/tags.sh)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_001.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_001.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_002.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_002.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_003.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_003.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_004.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_004.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_005.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_005.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_006.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_006.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_007.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_007.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_008.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_008.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_009.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_009.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_010.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_010.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_011.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_011.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_012.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_012.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_013.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_013.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_013_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_013_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_014.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_014.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_014_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_014_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_015.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_015.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_016.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_016.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_016_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_016_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_017.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_017.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_018.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_018.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_019.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_019.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_020.phpt
Added
@@ -0,0 +1,643 @@ +--TEST-- +issue when serializing/deserializing nested objects with __serialize +--SKIPIF-- +<?php if (PHP_VERSION_ID < 70100) { echo "skip uses php 7.1 syntax\n"; } ?> +--FILE-- +<?php +// Based on bug report seen in a Symfony codebase - https://github.com/igbinary/igbinary/issues/287 +// NOTE: This test would also pass in older php versions, where igbinary doesn't call __serialize, +// just because we're returning the same data we fetch. +// (However, the serialized data generated before/after 7.4 would be incompatible if saved to memcache, etc.) +class Event +{ +} + +class MessageEvents +{ + private $events = ; + private $transports = ; + + public function add(MessageEvent $event): void + { + $this->events = $event; + $this->transports$event->getTransport() = true; + } + + public function getEvents(?string $name = null): array + { + return $this->events; + } +} + +final class MessageEvent extends Event +{ + private $propagationStopped = false; + private $message; + private $envelope; + private $transport; + private $queued; + + public function __construct(RawMessage $message, Envelope $envelope, string $transport, bool $queued = false) + { + $this->message = $message; + $this->envelope = $envelope; + $this->transport = $transport; + $this->queued = $queued; + } + + public function getTransport(): string + { + return $this->transport; + } + + public function getMessage(): RawMessage + { + return $this->message; + } +} + +class Envelope +{ + protected $sender; + protected $recipients = ; + protected $senderSet = false; + protected $recipientsSet = false; + protected $message; + + public function __construct(Address $sender, array $recipients) + { + $this->setSender($sender); + $this->setRecipients($recipients); + } + + public static function create(RawMessage $message): self + { + return new DelayedEnvelope($message); + } + + public function setSender(Address $sender): void + { + $this->sender = $sender; + } + + public function setRecipients(array $recipients): void + { + $this->recipients = ; + foreach ($recipients as $recipient) { + $this->recipients = new Address($recipient->getAddress()); + } + } + + public function getRecipients(): array + { + return $this->recipients; + } +} + +final class DelayedEnvelope extends Envelope +{ + + public function __construct(Message $message) + { + $this->message = $message; + } + + public function setSender(Address $sender): void + { + parent::setSender($sender); + + $this->senderSet = true; + } + + public function setRecipients(array $recipients): void + { + parent::setRecipients($recipients); + + $this->recipientsSet = parent::getRecipients(); + } +} + +final class Address +{ + private $address; + private $name; + + public function __construct(string $address, string $name = '') + { + $this->address = trim($address); + $this->name = trim(str_replace("\n", "\r", '', $name)); + } + + /** + * @param Address|string $address + */ + public static function create($address): self + { + if ($address instanceof self) { + return $address; + } + if (\is_string($address)) { + if (false === strpos($address, '<')) { + return new self($address); + } + + return new self($matches'addrSpec', trim($matches'displayName', ' \'"')); + } + + throw new InvalidArgumentException(sprintf('An address can be an instance of Address or a string ("%s" given).', get_debug_type($address))); + } + + public static function createArray(array $addresses): array + { + $addrs = ; + foreach ($addresses as $address) { + $addrs = self::create($address); + } + + return $addrs; + } +} + +abstract class AbstractHeader +{ + private static $encoder; + + private $name; + private $lineLength = 76; + private $lang; + private $charset = 'utf-8'; + protected $addresses = ; + + public function __construct(string $name) + { + $this->name = $name; + } + + public function getName() + { + return $this->name; + } + +} + +final class Headers +{ + private $headers = ; + private $lineLength = 76; + + public function __construct(...$headers) + { + foreach ($headers as $header) { + $this->add($header); + } + } + + public function __clone() + { + foreach ($this->headers as $name => $collection) { + foreach ($collection as $i => $header) { + $this->headers$name$i = clone $header;
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_021.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_021.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/__serialize_022.phpt
Changed
(renamed from igbinary-3.2.15/tests/__serialize_022.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_001.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_001.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_002.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_002.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_003.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_003.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_004.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_004.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_005.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_005.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_006.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_006.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_007.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_007.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_008.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_008.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_009.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_009.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_009b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_009b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_009b_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_009b_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_010.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_010.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_012.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_012.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_013.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_013.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_014.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_014.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_015.phpt
Added
@@ -0,0 +1,77 @@ +--TEST-- +Check for serialization handler +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} + +--FILE-- +<?php + +$output = ''; + +function open($path, $name) { + return true; +} + +function close() { + return true; +} + +function read($id) { + global $output; + return pack('H*', '0000000214011103666f6f0601'); +} + +function write($id, $data) { + global $output; + $output .= substr(bin2hex($data), 8). "\n"; + return true; +} + +function destroy($id) { + return true; +} + +function gc($time) { + return true; +} + +ini_set('session.serialize_handler', 'igbinary'); + +@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); + +session_start(); + +echo ++$_SESSION'foo', "\n"; + +session_write_close(); + +echo $output; + +/* + * you can add regression tests for your extension here + * + * the output of your test code has to be equal to the + * text in the --EXPECT-- section below for the tests + * to pass, differences between the output and the + * expected text are interpreted as failure + * + * see TESTING.md for further information on + * writing regression tests + */ +?> +--EXPECT-- +2 +14011103666f6f0602
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_015b.phpt
Added
@@ -0,0 +1,77 @@ +--TEST-- +Check for serialization handler, ini-directive +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} + +--INI-- +--FILE-- +<?php +ini_set('session.serialize_handler', 'igbinary'); + +$output = ''; + +function open($path, $name) { + return true; +} + +function close() { + return true; +} + +function read($id) { + global $output; + return pack('H*', '0000000214011103666f6f0601'); +} + +function write($id, $data) { + global $output; + $output .= substr(bin2hex($data), 8). "\n"; + return true; +} + +function destroy($id) { + return true; +} + +function gc($time) { + return true; +} + +@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); + +session_start(); + +echo ++$_SESSION'foo', "\n"; + +session_write_close(); + +echo $output; + +/* + * you can add regression tests for your extension here + * + * the output of your test code has to be equal to the + * text in the --EXPECT-- section below for the tests + * to pass, differences between the output and the + * expected text are interpreted as failure + * + * see TESTING.md for further information on + * writing regression tests + */ +?> +--EXPECT-- +2 +14011103666f6f0602
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_015c.phpt
Added
@@ -0,0 +1,70 @@ +--TEST-- +Check for serialization handler +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} +?> +--FILE-- +<?php + +$output = ''; + +function open($path, $name) { + return true; +} + +function close() { + return true; +} + +function read($id) { + global $output; + $output .= "read($id)\n"; + return ''; +} + +function write($id, $data) { + global $output; + $output .= "write($id): data:(" . bin2hex($data) . ")\n"; + return true; +} + +function destroy($id) { + return true; +} + +function gc($time) { + return true; +} + +ini_set('session.serialize_handler', 'igbinary'); + +@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_id('abcdef10231512dfaz_12311'); + +session_start(); + +// save an empty session +session_write_close(); + +// See https://github.com/igbinary/igbinary/issues/231 +// - Redis expects a non-empty string to be serialized +// - When igbinary serializes data, many applications expect it to begin with \x00\x00\x00\x02. +// - \x14\x00 represents an array(0x14) of size 0 (0x00) +echo $output; +?> +--EXPECT-- +read(abcdef10231512dfaz_12311) +write(abcdef10231512dfaz_12311): data:(000000021400)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_016.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_016.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_017.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_017.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_018.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_018.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_019.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_019.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_020.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_020.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_021.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_021.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_022.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_022.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_022_php82.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_022_php82.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_023.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_023.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_024.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_024.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_025.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_025.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_025b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_025b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_026.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_026.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_026_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_026_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_026b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_026b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_026b_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_026b_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_027.phpt
Added
@@ -0,0 +1,91 @@ +--TEST-- +Check for serialization handler +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} + + +--FILE-- +<?php + +$output = ''; + +function open($path, $name) { + return true; +} + +function close() { + return true; +} + +function read($id) { + global $output; + $output .= "read\n"; + return pack('H*', '0000000214011103666f6f0601'); +} + +function write($id, $data) { + global $output; + $output .= "wrote: "; + $output .= substr(bin2hex($data), 8). "\n"; + return true; +} + +function destroy($id) { + return true; +} + +function gc($time) { + return true; +} + +class Foo { +} + +class Bar { +} + +ini_set('session.serialize_handler', 'igbinary'); + +@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); + + +$db_object = new Foo(); +$session_object = new Bar(); + +$v = session_start(); +var_dump($v); +$_SESSION'test' = "foobar"; + +session_write_close(); + +echo $output; + +/* + * you can add regression tests for your extension here + * + * the output of your test code has to be equal to the + * text in the --EXPECT-- section below for the tests + * to pass, differences between the output and the + * expected text are interpreted as failure + * + * see TESTING.md for further information on + * writing regression tests + */ +?> +--EXPECT-- +bool(true) +read +wrote: 14021103666f6f06011104746573741106666f6f626172
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_028.phpt
Added
@@ -0,0 +1,127 @@ +--TEST-- +Serialize object into session, full set +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} + + +--FILE-- +<?php + +class Foo { + private static $s1 = array(); + protected static $s2 = array(); + public static $s3 = array(); + + private $d1; + protected $d2; + public $d3; + + public function __construct($foo) { + $this->d1 = $foo; + $this->d2 = $foo; + $this->d3 = $foo; + } +} + +class Bar { + private static $s1 = array(); + protected static $s2 = array(); + public static $s3 = array(); + + public $d1; + private $d2; + protected $d3; + + public function __construct() { + } + + public function set($foo) { + $this->d1 = $foo; + $this->d2 = $foo; + $this->d3 = $foo; + } +} + +if(!extension_loaded('igbinary')) { + dl('igbinary.' . PHP_SHLIB_SUFFIX); +} + +$output = ''; + +function open($path, $name) { + return true; +} + +function close() { + return true; +} + +function read($id) { + global $output; + $output .= "read\n"; + $a = new Bar(); + $b = new Foo($a); + $a->set($b); + $session = array('old' => $b); + return igbinary_serialize($session); +} + +function write($id, $data) { + global $output; + $output .= "write: "; + $output .= substr(bin2hex($data), 8). "\n"; + return true; +} + +function destroy($id) { + return true; +} + +function gc($time) { + return true; +} + +ini_set('session.serialize_handler', 'igbinary'); + +@session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); + +session_start(); + +$_SESSION'test' = "foobar"; +$a = new Bar(); +$b = new Foo($a); +$a->set($b); +$_SESSION'new' = $a; + +session_write_close(); + +echo $output; + +/* + * you can add regression tests for your extension here + * + * the output of your test code has to be equal to the + * text in the --EXPECT-- section below for the tests + * to pass, differences between the output and the + * expected text are interpreted as failure + * + * see TESTING.md for further information on + * writing regression tests + */ +?> +--EXPECT-- +read +write: 140311036f6c641703466f6f1403110700466f6f0064311703426172140311026431220111070042617200643222011105002a00643322011105002a00643222021102643322021104746573741106666f6f62617211036e65771a0314030e041a0114030e0222030e0722030e0822030e0522040e062204
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_029.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_029.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_030_php7.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_030_php7.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_030_php72.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_030_php72.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_031.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_031.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_032.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_032.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_033.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_033.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_034.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_034.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_040.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_040.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_041.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_041.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_043.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_043.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_044.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_044.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_045b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_045b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_045c.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_045c.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_046.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_046.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_046b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_046b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_046c.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_046c.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_046d.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_046d.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_047.phpt
Added
@@ -0,0 +1,95 @@ +--TEST-- +Check for serialization handler, SessionHandlerInterface +--SKIPIF-- +<?php +if (!extension_loaded('session')) { + exit('skip session extension not loaded'); +} + +ob_start(); +phpinfo(INFO_MODULES); +$str = ob_get_clean(); + +$array = explode("\n", $str); +$array = preg_grep('/^igbinary session support.*yes/', $array); +if (!$array) { + exit('skip igbinary session handler not available'); +} +?> +--FILE-- +<?php +// https://github.com/igbinary/igbinary/issues/23 +// http://www.php.net/manual/en/class.sessionhandlerinterface.php +$output = ''; + +class S implements SessionHandlerInterface { + public function open($path, $name): bool { + return true; + } + + public function close(): bool { + return true; + } + + public function read($id): string { + global $output; + $output .= "read\n"; + return pack('H*', '0000000214011103666f6f0601'); + } + + public function write($id, $data): bool { + global $output; + $output .= "wrote: "; + $output .= substr(bin2hex($data), 8). "\n"; + return true; + } + + public function destroy($id): bool { + return true; + } + + // > Returns the number of deleted sessions on success, or false on failure. + // > Note this value is returned internally to PHP for processing. + public function gc($time): int { + return 0; + } +} + +class Foo { +} + +class Bar { +} + +ini_set('session.serialize_handler', 'igbinary'); + +$handler = new S(); +@session_set_save_handler($handler, true); + +$db_object = new Foo(); +$session_object = new Bar(); + +$v = session_start(); +var_dump($v); +$_SESSION'test' = "foobar"; + +session_write_close(); + +echo $output; + +/* + * you can add regression tests for your extension here + * + * the output of your test code has to be equal to the + * text in the --EXPECT-- section below for the tests + * to pass, differences between the output and the + * expected text are interpreted as failure + * + * see TESTING.md for further information on + * writing regression tests + */ +?> +--EXPECT-- +bool(true) +read +wrote: 14021103666f6f06011104746573741106666f6f626172
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_048.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_048.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_048b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_048b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_049.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_049.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_049b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_049b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_050.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_050.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_051.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_051.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_052.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_052.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_053.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_053.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_054.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_054.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_055.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_055.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_057.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_057.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_058.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_058.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_058b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_058b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_059.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_059.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_060.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_060.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_061.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_061.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_062.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_062.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_063_php7.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_063_php7.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_063_php72.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_063_php72.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_064.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_064.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_065.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_065.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_066.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_066.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_067.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_067.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_068.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_068.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_069.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_069.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_070.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_070.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_071.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_071.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_071_php8.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_071_php8.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_072.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_072.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_073.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_073.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_074.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_074.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_075.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_075.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_076.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_076.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_077.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_077.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_078.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_078.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_079.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_079.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_080.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_080.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_081.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_081.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_082.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_082.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_082_php74.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_082_php74.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_083.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_083.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_084.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_084.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_084b.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_084b.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_085.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_085.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_086.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_086.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_087.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_087.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_088.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_088.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_089.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_089.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_089_32bit.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_089_32bit.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_090.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_090.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_091.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_091.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_092.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_092.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_093.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_093.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_094.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_094.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_095.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_095.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_096.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_096.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_097.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_097.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_098.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_098.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_099.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_099.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_bug54662.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_bug54662.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_bug72134.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_bug72134.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_enums_1.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_enums_1.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_enums_2.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_enums_2.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_enums_3.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_enums_3.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_enums_3_php83.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_enums_3_php83.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/igbinary_unserialize_v1_compatible.phpt
Changed
(renamed from igbinary-3.2.15/tests/igbinary_unserialize_v1_compatible.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/php82_suppress_dynamic_properties_warning.inc
Changed
(renamed from igbinary-3.2.15/tests/php82_suppress_dynamic_properties_warning.inc)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/sleep_mangled_name_clash.phpt
Changed
(renamed from igbinary-3.2.15/tests/sleep_mangled_name_clash.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/typed_property_ref_assignment_failure.phpt
Changed
(renamed from igbinary-3.2.15/tests/typed_property_ref_assignment_failure.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/typed_property_ref_overwrite.phpt
Changed
(renamed from igbinary-3.2.15/tests/typed_property_ref_overwrite.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/typed_property_ref_overwrite2.phpt
Changed
(renamed from igbinary-3.2.15/tests/typed_property_ref_overwrite2.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/typed_property_refs.phpt
Changed
(renamed from igbinary-3.2.15/tests/typed_property_refs.phpt)
View file
igbinary-3.2.16.tgz/igbinary-3.2.16/tests/typed_property_refs_php74.phpt
Changed
(renamed from igbinary-3.2.15/tests/typed_property_refs_php74.phpt)
View file
igbinary-3.2.15.tgz/package.xml -> igbinary-3.2.16.tgz/package.xml
Changed
@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<package packagerversion="1.10.13" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> +<package packagerversion="1.10.14" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>igbinary</name> <channel>pecl.php.net</channel> <summary>igbinary extension</summary> @@ -31,10 +31,10 @@ <email>tandre@php.net</email> <active>yes</active> </lead> - <date>2023-12-02</date> - <time>17:09:57</time> + <date>2024-08-10</date> + <time>16:55:30</time> <version> - <release>3.2.15</release> + <release>3.2.16</release> <api>1.4.0</api> </version> <stability> @@ -43,7 +43,7 @@ </stability> <license uri="https://github.com/igbinary/igbinary/blob/master/COPYING">BSD-3-Clause</license> <notes> -* Fix crash in igbinary_unserialize_object_enum_case with opcache protected memory and non-constant value. +* Fix test failures in php 8.4.0alpha1 due to tests calling deprecated functions (#390) </notes> <contents> <dir name="/"> @@ -69,7 +69,7 @@ <file md5sum="1d940382a81eb7fad4a9690e483bf2e8" name="tests/__serialize_017.phpt" role="test" /> <file md5sum="54716c1e83ecbef490bd2103a381050b" name="tests/__serialize_018.phpt" role="test" /> <file md5sum="5ef440f102b840bdc6f227a8986710f2" name="tests/__serialize_019.phpt" role="test" /> - <file md5sum="d3e09a4168ce876fd098a7db18f29d69" name="tests/__serialize_020.phpt" role="test" /> + <file md5sum="e38e9dae063687afd329867e3f0322d8" name="tests/__serialize_020.phpt" role="test" /> <file md5sum="fbe8c4416a426dcd13ad7922cc85512d" name="tests/__serialize_021.phpt" role="test" /> <file md5sum="ccd7787081414b881d5ee274dc6ba10d" name="tests/__serialize_022.phpt" role="test" /> <file md5sum="0e644531343a7fa54f158a375b5d1015" name="tests/igbinary_001.phpt" role="test" /> @@ -87,9 +87,9 @@ <file md5sum="667685eebecae85b9bf308fb752b1348" name="tests/igbinary_012.phpt" role="test" /> <file md5sum="c1c0a4f82507fd32a66b90b522ead0db" name="tests/igbinary_013.phpt" role="test" /> <file md5sum="f20c025d25e894c3804308b997a8506c" name="tests/igbinary_014.phpt" role="test" /> - <file md5sum="af55b7905825b2f985dc057a5f831e7d" name="tests/igbinary_015.phpt" role="test" /> - <file md5sum="8c6ee115fd5e62f5ea755a655657f4e0" name="tests/igbinary_015b.phpt" role="test" /> - <file md5sum="d3180ad0bfa395f4c3b42084eeb59603" name="tests/igbinary_015c.phpt" role="test" /> + <file md5sum="1cc9abbdcc1802526dc22e3a3bdea119" name="tests/igbinary_015.phpt" role="test" /> + <file md5sum="15f4cf2584e190f26d052c0a8a45cea6" name="tests/igbinary_015b.phpt" role="test" /> + <file md5sum="f2b4996489da3223007e999950b10106" name="tests/igbinary_015c.phpt" role="test" /> <file md5sum="3974e7154c2e90d3a55e51eb44e27cd9" name="tests/igbinary_016.phpt" role="test" /> <file md5sum="860030256231e9c10a551c9785c485e8" name="tests/igbinary_017.phpt" role="test" /> <file md5sum="c833cafbcf144f74fc04b47fb5e05c22" name="tests/igbinary_018.phpt" role="test" /> @@ -106,8 +106,8 @@ <file md5sum="fe1d29c95b102f99ec67b8245b8c36bf" name="tests/igbinary_026_php8.phpt" role="test" /> <file md5sum="26d87552f0efb551550a5c1861d26adc" name="tests/igbinary_026b.phpt" role="test" /> <file md5sum="4c96c922a376d19ea34899995df52e5a" name="tests/igbinary_026b_php8.phpt" role="test" /> - <file md5sum="a9e31ce0e6eeef42ead226b19c71d30d" name="tests/igbinary_027.phpt" role="test" /> - <file md5sum="038f7def1c7ab3a62f0a9902a7670d2e" name="tests/igbinary_028.phpt" role="test" /> + <file md5sum="33f5cbd2a7807c2c7f799fe92825b762" name="tests/igbinary_027.phpt" role="test" /> + <file md5sum="f03d4206ad29f433cb462be1cafaab84" name="tests/igbinary_028.phpt" role="test" /> <file md5sum="74cc7ff879939966e106c232604dd0b2" name="tests/igbinary_029.phpt" role="test" /> <file md5sum="4b4645940c5c2e72870890bdc4c75934" name="tests/igbinary_030_php7.phpt" role="test" /> <file md5sum="6e1a70edc8ee5159c57ccf464808c4fd" name="tests/igbinary_030_php72.phpt" role="test" /> @@ -125,7 +125,7 @@ <file md5sum="32545cac8801fca1963a5fe103e34aa8" name="tests/igbinary_046b.phpt" role="test" /> <file md5sum="2c081ae91fbabb879493e430a590940b" name="tests/igbinary_046c.phpt" role="test" /> <file md5sum="8f2a617fc6f38c6446df5497446aa756" name="tests/igbinary_046d.phpt" role="test" /> - <file md5sum="54958bea138b0e9b9ca7c29d46a42304" name="tests/igbinary_047.phpt" role="test" /> + <file md5sum="bdb844bb86c819da01a15e1498ab804b" name="tests/igbinary_047.phpt" role="test" /> <file md5sum="a51801e38470f84fcc3dcf5fa6e20547" name="tests/igbinary_048.phpt" role="test" /> <file md5sum="962934707df8fc686123a2f4a56c24a5" name="tests/igbinary_048b.phpt" role="test" /> <file md5sum="d43f6c9a7dab8fb4266f27db8919cf96" name="tests/igbinary_049.phpt" role="test" /> @@ -208,7 +208,7 @@ <file md5sum="235f0c49ed0cd5eb82ec5d94a9047eeb" name="src/php7/hash_si.c" role="src" /> <file md5sum="02dfee8362f6cd60c8782542d32a52d4" name="src/php7/hash_si_ptr.c" role="src" /> <file md5sum="84853e21e300a5a0ed12db6051431a9c" name="src/php7/igbinary.c" role="src" /> - <file md5sum="0cd5674c8758ae51e84cd865555f7eaa" name="src/php7/igbinary.h" role="src" /> + <file md5sum="21cd5b2b2410efee744ed5531ebf9c4f" name="src/php7/igbinary.h" role="src" /> <file md5sum="121a1addcb6bf59294641b3b02740354" name="src/php7/igbinary_bswap.h" role="src" /> <file md5sum="4fd17c9f79b2c2e7d1d141a20710a680" name="src/php7/igbinary_macros.h" role="src" /> <file md5sum="d0728438589d9a7181bfabfe97636a3b" name="src/php7/igbinary_zend_hash.h" role="src" /> @@ -239,6 +239,22 @@ <extsrcrelease /> <changelog> <release> + <date>2023-12-02</date> + <time>16:00:00</time> + <version> + <release>3.2.15</release> + <api>1.4.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license uri="https://github.com/igbinary/igbinary/blob/master/COPYING">BSD-3-Clause</license> + <notes> +* Fix crash in igbinary_unserialize_object_enum_case with opcache protected memory and non-constant value. + </notes> + </release> + <release> <date>2023-02-26</date> <time>16:00:00</time> <version>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.