Git Product home page Git Product logo

Comments (2)

speedmax avatar speedmax commented on July 23, 2024

Problem with outputting protected class data through h2o

Hello alex,

Thanks again for submitting this ticket, this isn’t really a bug of h2o template, but a issue with that ORM library you are using.

As i have demonstrated in this code paste which isset() php function will always return false on overloaded properties using magic method (__get()) unless (__isset()) is also implemented.

http://gist.github.com/76545

Here is the patch file to fix the problem for you and feel free to pass on the patch to the original author, at the mean time i will mark this ticket as invalid and feel free to contact me if u need help

please add this method to your activerecord.php

http://gist.github.com/76743

by Taylor luk

from h2o-php.

speedmax avatar speedmax commented on July 23, 2024

Problem with outputting protected class data through h2o

The library you were using contribute some of the problem where h2o also contains problem working with php overloaded objects since all magical object methods in php doesn’t return the variable reference (alias) by default.

Latest commit should fix this issue with updated specs.

https://github.com/speedmax/h2o-php/tree/5026bf372cb7fc93d9d477c17f0bb838ee2c5a87

by Taylor luk

from h2o-php.

Related Issues (20)

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.