derick          Mon Mar  1 03:07:26 2004 EDT

  Added files:                 
    /php-src/tests/lang bug27443.phpt 

  Modified files:              
    /ZendEngine2        zend_builtin_functions.c 
  Log:
  - Fixed bug #27443 (defined() returns wrong type).
  
  
http://cvs.php.net/diff.php/ZendEngine2/zend_builtin_functions.c?r1=1.223&r2=1.224&ty=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.223 
ZendEngine2/zend_builtin_functions.c:1.224
--- ZendEngine2/zend_builtin_functions.c:1.223  Wed Feb 25 16:06:59 2004
+++ ZendEngine2/zend_builtin_functions.c        Mon Mar  1 03:07:24 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_builtin_functions.c,v 1.223 2004/02/25 21:06:59 sniper Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.224 2004/03/01 08:07:24 derick Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -506,9 +506,9 @@
        convert_to_string_ex(var);
        if (zend_get_constant((*var)->value.str.val, (*var)->value.str.len, &c 
TSRMLS_CC)) {
                zval_dtor(&c);
-               RETURN_LONG(1);
+               RETURN_TRUE;
        } else {
-               RETURN_LONG(0);
+               RETURN_FALSE;
        }
 }
 /* }}} */

http://cvs.php.net/co.php/php-src/tests/lang/bug27443.phpt?r=1.1&p=1
Index: php-src/tests/lang/bug27443.phpt
+++ php-src/tests/lang/bug27443.phpt
--TEST--
Bug #27443 (defined() returns wrong type)
--FILE--
<?php
echo gettype(defined('test'));
?>
--EXPECT--
boolean

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to