{"action":"closed","issue":{"url":"https://api.github.com/repos/consolibyte/quickbooks-php/issues/167","repository_url":"https://api.github.com/repos/consolibyte/quickbooks-php","labels_url":"https://api.github.com/repos/consolibyte/quickbooks-php/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/consolibyte/quickbooks-php/issues/167/comments","events_url":"https://api.github.com/repos/consolibyte/quickbooks-php/issues/167/events","html_url":"https://github.com/consolibyte/quickbooks-php/issues/167","id":222234882,"number":167,"title":"Error in QuickBooks_Loader::Load() after upgrading to PHP 5.6-30","user":{"login":"Eiriksmal","id":7747587,"avatar_url":"https://avatars1.githubusercontent.com/u/7747587?v=3","gravatar_id":"","url":"https://api.github.com/users/Eiriksmal","html_url":"https://github.com/Eiriksmal","followers_url":"https://api.github.com/users/Eiriksmal/followers","following_url":"https://api.github.com/users/Eiriksmal/following{/other_user}","gists_url":"https://api.github.com/users/Eiriksmal/gists{/gist_id}","starred_url":"https://api.github.com/users/Eiriksmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eiriksmal/subscriptions","organizations_url":"https://api.github.com/users/Eiriksmal/orgs","repos_url":"https://api.github.com/users/Eiriksmal/repos","events_url":"https://api.github.com/users/Eiriksmal/events{/privacy}","received_events_url":"https://api.github.com/users/Eiriksmal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-17T21:20:16Z","updated_at":"2017-04-18T20:12:08Z","closed_at":"2017-04-18T20:12:08Z","body":"Our server's on 5.6.26 and the library works like a charm. I upgraded to 5.6.30 this morning to get the security and bug fixes contained in minor versions 5.6.27->5.6.30, and the library will no longer load!\r\n\r\nNot really sure what changed to break it. I'm lost as to what's happening:\r\nError:\r\n```\r\nPHP Fatal error:  require_once(): Failed opening required '.../libraries/quickbooks-php-master/QuickBooks/Driver/.php' in .../libraries/quickbooks-php-master/QuickBooks/Loader.php on line 56\r\n```\r\n\r\nIt successfully loads a lot of files, then appears to die when trying to load `/QuickBooks/Driver/Mysqli.php`, if I'm not mistaken.\r\n\r\nIt looks like the usual order, from observing the same code running under PHP 5.6.26, is Utilities -> Factory -> Mysqli -> Sql -> Driver. Running under PHP 5.6.30 it tries loading: Utilities -> Factory -> `loading file [/QuickBooks/Driver/.php]`. \r\n\r\nAdding a backtrace to Loader.php running PHP 5.6.26 shows:\r\n```\r\nWhen loading Mysqli.php:\r\n\t1) [main]\r\n\t2) (our function that intializes Quickbooks)\r\n\t3) .../QuickBooks/Utilities.php(628): QuickBooks_Utilities::driverFactory('mysqli://[redact]...', Array)\r\n\t4) .../QuickBooks/Utilities.php(232): QuickBooks_Driver_Factory::create('mysqli://[redact]...', Array, Array, 1)\r\n\t5) .../QuickBooks/Driver/Factory.php(95): class_exists('QuickBooks_Driv...')\r\n\t6) [internal function]: spl_autoload_call('QuickBooks_Driv...')\r\n\t7) [internal function]: QuickBooks_Loader::__autoload('QuickBooks_Driv...')\r\n\r\nLoading Driver.php\r\n\t1) [main]\r\n\t2) (our function that intializes Quickbooks)\r\n\t3) ...quickbooks-php-master/QuickBooks/Utilities.php(628): QuickBooks_Utilities::driverFactory('mysqli://[redact]...', Array)\r\n\t4) ...quickbooks-php-master/QuickBooks/Utilities.php(232): QuickBooks_Driver_Factory::create('mysqli://[redact]...', Array, Array, 1)\r\n\t5) ...quickbooks-php-master/QuickBooks/Driver/Factory.php(95): class_exists('QuickBooks_Driv...')\r\n\t6) [internal function]: spl_autoload_call('QuickBooks_Driv...')\r\n\t7) [internal function]: QuickBooks_Loader::__autoload('QuickBooks_Driv...')\r\n\t8) ...quickbooks-php-master/QuickBooks/Loader.php(120): QuickBooks_Loader::load('/QuickBooks/Dri...', false)\r\n\t9) ...quickbooks-php-master/QuickBooks/Loader.php(72): require_once('/srv/www/[redact]...')\r\n\t10) ...quickbooks-php-master/QuickBooks/Driver/Sql/Mysqli.php(31): QuickBooks_Loader::load('/QuickBooks/Dri...', false)\r\n\t11) ...quickbooks-php-master/QuickBooks/Loader.php(72): require_once('/srv/www/[redact]...')\r\n\t12) ...quickbooks-php-master/QuickBooks/Driver/Sql.php(367): spl_autoload_call('QuickBooks_Driv...')\r\n\t13) [internal function]: QuickBooks_Loader::__autoload('QuickBooks_Driv...')\r\n```\r\n\r\nPackages affected in Amazon Linux / Redhat Linux:\r\n\r\n```\r\n php56                  x86_64         5.6.26-1.129.amzn1\r\n php56-bcmath           x86_64         5.6.26-1.129.amzn1\r\n php56-cli              x86_64         5.6.26-1.129.amzn1\r\n php56-common           x86_64         5.6.26-1.129.amzn1\r\n php56-gd               x86_64         5.6.26-1.129.amzn1\r\n php56-mbstring         x86_64         5.6.26-1.129.amzn1\r\n php56-mcrypt           x86_64         5.6.26-1.129.amzn1\r\n php56-mysqlnd          x86_64         5.6.26-1.129.amzn1\r\n php56-pdo              x86_64         5.6.26-1.129.amzn1\r\n php56-process          x86_64         5.6.26-1.129.amzn1\r\n php56-xml              x86_64         5.6.26-1.129.amzn1\r\n php56-xmlrpc           x86_64         5.6.26-1.129.amzn1\r\n```\r\n\r\nAgain, touching none of our/your code and reverting those 12 packages back to 5.6.26 lets the code work again. This was observed under our code at the time, a clone of this repo from mid-October, and again under the latest code, from a clone taken this morning.\r\n\r\nAny ideas?"}}
{"actor":{"display_login":"Eiriksmal"}}