tony2001                Mon Dec  4 15:58:35 2006 UTC

  Modified files:              
    /php-src/ext/session        session.c 
    /php-src/main       main.c 
  Log:
  fix retval type
  it should be int, not zend_bool
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.456&r2=1.457&diff_format=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.456 php-src/ext/session/session.c:1.457
--- php-src/ext/session/session.c:1.456 Fri Dec  1 00:27:33 2006
+++ php-src/ext/session/session.c       Mon Dec  4 15:58:35 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: session.c,v 1.456 2006/12/01 00:27:33 iliaa Exp $ */
+/* $Id: session.c,v 1.457 2006/12/04 15:58:35 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -267,7 +267,7 @@
 
 static void php_rinit_session_globals(TSRMLS_D);
 static void php_rshutdown_session_globals(TSRMLS_D);
-static zend_bool php_session_destroy(TSRMLS_D);
+static int php_session_destroy(TSRMLS_D);
 
 zend_module_entry session_module_entry = {
        STANDARD_MODULE_HEADER,
@@ -1192,9 +1192,9 @@
        }
 }
 
-static zend_bool php_session_destroy(TSRMLS_D)
+static int php_session_destroy(TSRMLS_D)
 {
-       zend_bool retval = SUCCESS;
+       int retval = SUCCESS;
 
        if (PS(session_status) != php_session_active) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Trying to destroy 
uninitialized session");
http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.709&r2=1.710&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.709 php-src/main/main.c:1.710
--- php-src/main/main.c:1.709   Thu Nov 23 08:37:34 2006
+++ php-src/main/main.c Mon Dec  4 15:58:35 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.709 2006/11/23 08:37:34 dmitry Exp $ */
+/* $Id: main.c,v 1.710 2006/12/04 15:58:35 tony2001 Exp $ */
 
 /* {{{ includes
  */
@@ -2052,7 +2052,7 @@
 PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC)
 {
        zend_op_array *op_array;
-       zend_bool retval = FAILURE;
+       int retval = FAILURE;
 
        zend_try {
                op_array = zend_compile_file(file, ZEND_INCLUDE TSRMLS_CC);

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

Reply via email to