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:
Gina Peter Banyard 2025-07-12 12:21:52 +01:00
parent 4b6ebcc6e9
commit fb2585f4e2

View file

@ -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)
{ {