php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61477
Patch yaml-warnings.patch revision 2012-03-22 17:56 UTC by nolte at adobe dot com

Patch yaml-warnings.patch for yaml Bug #61477

Patch version 2012-03-22 17:56 UTC

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

Developer: nolte@adobe.com

Index: emit.c
===================================================================
--- emit.c	(revision 324468)
+++ emit.c	(working copy)
@@ -746,7 +746,7 @@
 	}
 
 	/* emit surrogate object and tag */
-	return y_write_zval(state, (*zdata), Z_STRVAL_PP(ztag) TSRMLS_CC);
+	return y_write_zval(state, (*zdata), (yaml_char_t*) Z_STRVAL_PP(ztag) TSRMLS_CC);
 }
 /* }}} */
 
Index: yaml.c
===================================================================
--- yaml.c	(revision 324468)
+++ yaml.c	(working copy)
@@ -416,7 +416,7 @@
 	zval *yaml = { 0 };
 	long ndocs = 0;
 
-	memset(&state, 0, sizeof(&state));
+	memset(&state, 0, sizeof(state));
 	state.have_event = 0;
 	state.aliases = NULL;
 	state.callbacks = NULL;
@@ -506,7 +506,7 @@
 	zval *yaml = { 0 };
 	long ndocs = 0;
 
-	memset(&state, 0, sizeof(&state));
+	memset(&state, 0, sizeof(state));
 	state.have_event = 0;
 	state.aliases = NULL;
 	state.callbacks = NULL;
@@ -609,7 +609,7 @@
 	zval *yaml = { 0 };
 	long ndocs = 0;
 
-	memset(&state, 0, sizeof(&state));
+	memset(&state, 0, sizeof(state));
 	state.have_event = 0;
 	state.aliases = NULL;
 	state.callbacks = NULL;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 18:01:30 2024 UTC