PHP client library assert() error : can not autoload?


#1

When I run consume-stream.php and football.php (dtasift version v.2.1.5 ) , I got assert warning message:

Warning: assert(): Assertion failed in D:\xampp\htdocs\datasift\lib\datasift.php
on line 73

Call Stack:
0.0008 350392 1. {main}() D:\xampp\htdocs\datasift\examples\consume-st
ream.php:0
0.0163 503144 2. DataSift_User->getMultiConsumer() D:\xampp\htdocs\dat
asift\examples\consume-stream.php:156
0.0163 503144 3. DataSift_StreamConsumer::factory() D:\xampp\htdocs\da
tasift\lib\DataSift\User.php:285
0.0163 503248 4. class_exists() D:\xampp\htdocs\datasift\lib\DataSift
StreamConsumer.php:85
0.0163 503520 5. datasift_autoloader() D:\xampp\htdocs\datasift\lib\da
tasift.php:0
0.0167 503720 6. assert() D:\xampp\htdocs\datasift\lib\datasift.php:73

Consuming…


How can I fix this? Does this error stop the example ?


#2

We have released an update to the DataSift PHP Client Library to v.2.1.6 to fix this issue. It looks like there was a minor issue with Windows interoperability here. Let us know if this problem persists.