- example fixup
[m6w6/ext-http] / docs / examples / Parallel_Requests_.php
index 94c69df2e0cc612e3acb9c6e7e96fa0fc3c75141..8798c30f6b5680f92f85c3759bd7a65efc163882 100644 (file)
@@ -4,8 +4,8 @@ class Pool extends HttpRequestPool
        public function __construct()
        {
                parent::__construct(
-                       new HttpRequest('http://pear.php.net', HTTP_HEAD),
-                       new HttpRequest('http://pecl.php.net', HTTP_HEAD)
+                       new HttpRequest('http://pear.php.net', HTTP_METH_HEAD),
+                       new HttpRequest('http://pecl.php.net', HTTP_METH_HEAD)
                );
 
                // HttpRequestPool methods socketPerform() and socketSelect() are