From 7406b07f2c57b400f79b2635572691fe3930ef3c Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 26 May 2016 17:42:22 +0800 Subject: [PATCH] Prepare for 2.0.2 --- package.xml | 30 +++++++++++++++++++++++------- php_lua.h | 2 +- tests/issue012.phpt | 15 +++++++++++++++ 3 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 tests/issue012.phpt diff --git a/package.xml b/package.xml index ae87495..e3488f7 100644 --- a/package.xml +++ b/package.xml @@ -23,19 +23,19 @@ msaraujo@php.net yes - 2016-04-11 + 2016-05-26 - 2.0.1 - 2.0.1 + 2.0.2 + 2.0.2 - beta - beta + stable + stable PHP - - Fixed bug #71997 (One-Dimensional arrays cause segmentation faults) + - Fixed issue #22 (Boolean FALSE is always TRUE) @@ -62,6 +62,7 @@ + @@ -80,6 +81,22 @@ lua + + 2016-05-26 + + 2.0.2 + 2.0.2 + + + stable + stable + + PHP License + + - Fixed issue #22 (Boolean FALSE is always TRUE) + + + 2016-04-11 @@ -95,7 +112,6 @@ - Fixed bug #71997 (One-Dimensional arrays cause segmentation faults) - 2015-10-27 diff --git a/php_lua.h b/php_lua.h index 275ed4d..948e8b1 100644 --- a/php_lua.h +++ b/php_lua.h @@ -48,7 +48,7 @@ extern zend_module_entry lua_module_entry; #define LUA_G(v) (lua_globals.v) #endif -#define PHP_LUA_VERSION "2.0.2-dev" +#define PHP_LUA_VERSION "2.0.2" struct _php_lua_object { lua_State *L; diff --git a/tests/issue012.phpt b/tests/issue012.phpt new file mode 100644 index 0000000..6e2af65 --- /dev/null +++ b/tests/issue012.phpt @@ -0,0 +1,15 @@ +--TEST-- +ISSUE #022 (Boolean FALSE is always TRUE) +--SKIPIF-- + +--FILE-- +assign('TEST', false); +$result = $lua->eval('return TEST'); +var_dump($result) +?> +--EXPECT-- +bool(false)