Implement RFC: Introduce session_start() options - read_only, unsafe_lock, lazy_write and lazy_destroy #1016
Except comments, changes are minimal, but includes a few bug fixes that tests equality of PS(session_status) against "php_session_none". The comparison must be "PS(session_status) != php_session_active" as it has php_session_disabled.
Comments are appreciated.
I've tried to get some benchmarks. It seems current system is too fast to get obvious performance difference.
Test command: ab -c 7 -n 500000 http://localhost:8888/session.php
Old behavior was around 15000 reqs/sec.
I think this would be good enough benchmark for merging.