Lines Matching refs:stat_sb
441 static void phar_fancy_stat(zend_stat_t *stat_sb, int type, zval *return_value) in phar_fancy_stat() argument
452 if(stat_sb->st_uid==getuid()) { in phar_fancy_stat()
456 } else if(stat_sb->st_gid==getgid()) { in phar_fancy_stat()
469 if(stat_sb->st_gid==gids[i]) { in phar_fancy_stat()
483 RETURN_LONG((zend_long)stat_sb->st_mode); in phar_fancy_stat()
485 RETURN_LONG((zend_long)stat_sb->st_ino); in phar_fancy_stat()
487 RETURN_LONG((zend_long)stat_sb->st_size); in phar_fancy_stat()
489 RETURN_LONG((zend_long)stat_sb->st_uid); in phar_fancy_stat()
491 RETURN_LONG((zend_long)stat_sb->st_gid); in phar_fancy_stat()
493 RETURN_LONG((zend_long)stat_sb->st_atime); in phar_fancy_stat()
495 RETURN_LONG((zend_long)stat_sb->st_mtime); in phar_fancy_stat()
497 RETURN_LONG((zend_long)stat_sb->st_ctime); in phar_fancy_stat()
499 if (S_ISLNK(stat_sb->st_mode)) { in phar_fancy_stat()
502 switch(stat_sb->st_mode & S_IFMT) { in phar_fancy_stat()
506 php_error_docref(NULL, E_NOTICE, "Unknown file type (%u)", stat_sb->st_mode & S_IFMT); in phar_fancy_stat()
509 RETURN_BOOL((stat_sb->st_mode & wmask) != 0); in phar_fancy_stat()
511 RETURN_BOOL((stat_sb->st_mode&rmask)!=0); in phar_fancy_stat()
513 RETURN_BOOL((stat_sb->st_mode&xmask)!=0 && !S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
515 RETURN_BOOL(S_ISREG(stat_sb->st_mode)); in phar_fancy_stat()
517 RETURN_BOOL(S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
519 RETURN_BOOL(S_ISLNK(stat_sb->st_mode)); in phar_fancy_stat()
527 ZVAL_LONG(&stat_dev, stat_sb->st_dev); in phar_fancy_stat()
528 ZVAL_LONG(&stat_ino, stat_sb->st_ino); in phar_fancy_stat()
529 ZVAL_LONG(&stat_mode, stat_sb->st_mode); in phar_fancy_stat()
530 ZVAL_LONG(&stat_nlink, stat_sb->st_nlink); in phar_fancy_stat()
531 ZVAL_LONG(&stat_uid, stat_sb->st_uid); in phar_fancy_stat()
532 ZVAL_LONG(&stat_gid, stat_sb->st_gid); in phar_fancy_stat()
534 ZVAL_LONG(&stat_rdev, stat_sb->st_rdev); in phar_fancy_stat()
538 ZVAL_LONG(&stat_size, stat_sb->st_size); in phar_fancy_stat()
539 ZVAL_LONG(&stat_atime, stat_sb->st_atime); in phar_fancy_stat()
540 ZVAL_LONG(&stat_mtime, stat_sb->st_mtime); in phar_fancy_stat()
541 ZVAL_LONG(&stat_ctime, stat_sb->st_ctime); in phar_fancy_stat()
543 ZVAL_LONG(&stat_blksize, stat_sb->st_blksize); in phar_fancy_stat()
548 ZVAL_LONG(&stat_blocks, stat_sb->st_blocks); in phar_fancy_stat()