summaryrefslogtreecommitdiff
path: root/zend
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-07-26 17:02:59 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-07-26 17:02:59 +0200
commit5e8c9017107dd48150790ac7027d9cdc67d8b09c (patch)
treebf125aba4e5984a2669167630f2cc14d86cee465 /zend
parentfc24b07c6572c018a7311a2e6a4ee6da79661bcc (diff)
fixed compile issues
Diffstat (limited to 'zend')
-rw-r--r--zend/value.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/zend/value.cpp b/zend/value.cpp
index 9258dbd..d48e08b 100644
--- a/zend/value.cpp
+++ b/zend/value.cpp
@@ -1413,14 +1413,11 @@ bool Value::isCallable() const
* @param allowString
* @return zend_class_entry
*/
-zend_class_entry Value::classEntry(bool allowString) const
+zend_class_entry *Value::classEntry(bool allowString) const
{
// we need the tsrm_ls variable
TSRMLS_FETCH();
- // the class-entry of 'this'
- zend_class_entry *this_entry;
-
// is this an object
if (isObject())
{
@@ -1439,7 +1436,7 @@ zend_class_entry Value::classEntry(bool allowString) const
zend_class_entry **ce;
// find the class entry
- if (zend_lookup_class(Z_STRVAL_P(_val), Z_STRLEN_P(_val), &ce TSRMLS_CC) == FAILURE) return return;
+ if (zend_lookup_class(Z_STRVAL_P(_val), Z_STRLEN_P(_val), &ce TSRMLS_CC) == FAILURE) return nullptr;
// found the entry
return *ce;