here's a secret: you build the framework and abstractions on top of cgi, or fcgi, or embedded http server
all php frameworks run on top of fcgi, cgit and bugzilla are both on cgi, and have their own extra abstractions, though bugzilla also has the perl cgi module in between
cgi itself is just a way to dispatch request information