]> granicus.if.org Git - php/commit
fix condition
authorAnatol Belski <ab@php.net>
Fri, 12 Sep 2014 22:03:42 +0000 (00:03 +0200)
committerAnatol Belski <ab@php.net>
Fri, 12 Sep 2014 22:03:42 +0000 (00:03 +0200)
commit993d4751260b1e1fbc62dcaeea98fc4988e925b6
tree42d57cbac813d5c5f6fa01112d167eacc45074f1
parentf8d75839aa3e2042c9d158b092b41b4a9d6b79c8
fix condition

A char array like val[1] would always be valid when checking like
!val. Probably better were to check for ->len, but actually ->val[0]
is fine as the actual zend_string should have been initalized
before.
Zend/zend_API.h