| Summary | > This will break with $year is not a string type. ctype_int *requires* > the input value to be typed as a string and will return unexpected > results when it is passed an integer (as the phpdoc says this method > takes). oh, thanks for catching this. |
| Queue | Horde Framework Packages |
| Queue Version | Git master |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | thomas.jarosch (at) intra2net (dot) com |
| Created | 08/24/2013 (4458 days ago) |
| Due | |
| Updated | 08/26/2013 (4456 days ago) |
| Assigned | 08/24/2013 (4458 days ago) |
| Resolved | 08/24/2013 (4458 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
Summary ⇒ > This will break with $year is not a string type. ctype_int *requires* > the input value to be typed as a string and will return unexpected > results when it is passed an integer (as the phpdoc says this method > takes). oh, thanks for catching this.
State ⇒ Not A Bug
*requires* the input value to be typed as a string and will return
unexpected results when it is passed an integer (as the phpdoc says
this method takes).
expected result.".
ctype_int If indeed it is more efficient than to just use the simple
regex.
The speed gain is 0.1s -> Not worth the trouble.
State ⇒ Feedback
the input value to be typed as a string and will return unexpected
results when it is passed an integer (as the phpdoc says this method
takes).
$year must be explicitly cast to string before being passed to
ctype_int If indeed it is more efficient than to just use the simple
regex.
Priority ⇒ 1. Low
New Attachment: 0001-Replace-simple-regex-with-ctype_digit.patch
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ Horde_Date: Replace simple regex with ctype_digit()
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Horde Framework Packages