generalized the case with secure memory zeroing
more usages for ZEND_SECURE_ZERO()
remove useless check
fix printf format
fix condition
there can be only one ... of the identical expressions
fix conditions
fix printf format
remove useless condition
fix an always true condition and improve the error check
fix empty string check
fix condition
fix signed/unsigned warning and add a note
fix length data types
avoid unnecessary strlen calls in loop
avoid multiple strlen calls for the same buffer