Commit Graph

83 Commits

Author SHA1 Message Date
Xinchen Hui
f588c88528 Fixed hash recursive detecting 2018-12-21 11:09:57 +08:00
Xinchen Hui
ad31d5f7c6 back to dev 2017-12-31 12:34:09 +08:00
Xinchen Hui
15f58c43fb releasing 2.0.5 lua-2.0.5 2017-12-31 12:33:16 +08:00
Xinchen Hui
c4c61f05bf Revert the last merge 2017-10-18 13:05:38 +08:00
Xinchen Hui
9ef044896a Merge pull request #31 from sgolemon/callback.refcount
Explicitly release held references to PHP callbacks
2017-10-18 12:56:28 +08:00
Xinchen Hui
feb39efa86 Merge pull request #32 from sgolemon/gitignore
Add a .gitignore to disregard build artifacts
2017-10-18 12:56:02 +08:00
Xinchen Hui
4438a88e85 Merge pull request #33 from sgolemon/object.alloc
Fix allocation of lua object.
2017-10-18 12:55:49 +08:00
Xinchen Hui
0c6a60d21b Merge pull request #34 from sgolemon/php_printf
Prefer php_printf() over printf()
2017-10-18 12:55:26 +08:00
Xinchen Hui
db95520d2f Merge pull request #35 from sgolemon/non-string.accessor
Fix non-string member access in read/write prop.
2017-10-18 12:55:10 +08:00
Xinchen Hui
8afc555bce Merge pull request #36 from sgolemon/closure.refactor
Refactor LuaClosure
2017-10-18 12:53:50 +08:00
Sara Golemon
486de80ebf Refactor LuaClosure
Use proper internal object storage rather than private props.
Favor NULL clone_obj handler over empty private __clone method.
Favor free_obj handler over __destruct() method.
2017-10-03 10:09:53 -04:00
Sara Golemon
1813b36307 Fix non-string member access in read/write prop.
These both have a null pointer deref waiting to happen
and are coincidentally more complex than they need to be.

zval_get_string() will incref any IS_STRING zval,
or copy/convert any non-string zval.

zend_string_release() will then decref or free as appropriate.
2017-10-03 08:51:02 -04:00
Sara Golemon
a2be2c935b Prefer php_printf() over printf()
On CLI the distinction doesn't matter, but in a web sapi this
will ensure the output goes to the right place.
2017-10-03 08:37:13 -04:00
Sara Golemon
6690ee0c70 Fix allocation of lua object.
Size the malloc using zend's helper.
Use ecalloc over emalloc to make sure uninit'd structs are clear.
No need to check return value as e*alloc() funcs can't fail.
2017-10-03 08:32:51 -04:00
Sara Golemon
f64a8d6d27 Add a .gitignore to disregard build artifacts 2017-10-02 19:01:00 -04:00
Sara Golemon
d6c7850afa Explicitly release held references to PHP callbacks 2017-10-02 18:52:01 -04:00
Xinchen Hui
257d46c1e4 back to dev 2017-07-12 11:42:28 +08:00
Xinchen Hui
e350b425f4 release 2.0.4 lua-2.0.4 2017-07-12 11:42:06 +08:00
Xinchen Hui
527f927ead Fixed bug #73964 (Segmentation fault (11)) 2017-02-12 10:53:36 +08:00
Xinchen Hui
9be57325c6 back to dev 2017-02-10 19:14:10 +08:00
Xinchen Hui
1ff1eb10c9 releaseing 2.0.3 lua-2.0.3 2017-02-10 19:13:44 +08:00
Xinchen Hui
cbe65b9ad6 Fixed issue #20 (PHP 7: Lua::eval(): unsupported type `unknown' for lua) 2016-05-30 11:44:12 +08:00
Xinchen Hui
04f7106631 back to dev 2016-05-26 17:42:59 +08:00
Xinchen Hui
7406b07f2c Prepare for 2.0.2 lua-2.0.2 2016-05-26 17:42:22 +08:00
Xinchen Hui
17cbba8b77 Fixed issue #22 (Boolean FALSE is always TRUE) 2016-05-20 11:54:37 +08:00
Xinchen Hui
7cdb287c33 back to dev 2016-04-11 10:55:22 +08:00
Xinchen Hui
f3d6dca1a0 Prepareing for 2.0.1 lua-2.0.1 2016-04-11 10:54:41 +08:00
Xinchen Hui
f177b21ff1 Added tests for bug #71997 2016-04-11 10:51:15 +08:00
Xinchen Hui
c7d9844cf1 Fixed default searching in centOS 2016-04-11 10:50:28 +08:00
Xinchen Hui
12c53f28eb Fixed nApplyCount checking 2016-04-11 10:37:11 +08:00
Xinchen Hui
86cb62e0b8 Merge pull request #19 from tony2001/php7_fixes
fix send_zval_to_lua()
2016-04-07 19:14:59 +08:00
Antony Dovgal
dc226c345d fix send_zval_to_lua() 2016-03-31 12:56:15 +03:00
Xinchen Hui
2d23b565e5 Merge branch 'master' into php7
Conflicts:
	README.md
2015-10-26 21:11:38 -07:00
Xinchen Hui
6a2bf0e8af Update README 2015-10-26 21:11:12 -07:00
Xinchen Hui
230a8af900 Update README 2015-10-26 21:10:51 -07:00
Xinchen Hui
468203ce7c Merge branch 'master' into php7 2015-10-26 21:05:54 -07:00
Xinchen Hui
aaf49be301 trigger triavis 2015-10-26 21:05:41 -07:00
Xinchen Hui
1bd4adf039 No valgrind is valiable 2015-10-26 20:59:34 -07:00
Xinchen Hui
18e2bb493d enable full test 2015-10-26 20:56:56 -07:00
Xinchen Hui
0b28ef4f55 Merge branch 'master' into php7
Conflicts:
	.travis.yml
	travis/compile.sh
2015-10-26 20:56:19 -07:00
Xinchen Hui
d3323aa9fe enable travis 2015-10-26 20:54:55 -07:00
Xinchen Hui
f6a2f09b19 User hjanuschka doesn't exists? 2015-10-27 11:16:04 +08:00
Xinchen Hui
6c2a37f99c back to dev 2015-10-27 11:14:10 +08:00
Xinchen Hui
65764e0777 release lua for PHP7 lua-2.0.0 2015-10-27 11:13:39 +08:00
Xinchen Hui
cf3f69b274 Cleanup 2015-02-26 12:10:34 +08:00
Xinchen Hui
49b95a64f3 All tests passed 2015-02-26 12:05:45 +08:00
Xinchen Hui
ca8cf30759 Only for PHP7 2015-02-26 00:16:38 +08:00
Xinchen Hui
8bccbdc5db clean up (not finish yet) 2015-02-26 00:11:42 +08:00
Xinchen Hui
50d32564d2 Master is only for PHP5.X now 2015-02-25 22:23:05 +08:00
Xinchen Hui
a55478e449 Merge pull request #17 from tony2001/suffix_fix
several config fixes
2015-02-25 20:52:52 +08:00