From: Antony Dovgal Date: Fri, 29 Sep 2006 12:18:54 +0000 (+0000) Subject: declare subclass after adding class constants to the parent X-Git-Tag: RELEASE_1_0_0RC1~1510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cefb8421f435ea56eedf805e8679a1a67f86fde8;p=php declare subclass after adding class constants to the parent --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 0a823b00aa..91decc9a85 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -2211,12 +2211,12 @@ PHP_MINIT_FUNCTION(spl_directory) REGISTER_SPL_IMPLEMENTS(SplFileObject, RecursiveIterator); REGISTER_SPL_IMPLEMENTS(SplFileObject, SeekableIterator); - REGISTER_SPL_SUB_CLASS_EX(SplTempFileObject, SplFileObject, spl_filesystem_object_new, spl_SplTempFileObject_functions); - REGISTER_SPL_CLASS_CONST_LONG(SplFileObject, "DROP_NEW_LINE", SPL_FILE_OBJECT_DROP_NEW_LINE); REGISTER_SPL_CLASS_CONST_LONG(SplFileObject, "READ_AHEAD", SPL_FILE_OBJECT_READ_AHEAD); REGISTER_SPL_CLASS_CONST_LONG(SplFileObject, "SKIP_EMPTY", SPL_FILE_OBJECT_SKIP_EMPTY); REGISTER_SPL_CLASS_CONST_LONG(SplFileObject, "READ_CSV", SPL_FILE_OBJECT_READ_CSV); + + REGISTER_SPL_SUB_CLASS_EX(SplTempFileObject, SplFileObject, spl_filesystem_object_new, spl_SplTempFileObject_functions); return SUCCESS; } /* }}} */