Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

php 5.2 incompatible #7

Open
od3n opened this issue Aug 16, 2014 · 4 comments
Open

php 5.2 incompatible #7

od3n opened this issue Aug 16, 2014 · 4 comments

Comments

@od3n
Copy link

od3n commented Aug 16, 2014

Is there any version that works with php 5.2?

@Patroklo
Copy link
Contributor

what problems do you have with 5.2? any error?

@od3n
Copy link
Author

od3n commented Aug 16, 2014

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /vagrant/myproject/application/libraries/elegant-orm/Elegant.php on line 40

specifying the third parameter (prepend), the spl_autoload_register function will fail badly in PHP 5.2

@Patroklo
Copy link
Contributor

Ok, first of all, I don't have elegant installed in any codeigniter in my server, so I havent checked this fix, it's up to you, please, to see if it works OK.

So, check https://github.com/Patroklo/elegant-orm/tree/master-for-php-5.2 , download it an see if it works for you.

@od3n
Copy link
Author

od3n commented Aug 17, 2014

Thanks for the fix.

But still, Namespaces are not supported prior to 5.3

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /vagrant/myproject/application/orm_models/financial.php on line 6

<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Financial_model extends Elegant\Model {

    protected $table = "financials";

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants