Hello,
I was wondering, has anyone tried to run hiphop on Kohana 3.0.x
version ? I`m getting bunch of errors and I`d appreciatte any help:
Theese are the params I`m using for translating the project.
hphp/hphp --input-dir=kohana_project_root/ --keep-tempdir=1 --log=3 -
o /home/vikky/hiphop-translated/fotolida_jenIndex --force=1 -v
"AllDynamic=true" -v "AllVolatile=true"
--> UseUndeclaredGlobalVariable in views where Kohana is sending
variables to view through extract and dynamic include like this:
protected static function capture($kohana_view_filename, array
$kohana_view_data)
{
extract($kohana_view_data, EXTR_SKIP);
ob_start();
include $kohana_view_filename;
return ob_get_clean();
}
Variable are then available like $title, etc., which triggers the
error.
--> UnknownClass ($this->_db = Database::instance($this->_db);) and
few similar to this
abstract class Kohana_Model {
protected $_db = 'default';
public function __construct($db = NULL)
{
if (is_string($this->_db))
{
$this->_db = Database::instance($this->_db);
}
}
}
--> And serveral mistakes(UseUndeclaredConstant, UnknownClass)
concerning standart php classes (and they`re not php 5.3, so should be
OK), it`s SPL.php (ArrayObject), filter.php.
Can anybody give me a hint how to work around theese, or where have I
gone wrong?
Thanks,
Viktor
On 18 bře, 05:40, Keith Clark <
klownkee...@gmail.com> wrote:
> Does NetBeans work for Hiphop? If not I'll just revert to CI.
>
>
>
>
>
>
>
>
>
> On Thu, Mar 17, 2011 at 7:58 PM, John Clegg <
j...@projectx.co.nz> wrote:
> > Hi
>
> > Just an update .
>
> > Thanks to a patch (
> >
https://github.com/ckwalsh/hiphop-php/commit/0549c4efb9f27ff1fcbc6fdb...