Raphaël Gertz [Sun, 10 Feb 2019 05:39:19 +0000 (06:39 +0100)]
Remove stdbool, seems a deprecaded c99 feature
Add dump feature header
Add pcre header
Add root zend_string in bbcode_object
Fix type of flag to zend_long
Disable definition of not yet implemented flags
Fix accordingly default flag
Fix bbcode_destroy and bbcode_free prototypes to match php7 definitions
Reimplement bbcode_free to correctly free ressources of custom bbcode_object
Reimplement bbcode_destroy to trigger the destructor on the zend_object
Fix bbcode_clone to correctly duplicate object
Add comment and default members values in bbcode_create function
Allow tag arg to be null (we may use that to implement a default tag array later)
Implement bbcode_gen_child and bbcode_gen_parent functions (used in bbcode_check_tag)
Finish implementation of bbcode_check_tag
Check that tag don't contains a special chars =[]()/\\ which may trigger errors in pcre search
Sanitize warning messages
Add warning for empty parent array
Fix immutable array detection
Disable useless immutable empty array copy
Add open, close and default keys generation for root and multi types
Add child generation for root and multi types
Add parent generation for multi and single types
Add arg and img automatic support in single type
Compute opattern and cpattern, that we may use later for child detection
Duplicate root string to avoid any trouble with refcount
Use latest style in parameters parsing in constructor
Enable exception throwing to prevent the possibility to have an incomplete object returned
Comment useless code in destructor
Add work in progress bbcode_parse implementation
Add work in progress BBCode::parse method
Add various cleanup and comments
Raphaël Gertz [Tue, 8 Jan 2019 18:00:49 +0000 (19:00 +0100)]
Switch to single|root|multi type
Add bool feature
Remove IS_CONSTANT type as it's not avaible anymore in current php api
Partial implementation of bbcode_check_tag
Partial implementation of bbcode_check_smiley
Implement destructor
Add todos