diff options
| -rw-r--r-- | src/sp_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c index 6b6c5cd..22b1d88 100644 --- a/src/sp_wrapper.c +++ b/src/sp_wrapper.c | |||
| @@ -180,7 +180,7 @@ PHP_FUNCTION(sp_stream_wrapper_register) { | |||
| 180 | if (!protocol_name || wrapper_is_whitelisted(protocol_name)) { | 180 | if (!protocol_name || wrapper_is_whitelisted(protocol_name)) { |
| 181 | 181 | ||
| 182 | // reject manual loading of "php" wrapper | 182 | // reject manual loading of "php" wrapper |
| 183 | if (!strcasecmp(ZSTR_VAL(protocol_name), "php") && sp_php_stream_is_filtered()) { | 183 | if (protocol_name && !strcasecmp(ZSTR_VAL(protocol_name), "php") && sp_php_stream_is_filtered()) { |
| 184 | return; | 184 | return; |
| 185 | } | 185 | } |
| 186 | 186 | ||
