Re: [PHP] All-in-one PHP Classes



# neuhauser@xxxxxxxxxx / 2007-02-08 01:14:43 +0100:
290 function setOptions(&$db, $options)
291 {
292 if (is_array($options)) {
293 foreach ($options as $option => $value) {
294 $test = $db->setOption($option, $value);
295 if (PEAR::isError($test)) {
296 return $test;
297 }
298 }
299 }
300 return MDB2_OK;
301 }

The code is careful to not provoke a warning, but returns MDB2_OK if you
screw up and give it a wrong type of value. It's long and has a bug.

Actually, that method being a "static" method of MDB2 is a bug in
itself. Static methods produce "hard-wired" dependencies. The
functionality is useful, but belongs to MDB2_driver_common.

--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
.



Relevant Pages

  • Re: What da weck is thiz tube??
    ... I was inspecting the engine on my 70' bug and came across a cutted tube, ... pluged with a screw that I dont recognize and see the use too. ...
    (uk.rec.cars.vw.aircooled)
  • Waht the heck iz thiz tube??
    ... I was inspecting the engine on my 70' bug and came across a cutted tube, ... pluged with a screw that I dont recognize and see the use too. ...
    (rec.autos.makers.vw.aircooled)
  • What da weck is thiz tube??
    ... I was inspecting the engine on my 70' bug and came across a cutted tube, ... pluged with a screw that I dont recognize and see the use too. ...
    (uk.rec.cars.vw.aircooled)
  • Re: Cleaning a Coolscan 4000
    ... I refurbish and service ls-2000's & 30's. ... A good cleaning of those requires almost total disassembly of the entire unit, almost down to the last screw (warning, there are a few screws (very few) that MUST NOT be removed, they set the CCD alignment). ...
    (comp.periphs.scanners)
  • RepairTechs Extended Warrantees Are not worth The paper they are printed on
    ... WARNING - WARNING - WARNING!!!!!!!!!!!!!!!! ... Stay away from any and all extended warranty's from this slimeball opeartion. ... They will screw you and the repair company that tries to fix your ...
    (alt.tv.tech.hdtv)