"phar dir",
phar_dir_seek, /* seek */
NULL, /* cast */
- phar_dir_stat, /* stat */
+ NULL, /* stat */
NULL, /* set option */
};
}
/* }}} */
-/**
- * Stat a dir in a phar
- */
-static int phar_dir_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
-{
- phar_entry_data *data = (phar_entry_data *)stream->abstract;
-
- /* If ssb is NULL then someone is misbehaving */
- if (!ssb) {
- return -1;
- }
-
- phar_dostat(data->phar, data->internal_file, ssb, 0, data->phar->alias, data->phar->alias_len TSRMLS_CC);
- return 0;
-}
-/* }}} */
-
/**
* add an empty element with a char * key to a hash table, avoiding duplicates
*
var_dump(fseek($a, 1), ftell($a));
echo "fwrite on dir handle\n";
var_dump(fwrite($a, 'hi'));
+var_dump(fstat($a));
closedir($a);
?>
===DONE===
int(1)
fwrite on dir handle
int(0)
+bool(false)
===DONE===