php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #65431
Patch zend_exceptions.c.patch revision 2013-08-14 18:39 UTC by sixd@php.net
Patch dtrace_master.patch revision 2013-08-13 20:36 UTC by sixd@php.net
Patch dtrace_php55.patch revision 2013-08-13 20:36 UTC by sixd@php.net
Patch dtrace_php54.patch revision 2013-08-13 20:35 UTC by sixd@php.net
Patch dtrace_casts_2.patch revision 2013-08-13 03:16 UTC by laruence@php.net
Patch dtrace_casts.patch revision 2013-08-09 22:32 UTC by sixd

Patch zend_exceptions.c.patch for Compile Warning Bug #65431

Patch version 2013-08-14 18:39 UTC

Return to Bug #65431 | Download this patch
Patch Revisions:

Developer: sixd@php.net

diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index f07c113..14ae75e 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -85,12 +85,12 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
 {
 #ifdef HAVE_DTRACE
 	if (DTRACE_EXCEPTION_THROWN_ENABLED()) {
-		char *classname;
-		int name_len;
+		const char *classname;
+		zend_uint name_len;
 
 		if (exception != NULL) {
 			zend_get_object_classname(exception, &classname, &name_len TSRMLS_CC);
-			DTRACE_EXCEPTION_THROWN(classname);
+			DTRACE_EXCEPTION_THROWN((char *)classname);
 		} else {
 			DTRACE_EXCEPTION_THROWN(NULL);
 		}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 09:01:27 2024 UTC