Skip to content

Commit 7cb0480

Browse files
committed
- Moved reflection into its own extension
1 parent 16177d6 commit 7cb0480

File tree

7 files changed

+4363
-1
lines changed

7 files changed

+4363
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 200?, PHP 5.1.2
4+
- Moved reflection into its own extension. (Marcus)
5+
- Added reflection constants as class constants. (Johannes)
46
- Added --enable-gcov configure option to enable C-level code coverage.
57
(John, Jani)
68
- Added missing support for 'B' format identifier to date() function. (Ilia)

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ PHP_ADD_SOURCES(Zend, \
13041304

13051305
if test -r "$abs_srcdir/Zend/zend_objects.c"; then
13061306
PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c zend_mm.c \
1307-
zend_default_classes.c zend_reflection_api.c)
1307+
zend_default_classes.c)
13081308
fi
13091309

13101310
dnl Selectively disable optimization due to high RAM usage during

ext/reflection/CREDITS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Reflection
2+
Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter

ext/reflection/config.m4

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dnl $Id$
2+
dnl config.m4 for extension reflection
3+
4+
PHP_ARG_ENABLE(reflection, whether to enable reflection support,
5+
[ --disable-reflection Disable reflection support], yes, no)
6+
7+
if test "$PHP_REFLECTION" != "no"; then
8+
if test "$ext_shared" = "yes"; then
9+
AC_MSG_ERROR(Cannot build reflection as a shared module)
10+
fi
11+
AC_DEFINE(HAVE_REFLECTION, 1, [Whether Reflection is enabled])
12+
PHP_NEW_EXTENSION(reflection, php_reflection.c)
13+
fi

ext/reflection/config.w32

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// $Id$
2+
// vim:ft=javascript
3+
4+
ARG_ENABLE("reflection", "disable reflection support", "yes");
5+
6+
if (PHP_REFLECTION != "no") {
7+
EXTENSION("reflection", "php_reflection.c");
8+
}
9+

0 commit comments

Comments
 (0)