LWN.net Logo

Critical PHP vulnerability being fixed (The H)

Critical PHP vulnerability being fixed (The H)

Posted Feb 2, 2012 22:55 UTC (Thu) by HenrikH (guest, #31152)
Parent article: Critical PHP vulnerability being fixed (The H)

Why doesn't this work the other way around, i.e the web service should supply a list of which keys it supports and the "framework" should create a map of that (and perform a lookup on the incoming data from the client) instead of the "framework" creating a map of the incoming data from the client (and the service performs the lookup).

That way it could even generate a perfect hash to yield even better performance. And that is exactly how I have always coded web services in C so why does the PHP/Java/whatnot-crowd do it backwards?


(Log in to post comments)

Critical PHP vulnerability being fixed (The H)

Posted Feb 3, 2012 10:00 UTC (Fri) by Soroush (guest, #81798) [Link]

.. or the web application can ask web server for key "on demand" using function like get_arg() as in this C web server implementaion http://gwan.com/api#params

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds