helly           Sun Aug 10 11:05:15 2003 EDT

  Modified files:              
    /spl        spl_directory.c 
  Log:
  This is a void funtion
  
Index: spl/spl_directory.c
diff -u spl/spl_directory.c:1.5 spl/spl_directory.c:1.6
--- spl/spl_directory.c:1.5     Mon Aug  4 19:15:56 2003
+++ spl/spl_directory.c Sun Aug 10 11:05:14 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_directory.c,v 1.5 2003/08/04 23:15:56 helly Exp $ */
+/* $Id: spl_directory.c,v 1.6 2003/08/10 15:05:14 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -237,11 +237,8 @@
        zval *object = getThis();
        spl_dir_object *intern = (spl_dir_object*)zend_object_store_get_object(object 
TSRMLS_CC);
 
-       if (intern->dirp && php_stream_readdir(intern->dirp, &intern->entry)) {
-               RETURN_TRUE;
-       } else {
+       if (!intern->dirp || !php_stream_readdir(intern->dirp, &intern->entry)) {
                intern->entry.d_name[0] = '\0';
-               RETURN_FALSE;
        }
 }
 /* }}} */



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

Reply via email to