Antony Dovgal
59b8592c8c
fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Marcus Boerger
0add197ec8
- MFH:
...
- Fix ReflectionParameter
. Reintroduce getClass()
. Change getDeclaringClass() to return what it suggests
. (inactive but tested) Add getDeclaringFunction()
. (inactive but tested) Add getPosition()
- Fix tests accordingly
# This also fixes Bug #36687 ReflectionParameter::getDeclaringClass returns
# wrong result
2006-03-12 17:22:34 +00:00
Rasmus Lerdorf
3563191049
stray text
2006-03-06 23:26:28 +00:00
Marcus Boerger
e795f8f427
- MFH Proto fixes
2006-03-06 09:50:44 +00:00
Marcus Boerger
c4b81d8720
- Fix warning
2006-02-28 02:22:57 +00:00
Marcus Boerger
bf213a2c7b
- Add ReflectionExtension::getDependencies()
2006-02-25 21:17:18 +00:00
Marcus Boerger
941b0651dc
- MFH: Function deprecation flag
2006-02-25 18:25:45 +00:00
Johannes Schlüter
027abfd702
- MFH: Fix #29986 (Class constants won't work with predefined constants when
...
using ReflectionClass)
2006-02-24 23:09:22 +00:00
Johannes Schlüter
c6cb1598be
- MFH: Rename reflection constants to fix parser conflicts
2006-02-20 23:33:32 +00:00
Ilia Alshanetsky
4ea898b79f
Fixed bug #36434 (Improper resolution of declaring class name of an
...
inherited property).
2006-02-20 15:27:45 +00:00
Marcus Boerger
afd8f0b608
- MFH Fix naming inconsistency (providing old name as alias)
2006-02-18 18:14:45 +00:00
Ilia Alshanetsky
1e05eec591
Fixed bug #36337 (ReflectionProperty fails to return correct visibility).
2006-02-13 14:49:26 +00:00
Ilia Alshanetsky
0a6b074034
Fixed bug #36308 (ReflectionProperty::getDocComment() does not reflect
...
extended class commentary).
2006-02-08 00:36:57 +00:00
Michael Wallner
beea63529c
MFH: fix ReflectionClass::getInterfaces()
2006-02-06 20:12:48 +00:00
Antony Dovgal
b22ab5b5d3
fix printf-style formats
2006-01-30 21:14:54 +00:00
Marcus Boerger
cb4bb6e389
- MFH Bug #36141 Add ReflectionClass::newInstanceArgs($args)
2006-01-25 22:03:54 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Antony Dovgal
8aedeb8513
tix fypo
2005-12-18 21:17:07 +00:00
Marcus Boerger
af1d83d783
- Fix MFH (oversight problem)
2005-12-11 12:37:39 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Dmitry Stogov
8768ab94b3
Fixed bug #34729 (Crash in ZTS mode under Apache)
2005-12-01 11:48:17 +00:00
Marcus Boerger
7cb0480d04
- Moved reflection into its own extension
2005-11-30 21:53:20 +00:00
Marcus Boerger
c21ced1ec9
- Not in this branch
2005-11-17 22:35:27 +00:00
Dmitry Stogov
64931b62cc
Allow recursive calls to __get/__set for different properties
2005-11-15 13:35:23 +00:00
Dmitry Stogov
863bf8a574
Fixed bug #29268 (__autoload() not called with Reflection->getClass())
2005-10-21 08:03:28 +00:00
Antony Dovgal
5fdeb391f3
MFH: fix copy/paste typo
2005-10-20 16:47:18 +00:00
Marcus Boerger
dec65f584b
- MFH ReflectionClass::isInstantiable and abstract classes
2005-10-06 22:46:33 +00:00
Antony Dovgal
21e809b7be
MFH: check class_entry of this_ptr in Reflection API
2005-09-16 20:21:46 +00:00
Antony Dovgal
f43767b249
fix #34505 (possible memory corruption when unmangling properties with empty names)
...
1st part
2005-09-16 17:05:09 +00:00
Dmitry Stogov
248345d920
Support for class constants and static members for internal classes
2005-09-01 10:05:32 +00:00
Dmitry Stogov
7230be4951
Fixed possible memory leak
2005-08-30 07:22:23 +00:00
Dmitry Stogov
976edd47e2
Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault)
2005-08-17 11:54:34 +00:00
Antony Dovgal
565c7708ca
fix #34078 (Reflection API problems in methods with boolean or null default values)
2005-08-11 21:16:20 +00:00
foobar
916815b779
Bump up the year
2005-08-03 13:30:58 +00:00
Dmitry Stogov
345e0255b5
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods)
2005-07-07 16:07:09 +00:00
Ilia Alshanetsky
e656b82956
Fixed memory leak.
...
# Found by valgrind w/o zend-mm being used.
2005-06-21 14:05:15 +00:00
Marcus Boerger
f554eba8f3
- Fix bug #33389 by fixing copying
2005-06-20 01:37:48 +00:00
Marcus Boerger
758503e26f
- Show true/flase
2005-06-20 01:08:57 +00:00
Marcus Boerger
7a7cda7a4c
- Internal functions/methods can now return by reference
2005-06-16 23:02:23 +00:00
Dmitry Stogov
e6dcba6052
Fixed bug #33312 (ReflectionParameter methods do not work correctly)
2005-06-13 07:55:08 +00:00
Dmitry Stogov
26c3944d9c
Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor
2005-06-10 10:22:36 +00:00
Stanislav Malyshev
2cb52151ac
MF50: fix #29689 and more private property problems
2005-06-09 17:20:44 +00:00
Dmitry Stogov
9cf513dfea
Fixed ReflectionClass::setStaticPropertyValue()
2005-06-08 17:08:06 +00:00
Dmitry Stogov
1a72341328
Added array type hinting. (This patch requires full re-make)
2005-05-26 13:46:17 +00:00
Marcus Boerger
c1e480d46e
- Make ReflectionObject::hasProperty() recognize dynamically added props
2005-05-12 21:25:42 +00:00
Sebastian Bergmann
11a91f04b2
Correct grammar.
2005-04-25 05:13:36 +00:00
Marcus Boerger
67a226d910
- Add ReflectionProperty::getDocComment()
2005-04-19 22:04:59 +00:00
Marcus Boerger
86ac9559be
- Fix by Tim
2005-03-06 22:15:35 +00:00
Marcus Boerger
c4bc32ff7b
- Add two new methods
...
- Fix signature, no need to cast it
2005-02-27 22:21:17 +00:00
Derick Rethans
30d9fd6bba
- Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true)
...
(Patch by Antony Dogval)
2005-02-23 12:20:04 +00:00
Marcus Boerger
a57b6bad69
- Be more gracious in reflection API
2005-02-13 23:04:49 +00:00
Marcus Boerger
0bb81ce1d6
- Add ReclectionClass:hasProperty(), ReflectionClass::hasConstant()
...
to complete api (johannes@php.net )
2005-01-31 22:56:01 +00:00
Marcus Boerger
1d5c13bdad
- Fix #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
2005-01-22 12:23:01 +00:00
Marcus Boerger
7be33a225e
- Need to unmangle the class name here
2004-12-27 15:13:26 +00:00
Marcus Boerger
03af7c8abc
- More proto/error message fixes
2004-12-27 13:32:22 +00:00
Marcus Boerger
4b80deed8e
- Small fixlet (by Tony)
2004-12-27 11:41:45 +00:00
Marcus Boerger
8c7bd30a7b
- Add ReflectionClass::hasMethod() (thanks to Johannes S.)
2004-12-25 16:27:27 +00:00
Marcus Boerger
520097b065
- Fix Bug #30856 (ReflectionClass::getStaticProperties segfaults)
2004-11-24 19:56:54 +00:00
Marcus Boerger
95ff205e6c
- Bugix #30783 : Apache crash when using ReflectionFunction::getStaticVariables()
2004-11-14 18:01:44 +00:00
Marcus Boerger
fcbd8c4f99
- Trying to invoke function not methot here
2004-11-03 21:18:44 +00:00
Marcus Boerger
63b288c464
- Fix invokeargs() with static methods
2004-11-03 21:11:48 +00:00
Marcus Boerger
41b87ab486
- Add ReflectionFunction::invokeArgs(array)
...
- Add ReflectionMethod::invokeArgs(obj, array)
2004-10-31 15:30:53 +00:00
Sebastian Bergmann
e1a941b486
Invokation -> Invocation
2004-10-31 10:19:53 +00:00
Marcus Boerger
9d7cba9db0
- Be consistent and use names as keys (found by johannes)
2004-10-30 19:53:25 +00:00
Marcus Boerger
8bf02ee681
- Fix protos
2004-10-30 10:18:10 +00:00
Marcus Boerger
ca6558a406
- Fix Bug #30344
2004-10-06 21:23:18 +00:00
Marcus Boerger
b907755e3c
- publish reflection_class_factory() as zend_reflection_class_factory()
2004-09-28 19:06:15 +00:00
Marcus Boerger
3fec3a916b
- Make internally used properties read-only and fix default properties
2004-09-27 22:24:57 +00:00
Marcus Boerger
8d587ce308
- Declare properties
2004-09-27 21:25:12 +00:00
Marcus Boerger
9291a7fa98
Fix Reflection_Class to ReflectionClass in docu/messages
2004-09-27 09:11:40 +00:00
Marcus Boerger
04fe8184f8
- Fix warnings
2004-09-27 09:01:18 +00:00
Marcus Boerger
e13eb1d6c0
Bugfix # 30209
2004-09-23 18:37:53 +00:00
Marcus Boerger
d0cfb7d3fd
Bugfix #30146 (ReflectionProperty->getValue() requires instance for static property)
2004-09-19 11:54:08 +00:00
Marcus Boerger
43d9ade92b
Bugfix #30148 (ReflectionMethod->isConstructor() fails for inherited classes)
2004-09-19 11:25:39 +00:00
Marcus Boerger
308081cd11
- Implement #29728 : Reflection API Feature: Default parameter value.
...
. ReflectionParameter::isDefaultValueAvailable()
. ReflectionParameter::getDefaultValue()
2004-08-19 07:42:02 +00:00
Marcus Boerger
5e1a0f4c0c
- Nedd to work on copy
2004-08-19 07:16:02 +00:00
Marcus Boerger
35fec42377
- Show default value of optional parameters of user defined functions.
2004-08-18 23:07:12 +00:00
Marcus Boerger
041d23d7b6
- Fix bug #29447 : Reflection API issues
2004-08-16 08:48:25 +00:00
Marcus Boerger
90e4fd0a0a
- Fix bug #29523 (ReflectionParameter::isOptional() is incorrect)
2004-08-04 22:47:56 +00:00
Marcus Boerger
84b90d6803
- Add methods to check parameter count
2004-08-02 23:10:29 +00:00
Marcus Boerger
7e914380c9
- Show visibility errors (try to fix #29354 )
2004-07-25 18:20:33 +00:00
Marcus Boerger
40bf10319b
- Add ReflectionParameter::isOptional() to test whether a parameter is
...
optional and also show this information in export.
2004-07-25 07:06:53 +00:00
Marcus Boerger
446cc107b8
- Fixed bug 28895 again (long live the dead)
2004-07-20 18:22:31 +00:00
Sebastian Bergmann
fb3c30574e
Fix prototypes: Reflection_* -> Reflection*.
2004-07-19 19:17:32 +00:00
Sebastian Bergmann
045d395d4a
Make ReflectionClass::getMethod() and ReflectionClass::getProperty() raise an ReflectionException instead of returning NULL on failure.
2004-07-19 19:14:10 +00:00
Sebastian Bergmann
32e125e2b8
Do not use contracted forms.
2004-07-19 19:02:11 +00:00
Sebastian Bergmann
f0903895c1
Reflection_* -> Reflection*. Patch by Timm Friebe.
2004-06-19 16:52:04 +00:00
Marcus Boerger
4fec06587b
#28789 : ReflectionProperty getValue() fails on public static members
2004-06-15 20:39:49 +00:00
Marcus Boerger
eb0cb6f6ed
Small code layout change
2004-06-10 12:11:16 +00:00
Marcus Boerger
e8e4ff0aa1
Bugfix #28699 : Reflection api bugs
2004-06-10 11:28:29 +00:00
Marcus Boerger
4213153365
Fix Bug #28694 ReflectionExtension::getFunctions() crashes PHP
2004-06-09 19:25:42 +00:00
Marcus Boerger
9b8eee74d9
Refcount must not be set separatley again.
2004-05-31 21:49:52 +00:00
Marcus Boerger
20b60f49d9
Add missing initialization
2004-05-31 21:46:00 +00:00
Marcus Boerger
21315c08b7
Add missing initialization
2004-05-31 21:43:43 +00:00
Andi Gutmans
e780c42f21
- Fix prototypes
2004-04-27 15:18:33 +00:00
Marcus Boerger
54e5ad6b6e
Fix prototype
2004-04-26 18:54:18 +00:00
Marcus Boerger
286f75c891
Show number of classes
2004-04-25 11:22:56 +00:00
Marcus Boerger
be85c9049b
show ini entries and classes for extensions.
2004-04-19 18:02:49 +00:00
Marcus Boerger
8ccfca0c41
Bugfix #27519 Reflection_Function constructor crashes with non-existant
...
function's name
2004-04-08 20:37:06 +00:00
Andi Gutmans
1c5ea0d7df
- Fix typo
2004-03-31 13:11:19 +00:00
Marcus Boerger
b4bc994680
TSRM fix
2004-03-30 18:39:53 +00:00
Marcus Boerger
5230321731
- Fix Reflection class names
...
- Add ability to get the extension an internal class was defined in
# This is the patch Andi and me used to search for underscrores...
2004-03-30 18:36:53 +00:00
Marcus Boerger
83675b6622
Fix memleak found by Timm
2004-03-28 13:55:06 +00:00
Marcus Boerger
50ee116f08
Clearify the different method/class flags (as discussed with Andi).
2004-03-09 16:38:37 +00:00
Marcus Boerger
5208baee49
Add another missing conversion
2004-03-08 00:19:43 +00:00
Andi Gutmans
161ed69721
- Fix leak
2004-03-01 17:43:57 +00:00
Andi Gutmans
0f1382e126
- Fix crash in reflection API (pierre)
2004-03-01 15:19:38 +00:00
Andi Gutmans
37ddf8e922
- Apply fixes by Timm.
2004-02-29 18:31:29 +00:00
Marcus Boerger
3e1f3b2124
Fix problem with Reflection_Property (patch from Timm slightly modified).
2004-02-26 01:06:18 +00:00
Sebastian Bergmann
0cfb59fce4
Proto fixes.
2004-02-25 08:58:56 +00:00
Zeev Suraski
00ed3bad29
Centralize exceptions code in zend_exceptions.[ch].
...
Remove zend_default_classes.h (use zend_exceptions.h instead)
NOTE: This currently breaks the build, fixes to php-src and pecl coming
soon
2004-02-12 10:38:14 +00:00
Zeev Suraski
fde9bac476
Fix crash (patch by Rob Richards)
2004-02-11 12:35:24 +00:00
Marcus Boerger
63c964c40f
Fix reflection
2004-02-04 22:19:00 +00:00
Zeev Suraski
f5f7d569a0
Change destructor implementation (details will follow on internals@)
2004-02-04 09:56:20 +00:00
Marcus Boerger
46be4c2626
Throw an exception in case a reflection object cannot be found and do not
...
override the exception from constructors in static method calls.
2004-01-31 12:20:20 +00:00
Marcus Boerger
0a210d7976
Fix some casing issues
2004-01-18 10:45:36 +00:00
foobar
b6b3443d0a
- Fixed bug #26640 (__autoload() not invoked by Reflection classes)
...
# Also removed double call of reflection_register_implement() on
# reflection_extension_ptr.
# Fixed also case-insensitive lookup of property names,
# now Reflection_Property('Classname', 'FooBar'); works too.
2004-01-16 21:11:58 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Derick Rethans
6923a16c26
- Fixed var_export() to show public, protected and private modifiers properly.
...
- Exported (un)mangle_property_name.
2004-01-03 13:51:02 +00:00
Marcus Boerger
b58d371927
Fixed bug #26695 (Reflection API does not recognize mixed-case class hints)
...
# The exception part
2003-12-22 20:03:01 +00:00
Dmitry Stogov
2d9281352b
Memory corruptions were fixed in zend_str_tolower_copy()
2003-12-15 07:17:27 +00:00
Andi Gutmans
d344648b07
- Fix __autoload() to preserve class case.
...
- Heads up, this patch might break stuff so please let me know if you
- bump into any problems.
2003-11-24 18:13:29 +00:00
Andi Gutmans
ceaddf238b
- Allocation optimizations by Timm Friebe
2003-11-23 12:55:22 +00:00
Marcus Boerger
e72339284f
Add method reflection_class::implementsInterface()
...
Allow string & reflection_class in isSubclassOf()
2003-11-08 21:41:42 +00:00
Marcus Boerger
ab6b1adf0b
Fix reflection_class::isSubclassOf()
2003-11-08 21:02:21 +00:00
Marcus Boerger
da8ce17f7a
This forces a better error message for non working clone calls.
2003-10-25 19:28:31 +00:00
Marcus Boerger
fe3db4c7e9
You shall not clone reflection_xx instances
2003-10-25 19:06:35 +00:00
Marcus Boerger
641a55a4dd
Show if a class/object is iterateable
2003-10-17 17:51:01 +00:00
Marcus Boerger
43a948379a
Fix showing final/abstract for classes
2003-10-17 08:15:48 +00:00
Marcus Boerger
0266efb8b5
Add public array Reflection_Class::getDefaultProperties()
2003-09-20 14:22:48 +00:00
Marcus Boerger
5b3bb16530
Go with studlyCaps
2003-09-18 12:09:55 +00:00
Marcus Boerger
f8a376fe8e
Change tostring() into __toString() to match method name used in casting.
2003-09-18 11:55:57 +00:00
Marcus Boerger
d2088841a4
- Make it clear whether it is an interface or a class
...
- Fix static properties
2003-09-16 19:31:45 +00:00
Marcus Boerger
a986b3f6a4
Add missing newline if no static methods are available
2003-09-06 13:18:12 +00:00
Marcus Boerger
10ea007e39
- Internal functions shall be static
...
- Fix more nesting
2003-09-06 13:11:27 +00:00
Marcus Boerger
35529e1964
Fix logic
2003-09-06 13:02:16 +00:00
Marcus Boerger
c31fc7771a
- Fix CS: {{{ / }}}
...
- Fix static reflection_*::export()
- Add class reflection_object which allows to show dynamic properties
2003-09-06 12:52:40 +00:00
Marcus Boerger
f5b1114449
Use %s where it makes more sense
2003-09-06 10:59:07 +00:00
Marcus Boerger
79a507e4eb
Simplify reflection_property::__constructor() and fix property factory
2003-09-05 14:48:55 +00:00
Marcus Boerger
9a39cd5501
- Don't use resorved words as variable names.
...
- Improve several exception messages.
- Fix Reflection_Property::_construct() / getDeclaringClass()
# The above does not imply that properties are fixed when returned
# by other reflection api methods.
2003-09-05 14:35:31 +00:00
Marcus Boerger
34990374e1
Fix reflection_api::__construct() (noticed by Andrey)
2003-09-05 12:14:03 +00:00
Marcus Boerger
4e7a782f3a
Add reflection_class::getstaticproerties()
2003-09-04 15:57:25 +00:00
Marcus Boerger
2f6e25da79
Clearly distinguish between Const, Static and Other members.
...
# Const and static props have more in common then static and dynamic/implicit.
2003-09-03 00:38:13 +00:00
Marcus Boerger
560d3ab36a
Use appropriate function for property name unmangling.
...
# Make Andrey happy
2003-09-02 14:46:02 +00:00
Marcus Boerger
7148cb9e73
Make these static as noticed by Andrey
2003-09-02 14:11:53 +00:00
Marcus Boerger
bd86aff005
These are implicit properties as denoted by the flag. Dynamic properties only
...
exist in one single object and currently reflection api is not capable of
showing those.
2003-09-02 13:12:47 +00:00
Marcus Boerger
bca0019d43
Fix initial buffer size
2003-09-01 21:14:09 +00:00
Marcus Boerger
2b19c5435e
Fix class handling of invoke
2003-09-01 21:11:38 +00:00
Marcus Boerger
bef3e13caf
Add missing '}'
2003-09-01 19:47:34 +00:00
Marcus Boerger
cbd08869f2
Add static reflector::export() and its implementations.
...
#
# This makes the main reflection use a lot easier.
#
2003-09-01 16:13:24 +00:00