/PHP-5.5/ext/fileinfo/ |
H A D | fileinfo.c | 523 if (ssb.sb.st_mode & S_IFDIR) { 542 if (ssb.sb.st_mode & S_IFDIR) {
|
H A D | libmagic.patch | 622 + if (st.sb.st_size < 8) { 642 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { 1623 - ret = lstat(fn, sb); 1642 + memcpy(sb, &ssb.sb, sizeof(struct stat)); 1661 - if (sb->st_mode & S_ISUID) 1713 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), 1753 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), 2366 const struct stat *sb) 2413 struct stat sb; 2445 - if (fstat(fd, &sb) == 0 && S_ISFIFO(sb.st_mode)) [all …]
|
/PHP-5.5/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 784 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort() local 785 if (sa == sb) in apprentice_sort() 787 else if (sa > sb) in apprentice_sort() 2618 if (st.sb.st_mode & S_IFDIR) { in apprentice_map() 2643 if (st.sb.st_size < 8) { in apprentice_map() 2648 map->len = (size_t)st.sb.st_size; in apprentice_map() 2653 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map() 2693 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2694 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map() 2695 if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map() [all …]
|
H A D | fsmagic.c | 117 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic() 119 if (php_sys_stat(fn, sb) != 0) { in file_fsmagic() 131 if (sb->st_mode & S_ISUID) in file_fsmagic() 136 if (sb->st_mode & S_ISGID) in file_fsmagic() 141 if (sb->st_mode & S_ISVTX) in file_fsmagic() 147 switch (sb->st_mode & S_IFMT) { in file_fsmagic() 167 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), in file_fsmagic() 168 dv_subunit(sb->st_rdev)) == -1) in file_fsmagic() 172 COMMA, (long)major(sb->st_rdev), in file_fsmagic() 173 (long)minor(sb->st_rdev)) == -1) in file_fsmagic() [all …]
|
H A D | magic.c | 289 const struct stat *sb) in close_and_restore() argument 302 utsbuf[0].tv_sec = sb->st_atime; in close_and_restore() 303 utsbuf[1].tv_sec = sb->st_mtime; in close_and_restore() 310 utbuf.actime = sb->st_atime; in close_and_restore() 311 utbuf.modtime = sb->st_mtime; in close_and_restore() 353 struct stat sb; in file_or_stream() local 372 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream() 394 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream() 423 close_and_restore(ms, inname, 0, &sb); in file_or_stream()
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | 026.phpt | 22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
|
/PHP-5.5/ext/opcache/ |
H A D | ZendAccelerator.c | 673 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp() 789 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local 801 ret = stream->ops->stat(stream, &sb TSRMLS_CC); in zend_get_file_handle_timestamp() 810 statbuf = sb.sb; in zend_get_file_handle_timestamp()
|
/PHP-5.5/ext/openssl/ |
H A D | openssl.c | 1789 struct stat sb; in setup_verify() local 1796 if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) { in setup_verify() 1801 if ((sb.st_mode & S_IFREG) == S_IFREG) { in setup_verify()
|
/PHP-5.5/ext/pcre/pcrelib/testdata/ |
H A D | testinput1 | 2554 /a\sb/
|
H A D | testinput8 | 2880 /a\sb/
|
H A D | testoutput1 | 4124 /a\sb/
|
H A D | testoutput8 | 4603 /a\sb/
|
/PHP-5.5/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 394 php_stream_statbuf sb; in odbc_stmt_param_hook() local 402 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook() 425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
|
/PHP-5.5/ext/phar/ |
H A D | func_interceptors.c | 620 struct stat sb = {0}; in phar_file_stat() local 672 sb.st_size = 0; in phar_file_stat() 673 sb.st_mode = 0777; in phar_file_stat() 718 sb.st_size = 0; in phar_file_stat() 763 sb.st_size = 0; in phar_file_stat() 783 sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); in phar_file_stat() 786 sb.st_nlink = 1; in phar_file_stat() 787 sb.st_rdev = -1; in phar_file_stat() 789 sb.st_dev = 0xc; in phar_file_stat() 795 sb.st_blksize = -1; in phar_file_stat() [all …]
|
H A D | phar.c | 1762 if (ssb.sb.st_mode & S_IFDIR) { 1814 if (ssb.sb.st_mode & S_IFDIR) { 1826 if (ssb.sb.st_mode & S_IFDIR) {
|
H A D | phar_object.c | 2610 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD() 4352 } 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() 500 ssb->sb.st_size = 0; in phar_dostat() 514 ssb->sb.st_size = 0; in phar_dostat() 515 ssb->sb.st_mode = 0777; in phar_dostat() 528 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat() 531 ssb->sb.st_nlink = 1; in phar_dostat() 532 ssb->sb.st_rdev = -1; in phar_dostat() 534 ssb->sb.st_dev = 0xc; in phar_dostat() 537 ssb->sb.st_ino = data->inode; in phar_dostat() 540 ssb->sb.st_blksize = -1; in phar_dostat() [all …]
|
H A D | util.c | 228 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 238 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 241 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 1352 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir() 1360 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
|
/PHP-5.5/ext/session/ |
H A D | session.c | 1178 struct stat sb; 1183 if (VCWD_STAT(path, &sb) == -1) { 1189 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
|
/PHP-5.5/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 %s
|
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 %s
|
/PHP-5.5/ext/sqlite3/ |
H A D | sqlite3.c | 1199 ssb->sb.st_size = sqlite3_stream->size;
|
/PHP-5.5/ext/standard/ |
H A D | file.c | 1548 MAKE_LONG_ZVAL_INCREF(stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION() 1549 MAKE_LONG_ZVAL_INCREF(stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION() 1550 MAKE_LONG_ZVAL_INCREF(stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION() 1552 MAKE_LONG_ZVAL_INCREF(stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION() 1553 MAKE_LONG_ZVAL_INCREF(stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION() 1555 MAKE_LONG_ZVAL_INCREF(stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION() 1559 MAKE_LONG_ZVAL_INCREF(stat_size, stat_ssb.sb.st_size); in PHP_NAMED_FUNCTION() 1666 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx() 1681 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx() 1685 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx() [all …]
|
H A D | filestat.c | 914 stat_sb = &ssb.sb; in php_stat() 919 if(ssb.sb.st_uid==getuid()) { in php_stat() 936 if(ssb.sb.st_gid==gids[i]) { in php_stat() 965 RETURN_LONG((long)ssb.sb.st_mode); in php_stat() 967 RETURN_LONG((long)ssb.sb.st_ino); in php_stat() 969 RETURN_LONG((long)ssb.sb.st_size); in php_stat() 971 RETURN_LONG((long)ssb.sb.st_uid); in php_stat() 973 RETURN_LONG((long)ssb.sb.st_gid); in php_stat() 981 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat() 984 switch(ssb.sb.st_mode & S_IFMT) { in php_stat() [all …]
|
H A D | ftp_fopen_wrapper.c | 802 ssb->sb.st_mode |= S_IFREG; in php_stream_ftp_url_stat() 822 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 871 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat() 875 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat() 876 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat() 877 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat() 878 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat() 879 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat() 881 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat() 882 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat() [all …]
|