Comments (6)
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.
@likebrain Any news?
from php-rrule.
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.
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.
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.
@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)
- 1.x branch not compatible with PHP 8.1 due to return type enforcement of `\Iterable` HOT 7
- no such time zone: 'ATLANTIC/AZORES': U_ILLEGAL_ARGUMENT_ERROR" HOT 8
- `getOccurrencesAfter` doesn't work with microseconds HOT 4
- "IntlDateFormatter::create() failed. Error Code: 1 "datefmt_create: no such time zone: 'ATLANTIC/AZORES': U_ILLEGAL_ARGUMENT_ERROR" (this should not happen, please open a bug report!)". HOT 1
- getNextOccurance HOT 3
- Grammar problem in German translation HOT 4
- Weekly WKST Parameter issue HOT 4
- Access humanReadable from RSET? HOT 3
- Humanreadable gets monthly wrong HOT 4
- addExRule not working for me HOT 4
- Drop support for PHP < 7.3 HOT 2
- Daylight Savings Time issue with PHP 8.1 HOT 13
- How to create Rrule for every day from X to Y? HOT 4
- How to use exdate with byhour? HOT 3
- Question: Performance optimization when calculating occurrences using multiple rules HOT 3
- exRule and addRule conflict HOT 3
- More forgiving DTSTART behavior when using only date for UNTIL HOT 2
- Nested exrules HOT 2
- occursAt sometimes failing HOT 2
- Problem with getOccurrencesAfter HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-rrule.