![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| cellog Wed May 23 04:21:09 2007 UTC Modified files: /pearweb/include pear-rest.php Log: add error handling for database http://cvs.php.net/viewvc.cgi/pearwe...&diff_format=u Index: pearweb/include/pear-rest.php diff -u pearweb/include/pear-rest.php:1.41 pearweb/include/pear-rest.php:1.42 --- pearweb/include/pear-rest.php:1.41 Mon May 21 01:01:03 2007 +++ pearweb/include/pear-rest.php Wed May 23 04:21:08 2007 @@ -321,6 +321,9 @@ $pid = package::info($package, 'id'); $releases = $dbh->getAll('SELECT * FROM releases WHERE package = ? ORDER BY releasedate DESC', array($pid), DB_FETCHMODE_ASSOC); + if (PEAR::isError($releases)) { + return $releases; + } $rdir = $this->_restdir . DIRECTORY_SEPARATOR . 'r'; if (!is_dir($rdir)) { System::mkdir(array('-p', $rdir)); @@ -335,6 +338,9 @@ foreach ($releases as $release) { $packagexml = $dbh->getOne('SELECT packagexml FROM files WHERE package = ? AND release = ?', array($pid, $release['id'])); + if (PEAR::isError($packagexml)) { + return $packagexml; + } $extra = ''; if (strpos($packagexml, ' version="2.0"')) { // little quick hack to determine package.xml version | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, include, pearrestphp, pearweb |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pearweb /include pear-rest.php | Greg Beaver | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pearweb /include pear-rest.php | Greg Beaver | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-database-user.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| Featured Websites | ||||
|