diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-06 15:59:49 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-06 15:59:49 +0400 |
commit | 485a60414de3b64e274aa60c93496d8bbfa2d8e5 (patch) | |
tree | 99beb05c2855bae3b764d27b92e35ca0ce786a02 /ext/ftp/php_ftp.c | |
parent | ebe024fd785fecfa23ab9e31754a3e2cd1d36bd7 (diff) | |
download | php-git-485a60414de3b64e274aa60c93496d8bbfa2d8e5.tar.gz |
Fixed incorrect boolean IS_FALSE/IS_TRUE handling
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |