Commit Graph

103 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan e16624fd1c check php version 2025-10-06 17:54:19 +02:00
Jean-Baptiste Nahan 44a0c089ca Fix PHP 8.5 build 2025-10-06 17:50:34 +02:00
Xinchen Hui a6c5162a7c Back to dev 2020-03-10 11:09:56 +08:00
Xinchen Hui 0875f92328 Preparing 2.0.7 lua-2.0.7 2020-03-10 11:09:26 +08:00
Xinchen Hui 445e886030 Fixed ulong undefined 2020-03-01 15:33:39 +08:00
Xinchen Hui 5c405f9746 Merge pull request #42 from negram/demangle-object-name
Demangle name of a property when assigning an object into Lua
2019-12-30 13:26:32 +08:00
Xinchen Hui 9b25ea36a5 Merge pull request #44 from tony2001/multiple_fixes
Multiple fixes
2019-12-30 13:25:46 +08:00
Xinchen Hui 5b6ac82491 added more test php version 2019-12-24 12:54:21 +08:00
Mikhail Galanin 5663931ce7 Renamed test to prevent merge conflict 2019-11-02 13:07:12 +00:00
Antony Dovgal a5a8995b2e add some more table magic
this commit seems to fix all remaining issue with iterating tables
2019-07-04 18:48:58 +03:00
Antony Dovgal ffae3062a4 add more tests 2019-05-24 12:42:01 +03:00
Antony Dovgal 13e26a383a make lua_obj optional
so that printing a function would not cause crash
2019-05-24 12:41:55 +03:00
Antony Dovgal ef70d19a33 fix crashes when printing tables 2019-05-24 12:41:42 +03:00
Antony Dovgal d763f167d8 fix incorrect type alloc that causes memory corruption 2019-05-24 12:41:29 +03:00
Mikhail Galanin 24fd1baf19 Fixed issue #40
Using absolute index could be error-prone, updated code to use relative indices as it commonly done with Lua
2019-05-24 12:41:07 +03:00
Mikhail Galanin a780d5623d Make test finally stable 2019-05-21 08:46:23 +01:00
Mikhail Galanin 0d73a2fdaa fixed test 2019-05-19 20:23:55 +01:00
Mikhail Galanin aa1dd4f526 Fixed test 2019-05-19 20:02:32 +01:00
Mikhail Galanin 199a846d7a Demangle name of a property when assigning an object into Lua 2019-05-19 19:55:43 +01:00
Xinchen Hui 84c831e4cb releasing 2.0.6 lua-2.0.6 2018-12-21 11:11:37 +08:00
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