Commit Graph

419 Commits

Author SHA1 Message Date
Hannes Magnusson
550980cfe5 Callable typehint following the rules of is_callable($arg, false); 2011-08-16 10:44:47 +00:00
Felipe Pena
23e438594d - Make usage of new PHP_FE_END macro 2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50 - Make usage of new PHP_FE_END macro 2011-07-25 11:35:02 +00:00
Felipe Pena
d2c47040f5 - Missing fix for bug #54347 2011-06-11 15:11:49 +00:00
Felipe Pena
9b1ba00a1e - Missing fix for bug #54347 2011-06-11 15:11:49 +00:00
Felipe Pena
60857e013b - Fixed bug #54347 (reflection_extension does not lowercase module function name)
patch by: laruence at yahoo dot com dot cn
2011-06-09 22:45:35 +00:00
Felipe Pena
cee9b6603c - Fixed bug #54347 (reflection_extension does not lowercase module function name)
patch by: laruence at yahoo dot com dot cn
2011-06-09 22:45:35 +00:00
Stanislav Malyshev
2da7edbc8d This method doesn't seem to be very useful without scalar types, so reverting it too 2011-06-05 08:59:24 +00:00
Stanislav Malyshev
516c2f5920 removing scalar types in trunk 2011-05-15 00:36:13 +00:00
Gustavo André dos Santos Lopes
e15dd93e7e - Simpler fix for bug #53915. 2011-02-03 12:45:30 +00:00
Gustavo André dos Santos Lopes
9e71bff701 - Simpler fix for bug #53915. 2011-02-03 12:45:30 +00:00
Gustavo André dos Santos Lopes
fac1e87171 - Fixed bug #53915: ReflectionClass::getConstant(s) emits fatal error on
constants with self::.
- Reflown some NEWS entries to have lines no longer than 80 chars.
2011-02-03 12:38:25 +00:00
Gustavo André dos Santos Lopes
f2329f1f4b - Fixed bug #53915: ReflectionClass::getConstant(s) emits fatal error on
constants with self::.
- Reflown some NEWS entries to have lines no longer than 80 chars.
2011-02-03 12:38:25 +00:00
Felipe Pena
927bf09c29 - Year++ 2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Johannes Schlüter
5a1e9d1d6b - Fix #52854 (ReflectionClass::newInstanceArgs does not work for classes without constructors 2010-11-21 12:24:09 +00:00
Johannes Schlüter
9ea04e1e46 - Fix #52854 (ReflectionClass::newInstanceArgs does not work for classes without constructors 2010-11-21 12:24:09 +00:00
Felipe Pena
224bfb38f7 - Fixed bug #53366 (Reflection doesnt get dynamic property value from getProperty()) 2010-11-20 22:53:55 +00:00
Felipe Pena
1ac484d1a1 - Fixed bug #53366 (Reflection doesnt get dynamic property value from getProperty()) 2010-11-20 22:53:55 +00:00
Kalle Sommer Nielsen
063b213e9e Kill warnings about constness 2010-11-19 15:48:11 +00:00
Gustavo André dos Santos Lopes
b5b4f94a4c - Fixed ReflectionProperty::isDefault() giving a wrong result for properties
obtained with ReflectionClass::getProperties().
2010-10-26 18:47:10 +00:00
Gustavo André dos Santos Lopes
be77a48a71 - Fixed ReflectionProperty::isDefault() giving a wrong result for properties
obtained with ReflectionClass::getProperties().
2010-10-26 18:47:10 +00:00
Gustavo André dos Santos Lopes
e5c7fae82c - Added ReflectionParameter::canBePassedByValue(). 2010-10-26 15:01:36 +00:00
Dmitry Stogov
f2df6a4a3e - Improved memory usage
. zend_function.pass_rest_by_reference is replaced by
    ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags
  . zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE
    in zend_function.fn_flags
  . zend_arg_info.required_num_args removed. it was needed only for internal
    functions. Now the first arg_info for internal function (which has special
    meaning) is represented by zend_internal_function_info structure.
  . zend_op_array.size, size_var, size_literal, current_brk_cont,
    backpatch_count moved into CG(context), because they are used only during
    compilation.
  . zend_op_array.start_op is moved into EG(start_op), because it's used
    only for 'interactive' execution of single top-level op-array.
  . zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in
    zend_op_array.fn_flags.
  . op_array.vars array is trimmed (reallocated) during pass_two.
  . zend_class_entry.constants_updated is replaced by
     ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags
  . the size of zend_class_entry is reduced by sharing the same memory space
    by different information for internal and user classes.
    See zend_class_inttry.info union.
2010-09-15 07:38:52 +00:00
Felipe Pena
da3743b7b9 - Added missing void parameter checks 2010-08-21 16:09:18 +00:00
Felipe Pena
76862dfd0c - Added missing void parameter checks 2010-08-21 16:09:18 +00:00
Felipe Pena
a552a30192 - Added missing parameter checks for new methods (trunk only) 2010-08-02 01:35:02 +00:00
Felipe Pena
6944a24328 - Makes "parent" and "self" checking case-insensitive 2010-07-29 01:59:40 +00:00
Felipe Pena
4d3944f941 - Fixed bug #52057 (ReflectionClass fails on Closure class) 2010-06-11 23:37:55 +00:00
Felipe Pena
becc2bb671 - Fixed bug #52057 (ReflectionClass fails on Closure class) 2010-06-11 23:37:55 +00:00
Felipe Pena
8454cca44c - Fix memleak when passing a non string/object parameter 2010-06-03 00:43:37 +00:00
Felipe Pena
dc86e9e89f - Fix memleak when passing a non string/object parameter 2010-06-03 00:14:35 +00:00
Felipe Pena
e03baf4e5d - Save an object_init_ex() and zval_dtor() calls on ReflectionClass::isCloneable() 2010-06-02 17:07:01 +00:00
Felipe Pena
c98c39b1c1 - Added ReflectionClass::isCloneable() [DOC] 2010-06-02 15:29:42 +00:00
Johannes Schlüter
4158f7e122 - More trait reflection work
#- I'm not happy about ReflectionClass::getTraitAliases, yet
2010-05-30 01:00:45 +00:00
Felipe Pena
2d63683ec3 - Fixed ReflectionClass::isTrait() checking (to not identify abstract class as Trait) 2010-05-29 22:08:51 +00:00
Felipe Pena
23dfc1fa9d - Missing Trait check fix 2010-05-29 21:55:19 +00:00
Felipe Pena
3c4ff06ca7 - Fixed wrong abstract class identification (it was identified as a Trait) 2010-05-29 21:48:56 +00:00
Johannes Schlüter
97b7620aed - Add some folding marks 2010-05-29 21:28:24 +00:00
Johannes Schlüter
19afc82e28 - Make reflection aware of traits 2010-05-29 20:40:58 +00:00
Kalle Sommer Nielsen
49d74ebc6e Fixed compiler warning (pointer mismatch) 2010-05-27 23:24:06 +00:00
Pierrick Charron
0b9263da93 Remove unused variable 2010-05-26 16:17:15 +00:00
Felipe Pena
f3009cb596 - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array) 2010-05-25 22:46:17 +00:00
Felipe Pena
1168cdc323 - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array) 2010-05-25 22:46:17 +00:00
Dmitry Stogov
f23e857676 Fixed ZTS build 2010-05-24 17:07:52 +00:00
Dmitry Stogov
c5237d82bf Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
Derick Rethans
1bc9247651 - Added scalar typehinting. 2010-05-20 19:18:35 +00:00
Dmitry Stogov
94dd83722b Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table 2010-04-20 10:57:45 +00:00
Stanislav Malyshev
c93a4f192b restore $this support for closures to its former glory 2010-04-19 19:45:03 +00:00
Johannes Schlüter
26b08f9857 Remove main/php3_compat.h, for that a few references to function_entry have
to be replaced by `zend_function_entry`.
2010-03-30 23:03:02 +00:00
Johannes Schlüter
d5b2d647c0 Fix protos 2010-03-30 22:36:17 +00:00
Johannes Schlüter
26af575926 Add ReflectionZendExtension class and --rz option to CLI 2010-03-30 22:35:23 +00:00
Johannes Schlüter
6ba38a6e09 Fix folding 2010-03-30 21:04:28 +00:00
Johannes Schlüter
4dc1cef4fe Use php_error_docref instead of zend_error 2010-03-30 21:02:32 +00:00
Johannes Schlüter
a6c9e432d4 Use php_error_docref instead of zend_error 2010-03-30 21:02:32 +00:00
Johannes Schlüter
347e2bce22 Add ReflectionExtension::isTemporary() and ReflectionExtension::isPersistent(). 2010-03-30 20:50:42 +00:00
Hannes Magnusson
004a72ce1a - The ctor requires both arguments
- Sync/fix ctor and export arguments to 5_2
2010-03-02 22:16:24 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Felipe Pena
a94558c855 - Added MAKE_COPY_ZVAL(ppzv, pzv) macro 2009-12-08 01:57:37 +00:00
Felipe Pena
eea23b2794 - Fixed bug #50152 (ReflectionClass::hasProperty hehaves like isset() not property_exists)
[5_2 is OK]
2009-11-11 18:52:12 +00:00
Felipe Pena
8e91d46481 - Fixed bug #49719 (ReflectionClass::hasProperty returns true for a private property in base class) 2009-11-01 15:12:34 +00:00
Felipe Pena
8172c388b0 - Fix some arginfos (thanks Philip)
- Added arginfo info. for void params
2009-10-03 20:45:29 +00:00
Sebastian Bergmann
ceaf590530 Merge ReflectionMethod::setAccessible() to PHP 5.3.2, approved by Johannes. 2009-09-16 17:24:46 +00:00
Sebastian Bergmann
853c6de65b Make invokeArgs() error messages consistent with invoke(). 2009-09-03 14:02:51 +00:00
Felipe Pena
c75f162165 - Fixed ReflectionClass::getStaticProperties() to do not return the private properties from parent class;
behavior already adopted in ReflectionClass::getDefaultProperties() and ReflectionClass::getProperties().
2009-08-01 20:44:00 +00:00
Jani Taskinen
adf8f72f14 - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces) 2009-08-01 01:45:22 +00:00
Jani Taskinen
edbf332cea - Fixed bug #49074 (private class static fields can be modified by using reflection) 2009-08-01 00:48:04 +00:00
Kalle Sommer Nielsen
485f28aae9 MFH: Fixed #45280 (Reflection of instantiated COM classes causes PHP to crash) (Paul Richards, Kalle) 2009-07-01 18:44:56 +00:00
Kalle Sommer Nielsen
e536b2700a MFH: Fixed memory leak if zero parameters are passed, Thanks Felipe 2009-07-01 17:43:16 +00:00
Kalle Sommer Nielsen
21d61978dc MFH: Fixed bug #48757 (ReflectionFunction::invoke() parameter issues) 2009-07-01 17:38:03 +00:00
Felipe Pena
f9bb99055e - MFH: Fixed build (removed trailing comma) patch by Seiji Masugata <s.masugata at digicom.dnp.co.jp> 2009-06-16 14:33:33 +00:00
Arnaud Le Blanc
5c5dcf5e7a MFH: Fixed bug #48336 (ReflectionProperty::getDeclaringClass() does not
work with redeclared property)
(patch by Markus dot Lidel at shadowconnect dot com)
2009-05-21 16:01:37 +00:00
Felipe Pena
9fa1e2d8a8 - MFH: Fixed bug #47254 (Wrong Reflection for extends class) 2009-04-27 19:48:45 +00:00
Sebastian Bergmann
03e48b1535 MFH: Fix issue reported by Roman Borschel. 2009-04-04 14:36:23 +00:00
Ilia Alshanetsky
c1effd8c7a Block unused function 2009-04-02 21:30:09 +00:00
Christian Seiler
63ee3c98a8 Fixed regression of bug #46205, thanks to felipe for pointing this out. 2009-02-01 15:06:19 +00:00
Christian Seiler
c6d89bd4a8 [DOC] Remove $this support in closures for PHP 5.3 beta 1
- Implementation notes here:
  http://wiki.php.net/rfc/closures/removal-of-this
