projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e303647
)
Add _ex API implementation for booleans.
author
Sascha Schumann
<sas@php.net>
Fri, 24 Sep 1999 19:22:25 +0000
(19:22 +0000)
committer
Sascha Schumann
<sas@php.net>
Fri, 24 Sep 1999 19:22:25 +0000
(19:22 +0000)
Zend/zend_operators.h
patch
|
blob
|
history
diff --git
a/Zend/zend_operators.h
b/Zend/zend_operators.h
index 5764fc30e78fe4bd867b0a5440360f2ab067b1ee..ad3b69cf9360594478e1f210e30ecd0e385d04b6 100644
(file)
--- a/
Zend/zend_operators.h
+++ b/
Zend/zend_operators.h
@@
-110,4
+110,12
@@
ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2);
convert_to_object(*ppzv); \
}
+#define convert_to_boolean_ex(ppzv) \
+ if ((*ppzv)->type!=IS_BOOL) { \
+ if (!(*ppzv)->EA.is_ref) { \
+ SEPARATE_ZVAL(ppzv); \
+ } \
+ convert_to_boolean(*ppzv); \
+ }
+
#endif