From 485a60414de3b64e274aa60c93496d8bbfa2d8e5 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 6 May 2014 15:59:49 +0400 Subject: [PATCH] Fixed incorrect boolean IS_FALSE/IS_TRUE handling --- ext/ftp/php_ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.40.0