Skip to content

Fix issue #16 https://github.com/cfortune/PHP-Bounce-Handler/issues/16#17

Open
rbairwell wants to merge 15 commits intocfortune:masterfrom
rbairwell:master
Open

Fix issue #16 https://github.com/cfortune/PHP-Bounce-Handler/issues/16#17
rbairwell wants to merge 15 commits intocfortune:masterfrom
rbairwell:master

Conversation

@rbairwell
Copy link

Fixes the use of /e in preg_replace as per @Orayi suggestion in #16 (see commit 165ce06 ).

Lots of other changes including:

  • Change code formatting to be based more on PSR1/2 and Symfony styles
  • Added PHPDocumentor blocks (not all methods/properties are fully commented, but it is a start!)
  • Replaced split() (which is depreciated) with explode and preg_split
  • Fixed a number of code smells (undefined variables, missing quote marks around array members, unusued functions)
  • Allow for bounce_responses.php and bounce_statuscodes.php to be optional (the constructor and fetch_status_messages now allow the details to be passed in and will only load those files if there is missing information)

…split() is deprecated as of PHP5.3.0. Added a few more return/parameter type comments, fix uncommented 'boundary' content-type and check more for existance of array before comparing contents
…ce files are not necessarily needed (but are loaded if the parameters are not provided for backwards compatibility). Change file header to be PHPDocumentor compliant. General code cleanup and commenting.
…to http://localhost:8000/testdriver1.php and also add a bit more information about the results. Fix a few edge case issues in the main class highlighted by the "test harness"
…nger than 4 characters or shorter than 2) and "odder" email addresses
… the testdriver. Allow the "human readable" status code to be extracted in an array instead of being forced as HTML. Improve handling of non-standard (2.0) style reports (instead of just the RFC supporting 2.0.0). Fix issue where include_once was used - should have just been include/require
… backwards compatibility by renaming methods. General tidyup and ensuring bounce_responses stays in PEAR format after updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant