adoy / PHP-FastCGI-Client

Lightweight, single file, FastCGI client for PHP
MIT License
302 stars 61 forks source link

Fix readPacket + test script #1

Closed remicollet closed 11 years ago

remicollet commented 11 years ago

Hi,

Thanks for this tool.

I notice issue when trying to get page with long result (ex : phpinfo() page) because of fread buffered behavior. The first commit fix this.

The second one add a minimal command line tool to test communication with a fastcgi server.

$ ./fcgiget.php /ping
Call: /ping

X-Powered-By: PHP/5.4.9RC1
Content-Type: text/plain
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, max-age=0

Hello world!
adoy commented 11 years ago

Thanks for your contribution :)