142 Commits

Author SHA1 Message Date
Sara Golemon
0cb1b0eabc Archive my old, unmaintained version of Runkit
If you like runkit and want to make use of it,
checkout https://github.com/zenovich/runkit

They're actually maintaining the project and
you'll have a better experience for it.

If, for some reason, you need the last version
that was here, fear not.

Revision control remembers.
$ git checkout last-sgolemon-version

A backup of this repo will remain at
https://github.com/sgolemon/archive-runkit

Cheers!
2015-10-17 11:50:50 -07:00
Sara Golemon
be75b5ed56 Get rid of some PHP 5.7isms that never came to pass last-sgolemon-version 2015-01-02 21:53:35 -08:00
Sara Golemon
1fde29c8a6 5.7 Fixes
zend_is_true() now takes a TSRMLS_CC parameter
sapi_flush() now takes a TSRMLS_CC parameter
2013-12-22 14:38:32 -08:00
Sara Golemon
ad9298c0a5 More fixes and test imports
Trim leading NS sep from fully-qualified class names
Separate name params to runkit_constant_*() functions
Bail out of imports cleanly
Fix importing of static properties
Plug leak during import failure
2013-04-21 12:15:11 -07:00
Sara Golemon
a12421fbca Various fixes related to Reflection objects 2013-04-04 15:41:49 -07:00
Sara Golemon
5249061462 Fix multi-generational inheritance with PHP4 style constructors. 2013-04-04 06:15:09 -07:00
Dmitry Zenovich
d80244e1b5 Fix autoglobal disarm in PHP >= 5.4 plus regression test 2013-04-04 03:24:05 -07:00
Dmitry Zenovich
7da53b2a6d Add tests from github.com/zenovich/runkit where they're new and work out of the box
Remaining 50 or so will need to be addressed individually.
2013-04-04 03:07:41 -07:00
Dmitry Zenovich
5b124e6cdb Sync common tests from github.com/zenovich/runkit
Those tests (generally) check more things and spotted one bug.
Tests unique to that fork will be pulled in next.
2013-04-04 03:07:34 -07:00
Sara Golemon
37d5349ae8 Fix minor reflection bug where function's name picks up case folding 2013-04-04 02:45:21 -07:00
Sara Golemon
f075ea0b08 Compact some unnecessary convert_to_bool() uses 2013-04-04 01:53:35 -07:00
Sara Golemon
e84c71ad80 Allow disabling of allow_url_include in a Runkit_Sandbox (PHP >= 5.2) 2013-04-04 01:49:53 -07:00
Sara Golemon
c2ad335a28 Bugfix#64496 Runkit_Sandbox open_basedir doesn't support multiple paths 2013-04-04 01:28:26 -07:00
Sara Golemon
802f574954 Add backup define of Z_REFCOUNT_P() for older PHP versions 2013-04-03 21:03:10 -07:00
Rasmus Lerdorf
3a02dab07e Fix ZVAL macros 2013-03-13 13:27:53 -07:00
Sara Golemon
ff3e1d5297 Fix "importing" of new classes for PHP5, PHP4 can go fly a kite 2013-02-26 14:55:11 -08:00
Sara Golemon
ee7eaf4b58 Fix adding (and keeping added) magic methods
Really stupid assignment/equality bug in RUNKIT_MAGIC_DEL macro
And operation ordering with runkit_method_rename()
2013-02-26 14:18:50 -08:00
Sara Golemon
38fa37aa84 Respect RUNKIT_IMPORT_CLASS_METHODS properly
This seems to have been taken out by a previous refactor
2013-02-25 15:54:37 -08:00
Sara Golemon
53201faa77 method import should update scope for new zend_function, not old copy 2013-02-25 15:49:31 -08:00
Sara Golemon
1e8f8b88c3 Propagate new method to children in runkit_method_rename() 2013-02-25 13:57:43 -08:00
Sara Golemon
b60a9214fe Version agnosticism fixes 2013-02-24 19:04:16 -08:00
Sara Golemon
658dcbaf93 Copy ALL the op arrays!
ZE2 does something really stupid with op_arrays.
It refcounts them, but prevents them from being used in any sort of refcounted way.
This patch aims to cope with this particular brand of madness by copying EVERYTHING.
2013-02-23 16:01:27 -08:00
Sara Golemon
3735302f8d Bugfix#56665 - Can't add mixed-case method 2013-02-23 07:46:44 -08:00
Sara Golemon
9a921c8283 Bugfix#57548 - runkit_class_adopt fails on method names with capitals
Also plug a leak in the class adoption inheritance failure path.
2013-02-23 07:32:32 -08:00
Sara Golemon
6c0de2d859 Bugfix#58521 runkit_class_adopt doesn't work as expected
Forgot to actually link the class to its new parent.
2013-02-23 07:10:46 -08:00
Sara Golemon
c3fe2b1a98 Bugfix#57759 - runkit doesn't add magic methods
In fairness, it added them, but only some of them.

