fix #98 #99 #100 #101 #102 #103
[m6w6/ext-http] / tests / client013.phpt
index f246a30c850a36a83879c14f06b6a36194c8b19d..477edf7fa6d18122efbe919c5b8be69b61382ba3 100644 (file)
@@ -8,7 +8,7 @@ skip_client_test();
 --FILE--
 <?php 
 
-include "server.inc";
+include "helper/server.inc";
 
 echo "Test\n";
 
@@ -43,6 +43,9 @@ server("proxy.inc", function($port) {
                        $o3 = new CallbackObserver(
                                        function ($c, $r) {
                                                $p = (array) $c->getProgressInfo($r);
+                                               if (!$p) {
+                                                       return;
+                                               }
                                                var_dump(array_key_exists("started", $p));
                                                var_dump(array_key_exists("finished", $p));
                                                var_dump(array_key_exists("dlnow", $p));