Skip to content

Commit 6d8769a

Browse files
committed
Use PHPC_ZVAL_IS_TRUE in PHP_FANN_PATH_FORBIDDEN
1 parent 86afc91 commit 6d8769a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fann.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ PHP_MINFO_FUNCTION(fann)
11801180
}
11811181
/* }}} */
11821182

1183-
#define PHP_FANN_PATH_FORBIDDEN(_retval) (Z_TYPE(_retval) != IS_BOOL || !Z_BVAL(_retval))
1183+
#define PHP_FANN_PATH_FORBIDDEN(_retval) !PHPC_ZVAL_IS_TRUE(_retval)
11841184

11851185
/* php_fann_get_file_path() {{{ */
11861186
static char *php_fann_get_path_for_open(char *path, int path_len, int read TSRMLS_DC)

phpc

Submodule phpc updated 1 file

0 commit comments

Comments
 (0)