Skip to content
Permalink
Browse files

Update wikimedia/php-session-serializer to v1.0.4

github.com/wikimedia/php-session-serializer/compare/v1.0.3...v1.0.4

Change-Id: I18ec214b6446f559e018673797efcab70523de39
  • Loading branch information
reedy committed Oct 2, 2016
1 parent 2c4e016 commit 363f19e21b0390d2738edf7d6ea2b9becbb41d03
Showing with 59 additions and 60 deletions.
  1. +1 −1 composer.json
  2. +7 −8 composer.lock
  3. +46 −46 composer/installed.json
  4. +5 −5 wikimedia/php-session-serializer/README.md
@@ -39,7 +39,7 @@
"wikimedia/composer-merge-plugin": "1.3.1",
"wikimedia/html-formatter": "1.0.1",
"wikimedia/ip-set": "1.1.0",
"wikimedia/php-session-serializer": "1.0.3",
"wikimedia/php-session-serializer": "1.0.4",
"wikimedia/relpath": "1.0.3",
"wikimedia/running-stat": "1.1.0",
"wikimedia/scoped-callback": "1.0.0",

Some generated files are not rendered by default. Learn more.

@@ -867,52 +867,6 @@
"description": "Evaluates plural rules specified in the CLDR project notation.",
"homepage": "https://www.mediawiki.org/wiki/CLDRPluralRuleParser"
},
{
"name": "wikimedia/php-session-serializer",
"version": "v1.0.3",
"version_normalized": "1.0.3.0",
"source": {
"type": "git",
"url": "https://github.com/wikimedia/php-session-serializer.git",
"reference": "61dec9a25bdcea4a0cc34a22fe6f43efca390d55"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wikimedia/php-session-serializer/zipball/61dec9a25bdcea4a0cc34a22fe6f43efca390d55",
"reference": "61dec9a25bdcea4a0cc34a22fe6f43efca390d55",
"shasum": ""
},
"require": {
"mediawiki/at-ease": "^1.0",
"php": ">=5.3.3",
"psr/log": "1.0.0"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.0.0",
"mediawiki/mediawiki-codesniffer": "0.5.0",
"phpunit/phpunit": "~4.5"
},
"time": "2015-11-10 22:16:03",
"type": "library",
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Brad Jorsch",
"email": "bjorsch@wikimedia.org"
}
],
"description": "Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION",
"homepage": "https://www.mediawiki.org/wiki/Php-session-serializer"
},
{
"name": "wikimedia/relpath",
"version": "1.0.3",
@@ -1967,5 +1921,51 @@
"json",
"schema"
]
},
{
"name": "wikimedia/php-session-serializer",
"version": "v1.0.4",
"version_normalized": "1.0.4.0",
"source": {
"type": "git",
"url": "https://github.com/wikimedia/php-session-serializer.git",
"reference": "4474af7aa8f0b20aa141c33eb4ad068a1c7d5b8c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wikimedia/php-session-serializer/zipball/4474af7aa8f0b20aa141c33eb4ad068a1c7d5b8c",
"reference": "4474af7aa8f0b20aa141c33eb4ad068a1c7d5b8c",
"shasum": ""
},
"require": {
"mediawiki/at-ease": "^1.0",
"php": ">=5.3.3",
"psr/log": "^1.0"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.0.0",
"mediawiki/mediawiki-codesniffer": "0.5.0",
"phpunit/phpunit": "~4.5"
},
"time": "2016-10-01 13:19:49",
"type": "library",
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Brad Jorsch",
"email": "bjorsch@wikimedia.org"
}
],
"description": "Provides methods like PHP's session_encode and session_decode that don't mess with $_SESSION",
"homepage": "https://www.mediawiki.org/wiki/Php-session-serializer"
}
]
@@ -15,19 +15,19 @@ Usage
-----

<pre lang="php">
use Wikimedia\PhpSesssionSerializer;
use Wikimedia\PhpSessionSerializer;

// (optional) Send logs to a PSR-3 logger
PhpSesssionSerializer::setLogger( $logger )
PhpSessionSerializer::setLogger( $logger )

// (optional) Ensure that session.serialize_handler is set to a usable value
PhpSesssionSerializer::setSerializeHandler();
PhpSessionSerializer::setSerializeHandler();

// Encode session data
$string = PhpSesssionSerializer::encode( $array );
$string = PhpSessionSerializer::encode( $array );

// Decode session data
$array = PhpSesssionSerializer::decode( $string );
$array = PhpSessionSerializer::decode( $string );
</pre>

Running tests

0 comments on commit 363f19e

Please sign in to comment.
You can’t perform that action at this time.