public function loadString($imageString, $strict = false) { if (!$imageString) { throw new Exception('Image string is empty!'); } $this->cleanup(); $this->_loadMeta($imageString, $strict); return $this; }
public function testPHP53_getimagesizefromstring() { try { $img = new Image(); $img->loadString('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='); } catch (Exception $e) { isTrue(strpos(PHP_VERSION, '5.3') === 0); } }