PHP EPP library IT-NIC (v2.9)

Two more bugs found by Luca have been corrected.

1) Using an “in_array” comparision containing a boolean TRUE will cause this to match ANY string passed to it, since “in_array” does not do type-safe comparisons. This error relates to the values for “consentforpublishing” and has caused every contact (where it was manually assigned a string value) to be created with it set to ‘TRUE’ instead of whatever was your intention!

2) The storage driver will not save the “consentforpublishing” information correctly. The SQL-type for it was defined to be MySQL’s tinyint by the schema provided in all versions. Since all doStore() calls will encapsulate every variable in between two single apostrophes (ie. ‘value’), this has caused every contact to be saved with “consentforpublishing” set to ‘0’.

ATTENTION! Everyone using the storage driver provided with an implementation up to 2.9 will therefor have lost information about the “consentforpublishing” value. Everyone is strongly advised to UPGRADE and check backups and set things straight with!

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

DOWNLOAD: EPP library IT-NIC (PHP) (6963 downloads )

PHP EPP library IT-NIC (v2.8.1)

Removed a minor error from the update-domain template which caused the removal of NS records to fail. Also updated both CLI examples for updating NS and tech-c records in order to support adding or removing of multiple values in one go.

Thanks Marco for pointing both out!

Cleaned up the ‘CLI-generic-update-domain-authinfo.php’ example and combined a common interface to all major update operations inside of a single example called ‘CLI-generic-domain-script.php’.

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

DOWNLOAD: EPP library IT-NIC (PHP) (6776 downloads )