Support zend_version()

PEAR uses zend_version(). Let's support it too.
Esse commit está contido em:
Joel Marcey
2013-07-25 09:30:25 -07:00
commit de Sara Golemon
commit a7c6c411e2
3 arquivos alterados com 8 adições e 2 exclusões
+5 -2
Ver Arquivo
@@ -36,6 +36,8 @@
#include "hphp/runtime/vm/request_arena.h"
#define ZEND_VERSION "2.4.99"
namespace HPHP {
///////////////////////////////////////////////////////////////////////////////
@@ -858,7 +860,7 @@ String f_sys_get_temp_dir() {
}
String f_zend_logo_guid() {
throw NotSupportedException(__func__, "not zend anymore");
throw NotSupportedException(__func__, "deprecated and removed");
}
int64_t f_zend_thread_id() {
@@ -866,9 +868,10 @@ int64_t f_zend_thread_id() {
}
String f_zend_version() {
throw NotSupportedException(__func__, "not zend anymore");
return ZEND_VERSION;
}
///////////////////////////////////////////////////////////////////////////////
#define sign(n) ((n)<0?-1:((n)>0?1:0))
+2
Ver Arquivo
@@ -36,3 +36,5 @@ var_dump(putenv("FOO=bar"));
var_dump(!putenv("FOO"));
var_dump(!version_compare("1.3.0.dev", "1.1.2", "<"));
var_dump(version_compare(zend_version(), "2.4.99", ">="));
@@ -20,3 +20,4 @@ string(14) "5.4.999-hiphop"
bool(true)
bool(true)
bool(true)
bool(true)