/PHP-7.3/ext/fileinfo/ |
H A D | fileinfo.c | 547 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type() 562 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
|
H A D | libmagic.patch | 973 + if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { 2529 - ret = lstat(fn, sb); 2545 - sb->st_mode = S_IFBLK; 2574 + memcpy(sb, &ssb.sb, sizeof(struct stat)); 2654 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), 2682 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), 3456 - const struct stat *sb) 3500 - struct stat sb; 3501 + zend_stat_t sb; 3539 - if (fstat(fd, &sb) == 0 && S_ISFIFO(sb.st_mode)) [all …]
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 922 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort() local 923 if (sa == sb) in apprentice_sort() 925 else if (sa > sb) in apprentice_sort() 2982 if (st.sb.st_mode & S_IFDIR) { in apprentice_map() 3002 if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { in apprentice_map() 3004 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map() 3008 map->len = (size_t)st.sb.st_size; in apprentice_map() 3013 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map() 3053 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 3054 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() [all …]
|
H A D | fsmagic.c | 111 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic() 113 if (php_sys_stat(fn, sb) != 0) { in file_fsmagic() 125 if (sb->st_mode & S_ISUID) in file_fsmagic() 130 if (sb->st_mode & S_ISGID) in file_fsmagic() 135 if (sb->st_mode & S_ISVTX) in file_fsmagic() 141 switch (sb->st_mode & S_IFMT) { in file_fsmagic() 161 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), in file_fsmagic() 162 dv_subunit(sb->st_rdev)) == -1) in file_fsmagic() 166 COMMA, (long)major(sb->st_rdev), in file_fsmagic() 167 (long)minor(sb->st_rdev)) == -1) in file_fsmagic() [all …]
|
H A D | magic.c | 162 const zend_stat_t *sb) in close_and_restore() argument 178 utsbuf[0].tv_sec = sb->st_atime; in close_and_restore() 179 utsbuf[1].tv_sec = sb->st_mtime; in close_and_restore() 186 utbuf.actime = sb->st_atime; in close_and_restore() 187 utbuf.modtime = sb->st_mtime; in close_and_restore() 229 zend_stat_t sb; in file_or_stream() local 248 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream() 266 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
|
/PHP-7.3/ext/fileinfo/tests/ |
H A D | magic | 9240 >0 ubyte 0xfd Linux RAID partition persistent sb
|
H A D | magic私はガラスを食べられます | 9240 >0 ubyte 0xfd Linux RAID partition persistent sb
|
/PHP-7.3/ext/hash/tests/ |
H A D | fnv1a32.phpt | 237 array( 'axuETGoA{fFG"0&6G$4sb!_upS#[{5h^.^$c\'t%#[LK]\\Q', '8520630b' ),
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | regcomp.c | 5338 OptStr sb; /* boundary */ member 5829 clear_opt_exact(&opt->sb); in clear_node_opt_info() 5860 sb_reach = to->sb.reach_end; in concat_left_node_opt_info() 5866 if (add->sb.len > 0) { in concat_left_node_opt_info() 5868 concat_opt_exact(&to->sb, &add->sb, enc); in concat_left_node_opt_info() 5869 clear_opt_exact(&add->sb); in concat_left_node_opt_info() 5899 alt_merge_opt_exact(&to->sb, &add->sb, env); in alt_merge_node_opt_info() 5970 opt->sb.case_fold = 1; in optimize_nodes() 6070 if (xo.sb.len > 0) in optimize_nodes() 6135 if (xo.sb.len > 0) { in optimize_nodes() [all …]
|
/PHP-7.3/ext/mysqli/tests/ |
H A D | 026.phpt | 22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
|
/PHP-7.3/ext/opcache/ |
H A D | ZendAccelerator.c | 898 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp() 1010 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local 1022 ret = stream->ops->stat(stream, &sb); in zend_get_file_handle_timestamp() 1031 statbuf = sb.sb; in zend_get_file_handle_timestamp()
|
/PHP-7.3/ext/openssl/ |
H A D | openssl.c | 2615 zend_stat_t sb; in php_openssl_setup_verify() local 2628 if (VCWD_STAT(Z_STRVAL_P(item), &sb) == -1) { in php_openssl_setup_verify() 2633 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
|
/PHP-7.3/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 406 php_stream_statbuf sb; in odbc_stmt_param_hook() local 414 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook() 437 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
|
/PHP-7.3/ext/phar/ |
H A D | func_interceptors.c | 595 zend_stat_t sb = {0}; in phar_file_stat() local 647 sb.st_size = 0; in phar_file_stat() 648 sb.st_mode = 0777; in phar_file_stat() 687 sb.st_size = 0; in phar_file_stat() 720 sb.st_size = 0; in phar_file_stat() 734 sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); in phar_file_stat() 737 sb.st_nlink = 1; in phar_file_stat() 738 sb.st_rdev = -1; in phar_file_stat() 740 sb.st_dev = 0xc; in phar_file_stat() 746 sb.st_blksize = -1; in phar_file_stat() [all …]
|
H A D | phar.c | 1790 if (ssb.sb.st_mode & S_IFDIR) { 1845 if (ssb.sb.st_mode & S_IFDIR) { 1857 if (ssb.sb.st_mode & S_IFDIR) {
|
H A D | phar_object.c | 1677 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_build() 2615 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD() 3673 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_add_file() 4373 } else if (!(ssb.sb.st_mode & S_IFDIR)) { in PHP_METHOD()
|
H A D | stream.c | 495 ssb->sb.st_mtime = data->timestamp; in phar_dostat() 499 ssb->sb.st_size = 0; in phar_dostat() 507 ssb->sb.st_size = 0; in phar_dostat() 508 ssb->sb.st_mode = 0777; in phar_dostat() 515 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat() 518 ssb->sb.st_nlink = 1; in phar_dostat() 519 ssb->sb.st_rdev = -1; in phar_dostat() 521 ssb->sb.st_dev = 0xc; in phar_dostat() 524 ssb->sb.st_ino = data->inode; in phar_dostat() 527 ssb->sb.st_blksize = -1; in phar_dostat() [all …]
|
H A D | util.c | 219 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 229 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 232 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 1324 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir() 1332 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
|
/PHP-7.3/ext/session/ |
H A D | session.c | 1143 zend_stat_t sb; in last_modified() local 1148 if (VCWD_STAT(path, &sb) == -1) { in last_modified() 1154 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); in last_modified()
|
/PHP-7.3/ext/snmp/tests/ |
H A D | snmp2_set.phpt | 101 $z = snmp2_set($hostname, $communityWrite, array($oid1, $oid2), array('s','sb'), array($newvalue1, … 209 Warning: snmp2_set(): '%s': bogus type 'sb', should be single char, got 2 in %s on line %d
|
H A D | snmpset.phpt | 101 $z = snmpset($hostname, $communityWrite, array($oid1, $oid2), array('s','sb'), array($newvalue1, $n… 209 Warning: snmpset(): '%s': bogus type 'sb', should be single char, got 2 in %s on line %d
|
/PHP-7.3/ext/sqlite3/ |
H A D | sqlite3.c | 1209 ssb->sb.st_size = sqlite3_stream->size; in php_sqlite3_stream_stat()
|
/PHP-7.3/ext/standard/ |
H A D | file.c | 1587 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION() 1588 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION() 1589 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION() 1591 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION() 1592 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION() 1599 if ((int)stat_ssb.sb.st_rdev < 0) { in PHP_NAMED_FUNCTION() 1605 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION() 1720 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx() 1735 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx() 1739 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx() [all …]
|
H A D | filestat.c | 825 stat_sb = &ssb.sb; in php_stat() 828 if(ssb.sb.st_uid==getuid()) { in php_stat() 832 } else if(ssb.sb.st_gid==getgid()) { in php_stat() 845 if(ssb.sb.st_gid==gids[i]) { in php_stat() 872 RETURN_LONG((zend_long)ssb.sb.st_ino); in php_stat() 876 RETURN_LONG((zend_long)ssb.sb.st_uid); in php_stat() 886 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat() 889 switch(ssb.sb.st_mode & S_IFMT) { in php_stat() 908 RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); in php_stat() 910 RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); in php_stat() [all …]
|
H A D | ftp_fopen_wrapper.c | 805 ssb->sb.st_mode |= S_IFREG; in php_stream_ftp_url_stat() 825 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 874 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat() 878 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat() 879 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat() 880 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat() 881 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat() 882 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat() 884 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat() 885 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat() [all …]
|