Browse Source

* finished code changes required for gearman to build against libgearman 0.12
* removed some bogus code from examples

jluedke 15 years ago
parent
commit
4b011a84e2
5 changed files with 9 additions and 18 deletions
  1. 5 0
      README
  2. 0 3
      examples/image_thumbnail_client.php
  3. 0 3
      examples/reverse_client.php
  4. 4 4
      package.xml
  5. 0 8
      php_gearman.c

+ 5 - 0
README

@@ -1,3 +1,8 @@
+KNOWN BUGS
+    - There is a known bug in the $client->do* functions. Since the do
+      interface uses task internally I suggest just using the task interface.
+      This is a bug in the libgearman c api with luck there will be a fix soon.
+
 The Gearman PHP Extension provides a wrapper to libgearman. This
 gives the user the ability to write fully featured Gearman clients
 and workers in PHP, allowing them to quickly develop distributed

+ 0 - 3
examples/image_thumbnail_client.php

@@ -32,9 +32,6 @@ do
         case GEARMAN_SUCCESS:
             echo "SUCCESS: $value\n";
             break;
-        case GEARMAN_WORK_FAIL:
-            echo "FAILED\n";
-            break;
         case GEARMAN_WORK_STATUS:
             list($numerator, $denominator)= $gmc->doStatus();
             echo "Status: $numerator/$denominator\n";

+ 0 - 3
examples/reverse_client.php

@@ -34,9 +34,6 @@ do
       list($numerator, $denominator)= $gmclient->doStatus();
       echo "Status: $numerator/$denominator complete\n";
       break;
-    case GEARMAN_WORK_FAIL:
-      echo "Failed\n";
-      exit;
     case GEARMAN_SUCCESS:
       break;
     default:

+ 4 - 4
package.xml

@@ -15,7 +15,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
   <email>contact@jamesluedke.com</email>
   <active>yes</active>
  </lead>
- <date>2010-02-19</date>
+ <date>2010-03-09</date>
  <version>
   <release>0.7.0</release>
   <api>0.7.0</api>
@@ -71,13 +71,13 @@ http://pear.php.net/dtd/package-2.0.xsd">
  <changelog>
   <release>
    <stability><release>beta</release><api>beta</api></stability>
-   <version><release>0.6.0</release><api>0.6.0</api></version>
-   <date>2010-02-19</date>
+   <version><release>0.7.0</release><api>0.7.0</api></version>
+   <date>2010-03-09</date>
    <notes>
 - Now builds against gearmand 0.12
+- Had to remove some of the low level code I was working on.
    </notes>
   </release>
-  <release>
   <release>
    <stability><release>beta</release><api>beta</api></stability>
    <version><release>0.6.0</release><api>0.6.0</api></version>

+ 0 - 8
php_gearman.c

@@ -904,14 +904,6 @@ typedef enum {
 	GEARMAN_OBJ_CREATED= (1 << 0)
 } gearman_obj_flags_t;
 
-/*
-typedef struct {
-	zend_object std;
-	gearman_obj_flags_t flags;
-	gearman_universal_st gearman;
-} gearman_obj;
-*/
-
 typedef enum {
 	GEARMAN_CLIENT_OBJ_CREATED= (1 << 0)
 } gearman_client_obj_flags_t;