|
|
| version 1.1.1.2, 2012/05/29 12:34:43 | version 1.1.1.4, 2014/06/15 20:03:57 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.01 of the PHP license, | | | This source file is subject to version 3.01 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 904 PHPAPI void php_stat(const char *filename, php_stat_le | Line 904 PHPAPI void php_stat(const char *filename, php_stat_le |
| } | } |
| if (php_stream_stat_path_ex((char *)filename, flags, &ssb, NULL)) { | if (php_stream_stat_path_ex((char *)filename, flags, &ssb, NULL)) { |
| /* Error Occured */ | /* Error Occurred */ |
| if (!IS_EXISTS_CHECK(type)) { | if (!IS_EXISTS_CHECK(type)) { |
| php_error_docref(NULL TSRMLS_CC, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ? "L" : "", filename); | php_error_docref(NULL TSRMLS_CC, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ? "L" : "", filename); |
| } | } |
| Line 1208 PHP_FUNCTION(realpath_cache_get) | Line 1208 PHP_FUNCTION(realpath_cache_get) |
| MAKE_STD_ZVAL(entry); | MAKE_STD_ZVAL(entry); |
| array_init(entry); | array_init(entry); |
| add_assoc_long(entry, "key", bucket->key); | /* bucket->key is unsigned long */ |
| if (LONG_MAX >= bucket->key) { | |
| add_assoc_long(entry, "key", bucket->key); | |
| } else { | |
| add_assoc_double(entry, "key", (double)bucket->key); | |
| } | |
| add_assoc_bool(entry, "is_dir", bucket->is_dir); | add_assoc_bool(entry, "is_dir", bucket->is_dir); |
| add_assoc_stringl(entry, "realpath", bucket->realpath, bucket->realpath_len, 1); | add_assoc_stringl(entry, "realpath", bucket->realpath, bucket->realpath_len, 1); |
| add_assoc_long(entry, "expires", bucket->expires); | add_assoc_long(entry, "expires", bucket->expires); |