This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Handle the issue with FNB's multiple elements on a single line which … #35
Open
jacques
wants to merge
11
commits into
asgrim:master
Choose a base branch
from
jacques:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…throws 'RuntimeException: Failed to initialize DateTime for string:'
Hmm, not currently sure how to make this more clever regarding the various ways the OFXs are generated. Ideally, we need to conform to spec (we'd need to read up on it), and if an OFX doesn't follow spec, then it wouldn't be supported... |
asgrim
suggested changes
Jan 7, 2017
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rejecting for now as it's breaking existing support for other line endings (that's a no-go unless targeting a BC break release)
@jacques what are the differences here in the 2.00 format please? Does it actually warrant a second class? Also missing tests for this new class :/ |
asgrim
added
BC break
Changes in this PR/issue would result in a BC break
needs tests
PR that needs tests added
labels
Oct 29, 2018
…ide, reported issue asgrim#49
Some OFX files don't have all the date tags. So when the value of the date tag that doesn't exist and it is passed as a parameter to $dateString into the function "createDateTimeFromStr", this function returns "=> Failed to initialize DateTime for string: ". To bring more flexibility, I suggest testing first if dateString is set and is not empty before converting it into a string.
In OFX files, some tag values like in MEMO tag contains special characters such as the 'at' sign (@) which generate an issue with simplexml_load_string function. `LibXMLError::__set_state(array( 'level' => 3, 'code' => 68, 'column' => 30, 'message' => 'xmlParseEntityRef: no name ', 'file' => '', 'line' => 27, )),` This code simply converts the '&' sign to its html code (&) which is tolerated by simplexml_load_string.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BC break
Changes in this PR/issue would result in a BC break
bug
This is a bug report issue or PR that fixes a bug
needs tests
PR that needs tests added
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…throws 'RuntimeException: Failed to initialize DateTime for string:'