From: Anatol Belski Date: Sat, 13 Sep 2014 21:57:53 +0000 (+0200) Subject: replaced the check with assert as it's kinda unusual case X-Git-Tag: PRE_NATIVE_TLS_MERGE~150^2~18^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d194a0e0b3b396cb5177dd3698d77fa6228e582;p=php replaced the check with assert as it's kinda unusual case --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 67944b350e..286ea5c2cb 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -585,11 +585,7 @@ PHPAPI zend_string *php_get_uname(char mode) char *winver = php_get_windows_name(); char wincpu[20]; - if (NULL == winver) { - TSRMLS_FETCH(); - /* This should never happen */ - return STR_EMPTY_ALLOC(); - } + ZEND_ASSERT(winver != NULL); php_get_windows_cpu(wincpu, sizeof(wincpu)); dwBuild = (DWORD)(HIWORD(dwVersion));