"ssl", "peer_certificate",
zcert);
peer_cert = NULL;
- efree(zcert);
+ FREE_ZVAL(zcert);
}
if (SUCCESS == php_stream_context_get_option(
zend_list_insert(mycert,
php_openssl_get_x509_list_id()));
add_next_index_zval(arr, zcert);
+ FREE_ZVAL(zcert);
}
- efree(zcert);
} else {
ZVAL_NULL(arr);
}
}
if (datalen < 0 || (*p) + datalen >= max) {
- zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, max - (*p));
+ zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, (long)(max - (*p)));
return 0;
}
}
if (datalen < 0 || (*p) + datalen >= max) {
- zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, max - (*p));
+ zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, (long)(max - (*p)));
return 0;
}
- future: respect scope ("php > function foo() { $[tab]" should only expand to local variables...)
*/
- char *retval;
+ char *retval = NULL;
int textlen = strlen(text);
TSRMLS_FETCH();