php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61493
Patch yaf-2.1.9.patch revision 2012-03-23 16:30 UTC by littlemiaor at gmail dot com

Patch yaf-2.1.9.patch for yaf Bug #61493

Patch version 2012-03-23 16:30 UTC

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

Developer: littlemiaor@gmail.com

diff -ar -U 0 yaf-2.1.9/configs/simple.c yaf-2.1.9-patch/configs/simple.c
--- yaf-2.1.9/configs/simple.c	2012-03-20 18:37:45.000000000 +0800
+++ yaf-2.1.9-patch/configs/simple.c	2012-03-23 22:29:26.472539640 +0800
@@ -202 +202 @@
-	if (Z_BVAL_P(readonly)) {
+	if (!Z_BVAL_P(readonly)) {
@@ -214 +214 @@
-		if (zend_hash_del(Z_ARRVAL_P(props), Z_STRVAL_P(name), Z_STRLEN_P(name)) == SUCCESS) {
+		if (zend_hash_del(Z_ARRVAL_P(props), Z_STRVAL_P(name), Z_STRLEN_P(name) + 1) == SUCCESS) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 19:01:28 2024 UTC