if (include_once('HTTP/Request.php')) require_once('HTTP/Request.php'); else require_once('HTTP_Request/Request.php');
From some stupid broken API...
if (include_once('HTTP/Request.php')) require_once('HTTP/Request.php'); else require_once('HTTP_Request/Request.php');
From some stupid broken API...
I think the entire point of having a getter is about getting something, as compared to (re)setting stuff with a setter. Of course, this wouldn't be as irritating if the method wasn't named to look just like any innocent getXYZ method...
While slogging through the amazingly old and complex source code of the Azureus (now: Vuze) open source java BitTorrent client, I found this little getter method:
private ArrayList chokes = new ArrayList(); [..snip..] public ArrayList getChokes() { ArrayList to_choke = chokes; chokes = new ArrayList(); return to_choke; }