Bug #4088 Updated: The funcion yp_next() does not return any value
| From: | Bug Database | Date: | Fri, 25 Aug 2000 12:41:58 +0000 |
| Subject: | Bug #4088 Updated: The funcion yp_next() does not return any value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-30633@lists.php.net to get a copy of this message | ||
ID: 4088
Updated by: hholzgra
Reported By: tex@cselt1.polito.it
Status: Analyzed
Bug Type: NIS related
Assigned To: hholzgra
Comments:
Luca Tessitore <tessitore@athena.polito.it> sent in a patch
that seems to fix this, shall we get it into 4.0.2 as a last
minute fix or wait 'til after 4.0.2 release?
(manual will need a fix in yp_first() and yp_next(), too)
==============================================================
RCS file: /repository/php4/ext/yp/yp.c,v
retrieving revision 1.14
diff -u -b -w -B -r1.14 yp.c
--- yp.c 2000/06/05 19:47:45 1.14
+++ yp.c 2000/08/25 12:37:09
@@ -151,7 +151,7 @@
RETURN_FALSE;
}
array_init(return_value);
- add_assoc_string(return_value,"key",outkey,1);
+ add_assoc_stringl(return_value,"key",outkey,outkeylen,1);
add_assoc_string(return_value,"value",outval,1);
}
/* }}} */
@@ -176,7 +176,8 @@
}
array_init(return_value);
- add_assoc_string(return_value,outkey,outval,1);
+ add_assoc_stringl(return_value,"key",outkey,outkeylen,1);
+ add_assoc_string(return_value,"value",outval,1);
}
/* }}} */
Full Bug description available at: http://bugs.php.net/?id=4088