cvs: ZendEngine2 / zend_builtin_functions.c

"Antony Dovgal" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvstony20011214896884@cvsserver>
tony2001		Tue Jul  1 07:21:24 2008 UTC

  Modified files:              
    /ZendEngine2	zend_builtin_functions.c 
  Log:
  int -> long
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.374&r2=1.375&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.374 ZendEngine2/zend_builtin_functions.c:1.375
--- ZendEngine2/zend_builtin_functions.c:1.374	Mon Jun 30 21:05:06 2008
+++ ZendEngine2/zend_builtin_functions.c	Tue Jul  1 07:21:24 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_builtin_functions.c,v 1.374 2008/06/30 21:05:06 stas Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.375 2008/07/01 07:21:24 tony2001 Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -1164,7 +1164,7 @@
    Cause an intentional memory leak, for testing/debugging purposes */
 ZEND_FUNCTION(leak)
 {
-	int leakbytes=3;
+	long leakbytes = 3;
 
 	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &leakbytes) == FAILURE) {
 		return;
@@ -1219,7 +1219,7 @@
    Generates a user-level error/warning/notice message */
 ZEND_FUNCTION(trigger_error)
 {
-	int error_type = E_USER_NOTICE;
+	long error_type = E_USER_NOTICE;
 	zstr message;
 	int message_len;
 	zend_uchar message_type;
@@ -1239,7 +1239,7 @@
 			break;
 	}
 
-	zend_error(error_type, "%R", message_type, message);
+	zend_error((int)error_type, "%R", message_type, message);
 	RETURN_TRUE;
 }
 /* }}} */



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.