X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient002.phpt;h=5b0b2aadc4033e3ad2e611cb4fbc7f75e7401777;hb=f7926eb23fc210ef3f7ca4412662123400f5ce3d;hp=0da72d00ba9f0d2b2c683898314d61e03a746799;hpb=b9e1564632b6d00d1120ee7c73574759af9e6167;p=m6w6%2Fext-http diff --git a/tests/client002.phpt b/tests/client002.phpt index 0da72d0..5b0b2aa 100644 --- a/tests/client002.phpt +++ b/tests/client002.phpt @@ -14,11 +14,12 @@ echo "Test\n"; class Observer implements SplObserver { - #[ReturnTypeWillChange] function update(SplSubject $client, http\Client\Request $request = null, StdClass $progress = null) { echo "P"; - if ($progress->info !== "prepare" && $client->getProgressInfo($request) != $progress) { - var_dump($progress); + /* fence against buggy infof() calls in some curl versions */ + $compare = $client->getProgressInfo($request); + if ($progress->info !== "prepare" && $compare && $compare != $progress) { + var_dump($progress, $compare); } } }