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
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
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
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