Commit Graph

291 Commits

Author SHA1 Message Date
Marcus Boerger
233a322f1e - Fix ReflectionObject::getProperties() + dyn properties 2006-06-24 18:53:51 +00:00
Hannes Magnusson
d6486b8116 Only display visibility for methods 2006-06-11 23:46:53 +00:00
Hannes Magnusson
6d1b43df02 Fixed bug #37764
- Created new abstract class, ReflectionFunctionAbstract implementing Reflector
- Moved all methods from ReflectionFunction (except export, invoke & invokeArgs)
- ReflectionFunction now inherits everything from ReflectionFunctionAbstract
    and implements its own export, invoke & invokeArgs methods
- ReflectionMethod now extends ReflectionFunctionAbstract and implements
    its own export, invoke & invokeArgs methods.
- Removed stdClass typehint from ReflectionClass::isInstance
- Removed stdClass typehint from ReflectionClass::set/getValue
2006-06-10 00:28:28 +00:00
Marcus Boerger
c100b2837f - Add arginfo (hannes) 2006-06-07 22:39:00 +00:00
Marcus Boerger
7b2b67770e - Add ReflectionClass::getInterfaceNames() 2006-06-07 09:11:58 +00:00
Marcus Boerger
9b70699617 - Use engine call to register interfaces (steph) 2006-06-04 10:11:48 +00:00
Antony Dovgal
8c04c51f9b ignore my previous fix, it was wrong =) 2006-06-01 14:31:02 +00:00
Antony Dovgal
890b19a709 no need to fetch trsm_ls when it's already available 2006-06-01 12:25:32 +00:00
Antony Dovgal
d254845aea no "native strings" in Unicode mode anymore 2006-04-22 23:50:29 +00:00
Antony Dovgal
6a53a49c8b MF51: 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)
2006-03-29 15:08:52 +00:00
Marcus Boerger
9eebea0a45 - Fix tests 2006-03-13 22:59:36 +00:00
Marcus Boerger
946c955ce7 - Fix ReflectionParameter
. Reintroduce getClass()
  . Change getDeclaringClass() to return what it suggests
  . Add getDeclaringFunction()
  . Add getPosition()
# This also fixes Bug #36687 ReflectionParameter::getDeclaringClass returns
# wrong result
2006-03-12 15:34:46 +00:00
Marcus Boerger
352d4a6d8c - Prefix test names
- Add missing skipif
2006-03-12 12:11:22 +00:00
Rasmus Lerdorf
b83d7e3151 stray text 2006-03-06 23:27:26 +00:00
Marcus Boerger
1050956ad1 - Proto fixes 2006-03-06 09:47:03 +00:00
Marcus Boerger
4fb5bc4b6e - Make Derick happy for the moment 2006-02-28 18:26:24 +00:00
Marcus Boerger
257a95f69f - deprecated belongs in the flag area, not in the keyword area 2006-02-25 18:05:16 +00:00
Johannes Schlüter
0f88ee56d0 - Fix description 2006-02-24 23:25:39 +00:00
Johannes Schlüter
e0053b2536 - We need %v here 2006-02-24 23:10:53 +00:00
Johannes Schlüter
cea8dd887b - Fix #29986 (Class constants won't work with predefined constants when
using ReflectionClass)
2006-02-24 23:08:36 +00:00
Johannes Schlüter
4ad7d57a97 - deprecated not static 2006-02-24 13:44:46 +00:00
Marcus Boerger
90c428a6a0 - Fix warning 2006-02-24 13:37:20 +00:00
Marcus Boerger
7dfafcbb84 - Functions can be deprecated too
- Add missing constant
2006-02-24 13:13:55 +00:00
Ilia Alshanetsky
71a4f39d7b MFB51: Added test for bug #36434 2006-02-22 15:45:45 +00:00
Johannes Schlüter
f0331d8c12 - Print deprecation info on reflection export 2006-02-21 21:42:54 +00:00
Sebastian Bergmann
50ccc82261 Fix whitespace. 2006-02-21 21:38:28 +00:00
Sebastian Bergmann
865eaa67b5 Add ReflectionMethod::isDeprecated(). Patch reviewed by Marcus Börger <helly@php.net>. 2006-02-21 20:23:10 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Marcus Boerger
416f3ef160 - Ansi compliance issue found by rob 2006-02-21 09:12:32 +00:00
Marcus Boerger
86f70099d0 - Fix text expectations 2006-02-21 00:49:51 +00:00
Marcus Boerger
37f033e0f7 - Fix mem issue in unicode mode (seems to be a problem in different api behavior) 2006-02-21 00:43:33 +00:00
Marcus Boerger
3ac5297d8b - Add ReflectionProperty::getDefaultValue() 2006-02-21 00:37:39 +00:00
Johannes Schlüter
6e9026d6c8 - Rename reflection constants to fix parser conflicts 2006-02-20 23:31:29 +00:00
Marcus Boerger
fc21f78226 - Show dependencies in dump's too 2006-02-20 23:26:39 +00:00
Marcus Boerger
0184485812 - Add ReflectionExtension::getDependencies() to retrieve all dependencies
of an extension as associative array "ModuleNeme" > "Relation"
2006-02-20 23:01:27 +00:00
Ilia Alshanetsky
3fa4bf210f MFB51: Fixed bug #36434 (Improper resolution of declaring class name of an
inherited property).
2006-02-20 15:28:15 +00:00
Dmitry Stogov
9528c37906 Fixed SIGSEGV in unicode mode 2006-02-20 11:15:02 +00:00
Dmitry Stogov
5e0b8cdb94 Fixed test files 2006-02-20 09:45:00 +00:00
Marcus Boerger
e936de9d1b - Fix naming inconsistency reported by sebastian 2006-02-18 18:05:46 +00:00
Antony Dovgal
2c24249ccc add test for bug #36337 2006-02-14 09:46:45 +00:00
Ilia Alshanetsky
eaacf0bb2f MFB51: Fixed bug #36337 (ReflectionProperty fails to return correct visibility). 2006-02-13 14:49:54 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Ilia Alshanetsky
8af39b1461 MFB51: Added test for bug #36308 2006-02-09 18:18:42 +00:00
Ilia Alshanetsky
0e61422e6c MFB51: Fixed bug #36308 (ReflectionProperty::getDocComment() does not reflect
extended class commentary).
2006-02-08 00:37:31 +00:00
Michael Wallner
43550c7f4e - fix ReflectionClass::getInterfaces() 2006-02-06 20:11:56 +00:00
Marcus Boerger
0e42375ded - Implemented #36141 Add ReflectionClass::newInstanceArgs($args) 2006-01-24 20:19:49 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Antony Dovgal
9e23794cb8 MFB: fix typo 2005-12-18 21:17:42 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00