Re: cvs: php-benchmarks /benchcli/tests test_richards.php
| From: | Alexander Hjalmarsson | Date: | Mon, 29 Jun 2009 19:32:07 +0000 |
| Subject: | Re: cvs: php-benchmarks /benchcli/tests test_richards.php | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65149@lists.php.net to get a copy of this message | ||
Here's the diff from the original richards test:
Index: richards.php
===================================================================
RCS file: /repository/php-benchmarks/richards.php,v
retrieving revision 1.1.1.1
diff -u -w -p -r1.1.1.1 richards.php
--- richards.php 24 Feb 2009 21:30:45 -0000 1.1.1.1
+++ richards.php 29 Jun 2009 18:26:09 -0000
@@ -480,7 +480,7 @@ class DeviceTask
{
if($this->v1 === NULL)
{
- $this->scheduler->suspendCurrent();
+ return $this->scheduler->suspendCurrent();
}
$v = $this->v1;
@@ -597,7 +597,7 @@ class HandlerTask
$v = $this->v1;
$this->v1 = $this->v1->link;
- return $this->sceduler->queue($v);
+ return $this->scheduler->queue($v);
}
}
@@ -636,7 +636,7 @@ class Packet
{
$this->link = NULL;
- if($queue == NULL)
+ if($queue === NULL)
{
return $this;
}
On Mon, Jun 29, 2009 at 9:21 PM, Alexander Hjalmarsson <hjalle@php.net>wrote:
> hjalle Mon Jun 29 19:21:27 2009 UTC
>
> Added files:
> /php-benchmarks/benchcli/tests test_richards.php
> Log:
> The richards test (working copy)
>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>