From: Dmitry Stogov Date: Tue, 6 May 2014 11:59:49 +0000 (+0400) Subject: Fixed incorrect boolean IS_FALSE/IS_TRUE handling X-Git-Tag: POST_PHPNG_MERGE~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=485a60414de3b64e274aa60c93496d8bbfa2d8e5;p=php Fixed incorrect boolean IS_FALSE/IS_TRUE handling --- diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 5f0e3a2646..2badf294ea 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1398,7 +1398,7 @@ PHP_FUNCTION(ftp_set_option) zend_zval_type_name(z_value)); RETURN_FALSE; } - ftp->autoseek = Z_LVAL_P(z_value); + ftp->autoseek = Z_TYPE_P(z_value) == IS_TRUE ? 1 : 0; RETURN_TRUE; break; default: