Giter Site home page Giter Site logo

Comments (6)

rlanvin avatar rlanvin commented on July 23, 2024

Hey thanks for the bug report. I can't reproduce this though. What version of the library, and what version of PHP are you using?

from php-rrule.

rlanvin avatar rlanvin commented on July 23, 2024

@likebrain Any news?

from php-rrule.

rriverak avatar rriverak commented on July 23, 2024

Hey @rlanvin,
sry for my late replay.

Im using the this setup:

Dev:
XAMPP Version 7.2.0
PHP 7.2

Stage:
Ubuntu 16.2
PHP 7.2.0

My Composer Require

    {
        "php": ">=7.0.0",
        "slim/slim": "^3.1",
        "monolog/monolog": "^1.17",
        "doctrine/orm": "^2.5",
        "tuupola/slim-basic-auth": "^2.2",
        "slim/twig-view": "^2.2",
        "wyrihaximus/html-compress": "^1.2",
        "slim/flash": "^0.4.0",
        "matthiasmullie/minify": "^1.3",
        "rlanvin/php-rrule": "^1.6"
    }

In the scenario above, I store the RFC string in the database and want to reuse it.

from php-rrule.

rlanvin avatar rlanvin commented on July 23, 2024

Thanks!

PHP 7.2.0

That's probably the problem here. The lib is not tested with PHP 7.2 (yet), so my first guess is that there must be some incompatibly. I'll check when I have a moment.

from php-rrule.

rlanvin avatar rlanvin commented on July 23, 2024

I still cannot reproduce this bug with PHP 7.2.2. This is very odd...

In the scenario above, I store the RFC string in the database and want to reuse it.

I'm doing this too, and it works fine. It must come from somewhere else in your code, or from a very specific environment (but I really can't see what could cause this right now).

That cause a InvalidArgumentException in humanReadable.

The exception "The INTERVAL rule part must be a positive integer (> 0)" can only come from the constructor.

  • Are you sure you get this exception from humanReadable?
  • Can you provide the complete stack trace?
  • Can you echo or var_dump the value of $myRFCString before calling the constructor?

from php-rrule.

rlanvin avatar rlanvin commented on July 23, 2024

@likebrain If you don't have any news on this I'll close the ticket because I don't have enough info to reproduce.

from php-rrule.

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.