2009-01-26 22:54:34 +00:00
Felipe Pena
15851cd771 MFH:
- New parameter parsing
- Removed METHOD_NOTSTATIC_NUMPARAMS
2009-01-07 22:40:17 +00:00
Marcus Boerger
7c8c0414e1 - MFH Minor corrections and a new test 2009-01-03 20:41:01 +00:00
Marcus Boerger
4ffc3235e3 - MFH Show closure's bound as static parameter 2009-01-03 20:04:22 +00:00
Marcus Boerger
12df96e0de MFH
- Add ReflectionFunctionAbstract::getClosureThis()
[DOC]
# Returns the this pointer bound to the closure is the relection object
# points to closure. Since not all closures have a bound this, the method
# cannot be used to differentiate between normal functions/methods and
# closures. Instead ReflectionFunctionAbstract::isClosure() has to be used.
2009-01-03 19:08:47 +00:00
Marcus Boerger
7ca830742e - MFH Improved closure support 2009-01-03 14:20:22 +00:00
Marcus Boerger
4490ca3104 - MFH Add minimalistic closure support 2009-01-03 12:39:27 +00:00
Marcus Boerger
88ca8e7279 - Use Revision instead of Id tag for version 2008-12-31 14:36:27 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Sebastian Bergmann
2f49305bc8 MFH: Fix #46718: ReflectionProperty::setValue() and ReflectionProperty::setAccessible(). 2008-11-29 15:58:54 +00:00
Dmitry Stogov
7d4fd3fd38 Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:01:23 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Hannes Magnusson
dd9e9f26e2 MFH: Interfaces extend other interfaces, not implement 2008-11-14 19:22:43 +00:00
Marcus Boerger
7126de4912 - Next step in namespaces, using / as namespace separator. 2008-11-04 15:58:55 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Felipe Pena
b9c03aa4a5 - MFH: Fixed bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property) 2008-10-29 12:56:29 +00:00
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Dmitry Stogov
f656c6fc70 Fixed bug #46205 (Closure - Memory leaks when ReflectionException is thrown) 2008-10-01 07:30:31 +00:00
Felipe Pena
9d5ab6e54f - MFH: Removed unused arguments 2008-08-22 15:54:21 +00:00
Christian Seiler
066ea4f66c MFH: Fixed segfaults (tests added) 2008-08-11 22:31:22 +00:00
Marcus Boerger
6d083e2c39 - Cleanup 2008-08-11 19:35:00 +00:00
Felipe Pena
301af6d4a9 - MFH: has_property check 2008-08-11 13:56:24 +00:00
Felipe Pena
e82568d9e4 - Fix build (ZTS) 2008-08-11 12:48:22 +00:00
Marcus Boerger
05d896cce9 - MFH Closure/Reflection integration (original idea by Christian Seiler) 2008-08-11 12:43:21 +00:00