com php-src: Fixed incorrect boolean IS_FALSE/IS_TRUE han dling: ext/ftp/php_ftp.c
| From: | Dmitry Stogov | Date: | Tue, 06 May 2014 11:59:49 +0000 |
| Subject: | com php-src: Fixed incorrect boolean IS_FALSE/IS_TRUE han dling: ext/ftp/php_ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78139@lists.php.net to get a copy of this message | ||
Commit: 485a60414de3b64e274aa60c93496d8bbfa2d8e5
Author: Dmitry Stogov <dmitry@zend.com> Tue, 6 May 2014 15:59:49 +0400
Parents: ebe024fd785fecfa23ab9e31754a3e2cd1d36bd7
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=485a60414de3b64e274aa60c93496d8bbfa2d8e5
Log:
Fixed incorrect boolean IS_FALSE/IS_TRUE handling
Changed paths:
M ext/ftp/php_ftp.c
Diff:
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c
index 5f0e3a2..2badf29 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: