Skip to content

lighty developer blog

A interactive PHP-Shell

I was always jealous of iruby and ipython, the interactive shells for Ruby and Python. Instead of writing a script and running it through the interpreters you just execute the script line-by-line while you write it.

For debugging this is great. Compare a shell-script against the normal shell usage. It is more a ‘What if I …’ pattern instead of ‘I can write 100 lines of code without testing it’.

PHP was missing a powerful shell for a long time now. I needed one for my team at work and ‘php -a’, the interactive shell of PHP 5.0.x, is still not able to handle basic FATAL errors like ‘Function foo() not found’. So I wrote a php based interactive php-shell

Patches for 1.4.10

Pending patches for the current release:

  • mod_deflate for compressing dynamic content
  • mod_extforward to extract the Host from X-forwarded-for
  • the mysqlvhost patches for mod_fastcgi

They will be check in the next ‘feature’ release. If you want to try them out now and test them, feel free to contact the authors of the patches directly.

lighttpd 1.4.10 released

lighttpd 1.4.10 has been release and fixes the fastcgi and cgi problems of .9.

  • CGI should work again
  • fastcgi should not result in a crash under high load
  • load balancing in fastcgi should work as expected
  • broken digest request shouldn’t crash mod_auth

New is

fastcgi.map-extensions = ( ".php3" => ".php" )
fastcgi.server = ( ".php" => ... )

Links

In The News

I grep through the referer log from time to time to see where lighty is mentioned on the net.

This week I got attracted by these links:

That’s it for this week.