[phc-internals] [phc commit] r1166 - trunk/test/subjects/3rdparty/benchmarks/RUBBoS/PHP

codesite-noreply at google.com codesite-noreply at google.com
Wed Apr 9 14:18:52 IST 2008


Author: paul.biggar
Date: Wed Apr  9 06:17:43 2008
New Revision: 1166

Modified:
   trunk/test/subjects/3rdparty/benchmarks/RUBBoS/PHP/ViewStory.php

Log:
The client was throwing exceptions based on mal-formed input. The 
culprit was nested comments being given blank story_ids, since they 
weren't fetched from the database due to an incorrect sql query.


Modified: trunk/test/subjects/3rdparty/benchmarks/RUBBoS/PHP/ViewStory.php
==============================================================================
--- trunk/test/subjects/3rdparty/benchmarks/RUBBoS/PHP/ViewStory.php	(original)
+++ trunk/test/subjects/3rdparty/benchmarks/RUBBoS/PHP/ViewStory.php	
Wed Apr  9 06:17:43 2008
@@ -6,7 +6,7 @@
 // Display the nested comments
 function display_follow_up($cid, $level, $display, $filter, $link, $comment_table)
 {
-  $follow = mysql_query("SELECT id,subject,writer,date FROM 
$comment_table WHERE parent=$cid", $link) or die("ERROR: Query failed");
+  $follow = mysql_query("SELECT story_id,id,subject,writer,date FROM 
$comment_table WHERE parent=$cid", $link) or die("ERROR: Query failed");
   while ($follow_row = mysql_fetch_array($follow))
   {
     for ($i = 0 ; $i < $level ; $i++)


More information about the phc-internals mailing list