Added support for __isset, __unset, __wake, __sleep, __tostring, and __callstatic
Also refactored the macros into proper functions (containing macros)
Expanded phpt testcases
2013-02-23 06:42:59 -08:00
Sara Golemon
ad37fa3b58 When restoring misplaced internal functions, put them at the front of EG(function_table)
Probable bugfix for #59186

When Zend cleans up the function table after a request, it walks EG(function_table)
backwards from the end removing functions as long as it sees ZEND_USER_FUNCTION.
Once it encounters the first ZEND_INTERNAL_FUNCTION, it stops.

Under runkit, it's possible to create a user-function sandwhich which means that
ZEND_USER_FUNCTIONs can remain between requests.

This is bad.

We solve that here by always moving the Bucket to the ht's pListHead after
restoring the zend_function to EG(function_table).
2013-02-23 05:18:11 -08:00
Sara Golemon
7002165aa3 Bugfix#58317 - runkit_import.c doesn't compile on strict C 2013-02-23 03:19:33 -08:00
Sara Golemon
90267fc77c Add tests to package.xml which were missing 2013-02-23 03:13:25 -08:00
Sara Golemon
985dd7c948 Add test for bug56662 (which was already fixed) 2013-02-23 03:13:25 -08:00
Sara Golemon
d9103cc42b PHP 5.5 fixes
Just some minor shuffling of the CVs
2013-02-22 15:11:03 -08:00
Sara Golemon
bed3978ec8 Updte runkit for PHP 5.4
Lots of zend_class_entry changes
Lots of zend_op_array changes
Fix tests which now throw strict warnings
Define RUNKIT_ACC_STATIC and RUNKIT_ACC_ALLOW_STATIC for defining new methods
Default behavior for sapi.treat_data
No more safe mode!
2013-02-22 10:24:11 -08:00
Sara Golemon
dad2bc4376 Rename regression tests includes to avoid being cleanup up by make test 2013-02-17 08:18:32 -08:00
Sara Golemon
63dc92d696 A big batch of runkit fixes
Remove PHP6isms, long live PHP5
Updates for PHP 5.3, lots of tsrm_ls and symbol tables
Update regression tests
2013-02-17 08:14:33 -08:00
Sara Golemon
b3c0290792 Add missing .gitignore file 2013-02-17 07:58:08 -08:00
Johannes Schlüter
c413206303 s,function_entry,zend_function_entry,
As announced in http://news.php.net/php.pecl.dev/7123
2010-03-31 20:39:48 +00:00
Sebastian Bergmann
11f28064a4 Fugbix typo. 2009-12-31 09:40:37 +00:00
Pierre Joye
8725e94185 - update to package.xml v2 2009-11-05 12:55:42 +00:00
Gwynne Raskind
6df62a8d46 fix a huge number of wrong MIME types. UGH. 2009-07-13 12:15:13 +00:00
Philip Olson
855016c501 Fixed test 2009-03-24 07:20:34 +00:00
Hannes Magnusson
970bcb03f8 Fixed PHP bug#46847 (phpinfo() is missing some settings.) 2008-12-12 13:20:00 +00:00
Felipe Pena
ae6848e900 - Fixed build 2008-11-18 01:11:23 +00:00
Felipe Pena
25d5f8498f - 'static' was added into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:47:49 +00:00
Mike Lively
b0da7577f7 Rework of runkit_import to allow the fixing of 4519. 2008-05-05 04:28:34 +00:00
Steph Fox
d5cd0da482 - Bring the majority of PECL extensions into line with macro/x.x.x versioning.
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
2008-03-31 10:11:36 +00:00
Sebastian Bergmann
ae26d52115 - Fix #10053: memory exhausted, patch by Stefan Marr.
- Fix #10300: Segfault when copying __call(), patch by Stefan Marr.
2007-12-27 21:16:06 +00:00
Sebastian Bergmann
e306706336 - Fix #12371.
# Patch by Stefan Marr <mail@stefan-marr.de>.
2007-11-17 07:40:47 +00:00
Sebastian Bergmann
10dda6ef28 - PHP 5.3+ compatibility. 2007-10-24 02:43:27 +00:00
Marcus Boerger
2ab98e8924 - Add *.mem
# for i in `find . -regex '.*/test.*/\.cvsignore' -exec grep -L '*.mem' {} \+`; do echo $i; sed "1a*.mem" $i >| $i.new; mv -f $i.new $i; done;
# find . -name '.cvsignore' -exec cvs ci {} \+
2007-01-21 13:01:35 +00:00
Michael Wallner
2331ad3fb6 - fix build: use Z_LVAL in assignment as Z_BVAL contains a (zend_bool) cast 2006-11-28 12:31:26 +00:00