Giter Site home page Giter Site logo

php 5.2 incompatible about elegant-orm HOT 4 OPEN

od3n avatar od3n commented on September 4, 2024
php 5.2 incompatible

from elegant-orm.

Comments (4)

Patroklo avatar Patroklo commented on September 4, 2024

what problems do you have with 5.2? any error?

from elegant-orm.

od3n avatar od3n commented on September 4, 2024

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

from elegant-orm.

Patroklo avatar Patroklo commented on September 4, 2024

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.

from elegant-orm.

od3n avatar od3n commented on September 4, 2024

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";

}

from elegant-orm.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.