mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
streams: use -1 directly instead of FAILURE macro
The result of the functions returning those globals is never checked anyway
This commit is contained in:
parent
4b6ebcc6e9
commit
fb2585f4e2
1 changed files with 3 additions and 3 deletions
|
@ -35,9 +35,9 @@
|
||||||
/* {{{ resource and registration code */
|
/* {{{ resource and registration code */
|
||||||
/* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
|
/* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
|
||||||
static HashTable url_stream_wrappers_hash;
|
static HashTable url_stream_wrappers_hash;
|
||||||
static int le_stream = FAILURE; /* true global */
|
static int le_stream = -1; /* true global */
|
||||||
static int le_pstream = FAILURE; /* true global */
|
static int le_pstream = -1; /* true global */
|
||||||
static int le_stream_filter = FAILURE; /* true global */
|
static int le_stream_filter = -1; /* true global */
|
||||||
|
|
||||||
PHPAPI int php_file_le_stream(void)
|
PHPAPI int php_file_le_stream(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue