static int spl_filesystem_dir_read ( spl_filesystem_object * intern TSRMLS_DC ) {
 if ( ! intern -> u . dir . dirp || ! php_stream_readdir ( intern -> u . dir . dirp , & intern -> u . dir . entry ) ) {
 intern -> u . dir . entry . d_name [ 0 ] = '\0' ;
 return 0 ;
 }
 else {
 return 1 ;
 }
 }
static int spl_filesystem_dir_read ( spl_filesystem_object * intern TSRMLS_DC ) {
 if ( ! intern -> u . dir . dirp || ! php_stream_readdir ( intern -> u . dir . dirp , & intern -> u . dir . entry ) ) {
 intern -> u . dir . entry . d_name [ 0 ] = '\0' ;
 return 0 ;
 }
 else {
 return 1 ;
 }
 }