beansbooks icon indicating copy to clipboard operation
beansbooks copied to clipboard

Kohana Upgrade + Database Support

Open funnylookinhat opened this issue 12 years ago • 5 comments

With PHP 5.5, mysql_connect() and it's associated functions are officially deprecated. We need to migrate the base framework from Kohana 3.2 to 3.4 ( or whatever is most recently available ) and ensure that the MySQLi database driver works and implements correctly.

PHP 5.5 is default in Ubuntu 14.04 - this should be accomplished ( at the latest ) in time for that release.

MySQLi Support: https://github.com/kohana/database/blob/3.4/develop/classes/Kohana/Database/MySQLi.php

Kohana 3.4: https://github.com/kohana/core/tree/3.4/develop

funnylookinhat avatar Feb 05 '14 12:02 funnylookinhat

NOTE: All ORM functions that return a result with

->find_all();

will now have to use

find_all()->as_array();

Per a change in 3.3 - unverified in 3.4.

funnylookinhat avatar Mar 12 '14 17:03 funnylookinhat

Revising this issue to represent Ubuntu 14.04 / PHP 5 support. Re-assigned to v1.2.

funnylookinhat avatar May 29 '14 16:05 funnylookinhat

[ Solved for v1.2 ] Moving to Milestone v1.3

Pending: Proper MySQLi support.

funnylookinhat avatar Jun 03 '14 17:06 funnylookinhat

Per #201 discussion and outside planning - this should also include changing the deployment method of Kohana and any other sub-modules to use composer.

funnylookinhat avatar Feb 24 '15 22:02 funnylookinhat

Old ticket, but figured I'd post here as well. Kohana 3.3 supports MySQLi. They however changed how autoloading works, so every application class will need its filename updated, (app/classes/beans/report.php for example needs to be app/classes/Beans/Report.php as the class name is Beans_Report).

I ran into this issue because our environment is MariaDB 10 with PHP 7.0, which completely removed those functions! :(

cdp1337 avatar May 05 '16 05:05 cdp1337