Bug #10913 Updated: hw_who() returns incorrect data & prints extraneous string (patch incl.)

From: Date: Thu, 17 May 2001 02:09:07 +0000
Subject: Bug #10913 Updated: hw_who() returns incorrect data & prints extraneous string (patch incl.)
Groups: php.dev 
Request: Send a blank email to php-dev+get-55567@lists.php.net to get a copy of this message
ID: 10913 Updated by: torben Reported By: torben@php.net Status: Open Bug Type: Hyperwave related Operating system: PHP Version: 4.0 Latest CVS (2001-05-16) Assigned To: Comments: Just a minor change to the patch: s/#if 0/#ifdef HW_DEBUG/. :) Previous Comments: --------------------------------------------------------------------------- [2001-05-16 21:31:25] torben@php.net Just found this with hw_who(): the returned array skipped some attributes and printed what looked like a debugging string when called. Basic upshot was that the array returned didn't have all of the actual data returned from the Hyperwave server, and all values were associated with the wrong keys (except for 'self'). This patch seems to fix it for me: Index: hw.c =================================================================== RCS file: /repository/php4/ext/hyperwave/hw.c,v retrieving revision 1.81 diff -u -r1.81 hw.c --- hw.c 2001/04/30 12:53:55 1.81 +++ hw.c 2001/05/17 01:20:09 @@ -1190,7 +1190,10 @@ ptr = object; +#if 0 php_printf("%sn", ptr); +#endif + /* Skip first two lines, they just contain: Users in Database @@ -1228,6 +1231,9 @@ add_assoc_long(user_arr, "self", 0); ptr++; + while((*ptr != '

« previous php.dev (#55567) next »