helly           Sun Feb 13 13:14:34 2005 EDT

  Modified files:              
    /php-src/ext/spl    php_spl.c 
  Log:
  - Drop unneccessary rinit/rshutown,mshutdown
  - Add protos
  
  
http://cvs.php.net/diff.php/php-src/ext/spl/php_spl.c?r1=1.38&r2=1.39&ty=u
Index: php-src/ext/spl/php_spl.c
diff -u php-src/ext/spl/php_spl.c:1.38 php-src/ext/spl/php_spl.c:1.39
--- php-src/ext/spl/php_spl.c:1.38      Tue Feb  8 15:42:47 2005
+++ php-src/ext/spl/php_spl.c   Sun Feb 13 13:14:34 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_spl.c,v 1.38 2005/02/08 20:42:47 helly Exp $ */
+/* $Id: php_spl.c,v 1.39 2005/02/13 18:14:34 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
        #include "config.h"
@@ -62,9 +62,9 @@
        "SPL",
        spl_functions,
        PHP_MINIT(spl),
-       PHP_MSHUTDOWN(spl),
-       PHP_RINIT(spl),
-       PHP_RSHUTDOWN(spl),
+       NULL,
+       NULL,
+       NULL,
        PHP_MINFO(spl),
        "0.2",
        STANDARD_MODULE_PROPERTIES
@@ -102,34 +102,8 @@
 }
 /* }}} */
 
-/* {{{ PHP_RINIT_FUNCTION(spl)
- */
-PHP_RINIT_FUNCTION(spl)
-{
-       return SUCCESS;
-}
-/* }}} */
-
-/* {{{ PHP_RSHUTDOWN_FUNCTION(spl)
- */
-PHP_RSHUTDOWN_FUNCTION(spl)
-{                      
-       return SUCCESS;
-}
-/* }}} */
-
-/* {{{ PHP_MSHUTDOWN_FUNCTION(spl)
- */
-PHP_MSHUTDOWN_FUNCTION(spl)
-{                      
-       SPL_DEBUG(fprintf(stderr, "%s\n", "Shutting down SPL");)
-
-       return SUCCESS;
-}
-/* }}} */
-
-/* {{{ class_parents
- */
+/* {{{ array class_parents(object instance)
+ Return an array containing the names of all parent classes */
 PHP_FUNCTION(class_parents)
 {
        zval *obj;
@@ -147,8 +121,8 @@
 }
 /* }}} */
 
-/* {{{ class_implements
- */
+/* {{{ proto array class_implements()
+ Return all classes and interfaces implemented by SPL */
 PHP_FUNCTION(class_implements)
 {
        zval *obj;
@@ -199,7 +173,8 @@
        SPL_ADD_CLASS(Subject, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(UnderflowException, z_list, sub, allow, ce_flags); \
 
-/* {{{ spl_classes */
+/* {{{ proto array spl_classes()
+ Return an array containing the names of all clsses and interfaces defined in 
SPL */
 PHP_FUNCTION(spl_classes)
 {
        array_init(return_value);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to