Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 47) sorted by last modified time

12

/PHP-7.4/ext/phar/
H A Dphar.c1790 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1845 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1857 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
H A Dphar_object.c1690 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_build()
2628 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD()
3694 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_add_file()
4402 } else if (!(ssb.sb.st_mode & S_IFDIR)) { in PHP_METHOD()
H A Dutil.c217 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
227 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
230 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1322 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
1330 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
/PHP-7.4/main/streams/
H A Dstreams.c1506 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem()
1507 max_len = MAX(ssbuf.sb.st_size - src->position, 0) + step; in _php_stream_copy_to_mem()
1560 if (ssbuf.sb.st_size == 0 in _php_stream_copy_to_stream_ex()
1562 && S_ISREG(ssbuf.sb.st_mode) in _php_stream_copy_to_stream_ex()
H A Dplain_wrapper.c151 zend_stat_t sb; member
162 r = zend_fstat(fd, &d->sb); in do_fstat()
251 self->is_seekable = !(S_ISFIFO(self->sb.st_mode) || S_ISCHR(self->sb.st_mode)); in detect_is_seekable()
627 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat()
1165 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1170 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1174 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1240 zend_stat_t sb; in php_plain_files_rename() local
1257 if (VCWD_CHOWN(url_to, sb.st_uid, sb.st_gid)) { in php_plain_files_rename()
1318 zend_stat_t sb; in php_plain_files_mkdir() local
[all …]
H A Duserspace.c866 ssb->sb.st_##name2 = zval_get_long(elem); \ in statbuf_from_array()
H A Dxp_socket.c247 return zend_fstat(sock->socket, &ssb->sb); in php_sockop_stat()
/PHP-7.4/main/
H A Dmain.c1622 return ssb.sb.st_size; in php_zend_stream_fsizer()
/PHP-7.4/ext/zip/
H A Dphp_zip.c140 struct zip_stat sb; in php_zip_extract_file() local
1621 struct zip_stat sb; local
1887 struct zip_stat sb; local
1898 RETURN_SB(&sb);
1910 struct zip_stat sb; local
1922 RETURN_SB(&sb);
2077 struct zip_stat sb; local
2140 struct zip_stat sb; local
2205 struct zip_stat sb; local
2727 if (sb.size < 1) {
[all …]
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch733 + if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) {
2000 - ret = lstat(fn, sb);
2016 - sb->st_mode = S_IFBLK;
2086 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2114 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2854 - const struct stat *sb)
2855 + const zend_stat_t *sb)
2900 - struct stat sb;
2901 + zend_stat_t sb;
2943 - sb.st_mode = S_IFBLK;
[all …]
H A Dfileinfo.c547 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()
/PHP-7.4/ext/curl/
H A Dinterface.c2236 filesize = ssb.sb.st_size; in build_mime_structure_from_hash()
/PHP-7.4/ext/standard/
H A Dfilestat.c833 stat_sb = &ssb.sb; in php_stat()
836 if(ssb.sb.st_uid==getuid()) { in php_stat()
840 } else if(ssb.sb.st_gid==getgid()) { in php_stat()
853 if(ssb.sb.st_gid==gids[i]) { in php_stat()
880 RETURN_LONG((zend_long)ssb.sb.st_ino); in php_stat()
884 RETURN_LONG((zend_long)ssb.sb.st_uid); in php_stat()
894 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
897 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
916 RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); in php_stat()
918 RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); in php_stat()
[all …]
H A Dfile.c1584 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION()
1585 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION()
1586 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION()
1588 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION()
1589 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION()
1591 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION()
1595 ZVAL_LONG(&stat_size, stat_ssb.sb.st_size); in PHP_NAMED_FUNCTION()
1705 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx()
1720 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx()
1724 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx()
[all …]
H A Diptc.c195 zend_stat_t sb; in PHP_FUNCTION() local
220 if (zend_fstat(fileno(fp), &sb) != 0) { in PHP_FUNCTION()
224 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
226 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c898 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp()
1004 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local
1016 ret = stream->ops->stat(stream, &sb); in zend_get_file_handle_timestamp()
1025 statbuf = sb.sb; in zend_get_file_handle_timestamp()
/PHP-7.4/ext/openssl/
H A Dopenssl.c2676 zend_stat_t sb; in php_openssl_setup_verify() local
2692 if (VCWD_STAT(ZSTR_VAL(str), &sb) == -1) { in php_openssl_setup_verify()
2698 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
/PHP-7.4/ext/pdo_odbc/
H A Dodbc_stmt.c413 php_stream_statbuf sb; in odbc_stmt_param_hook() local
421 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook()
444 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-7.4/sapi/cli/
H A Dphp_cli_server.c138 zend_stat_t sb; member
1437 zend_stat_t sb; in php_cli_server_request_translate_vpath() local
1470 if (!php_sys_stat(buf, &sb)) { in php_cli_server_request_translate_vpath()
1471 if (sb.st_mode & S_IFDIR) { in php_cli_server_request_translate_vpath()
1479 if (!php_sys_stat(buf, &sb) && (sb.st_mode & S_IFREG)) { in php_cli_server_request_translate_vpath()
1536 request->sb = sb; in php_cli_server_request_translate_vpath()
2166 smart_str_append_unsigned_ex(&buffer, client->request.sb.st_size, 1); in php_cli_server_begin_send_static()
2713 zend_stat_t sb; in do_cli_server() local
2715 if (php_sys_stat(document_root, &sb)) { in do_cli_server()
2719 if (!S_ISDIR(sb.st_mode)) { in do_cli_server()
/PHP-7.4/ext/session/
H A Dsession.c1143 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.4/sapi/phpdbg/
H A Dphpdbg_prompt.c317 zend_stat_t sb; in phpdbg_try_file_init() local
319 if (init_file && VCWD_STAT(init_file, &sb) != -1) { in phpdbg_try_file_init()
409 zend_stat_t sb; in PHPDBG_COMMAND() local
411 if (VCWD_STAT(param->str, &sb) != FAILURE) { in PHPDBG_COMMAND()
412 if (sb.st_mode & (S_IFREG|S_IFLNK)) { in PHPDBG_COMMAND()
1422 zend_stat_t sb; in PHPDBG_COMMAND() local
1424 if (VCWD_STAT(param->str, &sb) != -1) { in PHPDBG_COMMAND()
H A Dphpdbg.c304 zend_stat_t sb; in PHP_FUNCTION() local
307 if (VCWD_STAT(ZSTR_VAL(exec), &sb) != FAILURE) { in PHP_FUNCTION()
308 if (sb.st_mode & (S_IFREG|S_IFLNK)) { in PHP_FUNCTION()
H A Dphpdbg_bp.c290 } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) { in phpdbg_set_breakpoint_file()
/PHP-7.4/ext/mysqli/tests/
H A D026.phpt22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c1265 ssb->sb.st_size = sqlite3_stream->size; in php_sqlite3_stream_stat()

Completed in 169 milliseconds

12