{"id":280,"date":"2004-09-30T19:16:03","date_gmt":"2004-09-30T09:16:03","guid":{"rendered":"http:\/\/www.flamingspork.com\/blog\/?p=280"},"modified":"2004-11-12T15:33:27","modified_gmt":"2004-11-12T05:33:27","slug":"pear-bug-2417-patch-incorrect-processing-of-permission-denied-style-error-messages","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2004\/09\/30\/pear-bug-2417-patch-incorrect-processing-of-permission-denied-style-error-messages\/","title":{"rendered":"PEAR :: Bug #2417 :: [PATCH] Incorrect processing of &#8216;permission denied&#8217; style error messages"},"content":{"rendered":"<p><a href=\"http:\/\/pear.php.net\/bugs\/bug.php?id=2417\">PEAR :: Bug #2417 :: [PATCH] Incorrect processing of &#8216;permission denied&#8217; style error messages<\/a><\/p>\n<p>Got the bugger &#8211; and supplied a patch that fixes it!<\/p>\n<p>This should spell an end to those annoying (and really unhelpful) &#8220;DB Error: unknown error&#8221; messages from PEAR::DB when the user doesn&#8217;t have enough permissions.<\/p>\n<p>Been hitting this a bit with MemberDB.<\/p>\n<p>I&#8217;d love PEAR::DB to return back the native error string as well&#8230; but it&#8217;s kinda hidden.<\/p>\n<p>Maybe I should be changing the getMessage() methods to return the PEAR message *and* the extra debug stuff? hrrmmm&#8230;<\/p>\n<p>oh well, for later<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PEAR :: Bug #2417 :: [PATCH] Incorrect processing of &#8216;permission denied&#8217; style error messages Got the bugger &#8211; and supplied a patch that fixes it! This should spell an end to those annoying (and really unhelpful) &#8220;DB Error: unknown error&#8221; &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2004\/09\/30\/pear-bug-2417-patch-incorrect-processing-of-permission-denied-style-error-messages\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6,13],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-linux-aus","category-memberdb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-4w","jetpack-related-posts":[{"id":230,"url":"https:\/\/www.flamingspork.com\/blog\/2004\/05\/02\/memberdb-work\/","url_meta":{"origin":280,"position":0},"title":"memberdb work","author":"Stewart Smith","date":"2004-05-02","format":false,"excerpt":"been doing a fair bit of mods to memberdb recently - getting features in. - new css based look (which is almost correct) - more solid code around the place - better error reporting (that needs debugging... hahaha) - a start on the positions tracking UI - change password UI\u2026","rel":"","context":"In &quot;linux-aus&quot;","block_context":{"text":"linux-aus","link":"https:\/\/www.flamingspork.com\/blog\/category\/linux-aus\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":973,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/01\/11\/memberdb-speed-improvements\/","url_meta":{"origin":280,"position":1},"title":"MemberDB speed improvements","author":"Stewart Smith","date":"2008-01-11","format":false,"excerpt":"So I finally installed the xdebug PHP extension and started doing some performance analysis of MemberDB using xdebug and kcachegrind. The upshot of which is a number of commits to the bzr tree that dramatically improve performance in several key areas. The answer? Caching. I'm not even talking using memcached\u2026","rel":"","context":"In &quot;linux-aus&quot;","block_context":{"text":"linux-aus","link":"https:\/\/www.flamingspork.com\/blog\/category\/linux-aus\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2253,"url":"https:\/\/www.flamingspork.com\/blog\/2011\/01\/05\/is-your-storage-engine-buggy-or-the-database-server\/","url_meta":{"origin":280,"position":2},"title":"Is your Storage Engine buggy or the database server?","author":"Stewart Smith","date":"2011-01-05","format":false,"excerpt":"If your storage engine returns an error from rnd_init (or doStartTableScan as it's named in Drizzle) and does not save this error and return it in any subsequent calls to rnd_next, your engine is buggy. Namely it is buggy in that a) an error may not be reported back to\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":365,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/02\/17\/only-18-bugs-for-memberdb-04\/","url_meta":{"origin":280,"position":3},"title":"Only 18 bugs for MemberDB 0.4!","author":"Stewart Smith","date":"2005-02-17","format":false,"excerpt":"Yes \"only\" 18.... although the \"make installation procedure not suck\" has to be the most important. I'm very tempted to branch and make a 0.3.1 release the \"no, it really works this time\" release. mainly because there were still a few annoying bugs (being female could cause you trouble if\u2026","rel":"","context":"In &quot;linux-aus&quot;","block_context":{"text":"linux-aus","link":"https:\/\/www.flamingspork.com\/blog\/category\/linux-aus\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":749,"url":"https:\/\/www.flamingspork.com\/blog\/2006\/10\/21\/memberdb-a-membership-database-version-05-released\/","url_meta":{"origin":280,"position":4},"title":"MemberDB &#8211; A Membership Database &#8211; Version 0.5 released","author":"Stewart Smith","date":"2006-10-21","format":false,"excerpt":"MemberDB - A Membership Database Released 0.5. Pretty much the same as 0.4 but with a bunch of bug fixes. As used for the recent(ish) LUV election. This is what will probably be used for the next LA election too.","rel":"","context":"In &quot;linux-aus&quot;","block_context":{"text":"linux-aus","link":"https:\/\/www.flamingspork.com\/blog\/category\/linux-aus\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":450,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/08\/08\/why-returns-1-on-error-is-bad\/","url_meta":{"origin":280,"position":5},"title":"Why &#8220;returns -1 on error&#8221; is bad","author":"Stewart Smith","date":"2005-08-08","format":false,"excerpt":"(a general note on what's good practice) In C, 0 is false and !0 is true. In the dim past there was an elsewhere where 0 was true and !0 was false. Why? Because there can be more than one error state and this is usually more interesting than how\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":2803,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/280\/revisions\/2803"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}