Commit 8d6f13e8 authored by Bo Yang's avatar Bo Yang

Fix for php5.5

parent 39159c89
...@@ -1131,7 +1131,7 @@ PHP_METHOD(Timestamp, fromDateTime) { ...@@ -1131,7 +1131,7 @@ PHP_METHOD(Timestamp, fromDateTime) {
} }
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &datetime, if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &datetime,
date_interface_ce) == FAILURE) { PHP_PROTO_CE_UNREF(date_interface_ce)) == FAILURE) {
zend_error(E_USER_ERROR, "Expect DatetimeInterface."); zend_error(E_USER_ERROR, "Expect DatetimeInterface.");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment