com php-src: replaced the check with assert as it's kinda unusual case: ext/standard/info.c

From: Date: Sat, 13 Sep 2014 21:57:53 +0000
Subject: com php-src: replaced the check with assert as it's kinda unusual case: ext/standard/info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81574@lists.php.net to get a copy of this message
Commit: 7d194a0e0b3b396cb5177dd3698d77fa6228e582 Author: Anatol Belski <ab@php.net> Sat, 13 Sep 2014 23:57:53 +0200 Parents: 87a5aae16679ee0bf61a9c09c773fea343cd16ad Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d194a0e0b3b396cb5177dd3698d77fa6228e582 Log: replaced the check with assert as it's kinda unusual case Changed paths: M ext/standard/info.c Diff: diff --git a/ext/standard/info.c b/ext/standard/info.c index 67944b3..286ea5c 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));

« previous php.cvs (#81574) next »