Giter Site home page Giter Site logo

php5-compatibility-layer's Introduction

php5-compatibility-layer

Implements discontinued php5 functions on php7

Install via composer

$ composer require fbraz3/php5-compatibility-layer

php5-compatibility-layer's People

Contributors

fbraz3 avatar rodrigohahn avatar tauanmarcel avatar

Stargazers

Robson da Rosa Soares avatar Juliano Baladão avatar Igor Duarte avatar  avatar  avatar

Watchers

Rafael Araujo avatar Juliano Baladão avatar  avatar  avatar

php5-compatibility-layer's Issues

Wrong argument order in exception throwing

If mysqli is not available, i get the following misleading error message during inclusion of wrapper-mysql.php:
PHP Fatal error: Uncaught TypeError: Exception::__construct(): Argument kinghost/php5-compat#2 ($code) must be of type int, string given in Standard input code:2
Stack trace:
#0 Standard input code(2): Exception->__construct()
kinghost/php5-compat#1 {main}
thrown in Standard input code on line 62

Line 62 should imo read:
throw new Exception ('MySQL wrapper requires the mysqli extension', E_ERROR);

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.