I've been trying to assemble a working version of libphonenumber-for-PHP and wanted to incorporate your patches. However, after looking more closely at your patches, I had a couple questions:
Shouldn't the isValidNumber code change be applied to all platforms, instead of just Windows? The EOL character could have been changed in the files regardless of the platform where the code is running, so it seems safest to explicitly remove \r and \n in all cases.
Do you have any documentation for the validation rule changes for Ecuador and Guadeloupe? As I understand it, the source for all the metadata is google's original metadata file, at https://code.google.com/p/libphonenumber/source/browse/trunk/resources/PhoneNumberMetaData.xml. That metadata is being regularly maintained, so I'd expect its information to be accurate. However, none of your changes match what's in that metadata file. Also, all of the PhoneNumberMetadata* files should periodically be automatically regenerated from the original xml file, at which point any hard-coded changes to those files will disappear.
Thanks!
There are the next fixes:
Please, check it and thanks for a good port of phonelib.