Skip to content

Instantly share code, notes, and snippets.

'./configure' \
'--prefix=/home/huixinchen/local/php55/' \
'--enable-cli' \
'--enable-fpm' \
'--with-config-file-path=/home/huixinchen/local/php55/' \
'--with-config-file-scan-dir=/home/huixinchen/local/php55/conf.d' \
'--enable-gd' \
'--enable-mbstring' \
'--with-zlib' \
'--with-bz2' \
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index f1e9614..e699bea 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -989,6 +989,58 @@ ZEND_API int zend_parse_parameters_ex(int flags, int num_args TSRMLS_DC, const c
}
/* }}} */
+ZEND_API zend_string *zend_parse_parameter_str(int offset TSRMLS_DC) /* {{{ */ {
+ int arg_count = Z_LVAL_P(zend_vm_stack_top(TSRMLS_C) - 1);
$ sudo tracert git.php.net
traceroute to git.php.net (72.52.91.13), 30 hops max, 40 byte packets
1 10.210.230.1 (10.210.230.1) 0.873 ms 1.000 ms 1.235 ms
2 10.210.4.129 (10.210.4.129) 0.421 ms 0.808 ms 0.931 ms
3 10.210.2.67 (10.210.2.67) 3.559 ms 3.562 ms 4.021 ms
4 * * *
5 * * *
6 61.135.148.197 (61.135.148.197) 6.095 ms 5.398 ms 1.457 ms
7 61.148.143.13 (61.148.143.13) 3.169 ms 3.156 ms 3.127 ms
8 202.96.12.93 (202.96.12.93) 7.128 ms 4.644 ms 4.589 ms
@laruence
laruence / gist:2a488a14e667de125546
Last active August 29, 2015 14:02
Numeric zend_string
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index ea75c15..a9a0500 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -813,7 +813,7 @@ void fetch_array_dim(znode *result, znode *parent, znode *dim TSRMLS_DC) /* {{{
ulong index;
int numeric = 0;
- ZEND_HANDLE_NUMERIC_EX(Z_STRVAL(CONSTANT(opline.op2.constant)), Z_STRLEN(CONSTANT(opline.op2.constant))+
1, index, numeric = 1);
$ GIT_CURL_VERBOSE=1 git push
* Couldn't find host git.php.net in the .netrc file, using defaults
* About to connect() to git.php.net port 443
* Expire at 1403145106 / 617449 (300000ms)
* Trying 72.52.91.13... * Expire at 1403145106 / 617620 (300000ms)
* Connected to git.php.net (72.52.91.13) port 443
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using DHE-RSA-AES256-SHA
typedef struct {
long gc;
long h;
int len;
char val[1];
} zend_string;
#define STATIC_STR_INIT(name, str, size) \
struct { \
long gc; \
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 6b469c2..5500f4f 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -672,7 +672,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
break;
}
- if (zend_fcall_info_init(arg, 0, fci, fcc, NULL, &is_callable_error TSRMLS_CC) == SUCCESS) {
+ if (zend_fcall_info_init(arg, 0, fci, fcc, &is_callable_error TSRMLS_CC) == SUCCESS) {
$ SCRIPT_NAME=/frontcontroller21.php REQUEST_URI=/frontcontroller21.php/index.php?test=hi PATH_INFO=/index.php QUERY_STRING="test=hi" /home/huixinchen/opensource/php-ng/sapi/cgi/php-cgi -C -n -c '/home/huixinchen/opensource/php-ng/tmp-php.ini' -d "output_handler=" -d "open_basedir=" -d "safe_mode=0" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=1" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "magic_quotes_runtime=0" -d "ignore_repeated_errors=0" -d "precision=14" -d "memory_limit=128M" -d "opcache.fast_shutdown=0" -d "opcache.file_update_protection=0" -d "extension_dir=/home/huixinchen/opensource/php-ng/modules/" -d "zend_extension=/home/huixinchen/opensource/php-ng/modules/opcache.so" -d "session.auto_start=0" -d "zlib.output_c
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 56d0d97..5331b4b 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2751,6 +2751,27 @@ static int zend_do_convert_strlen(zend_op *init_opline, znode *result TSRMLS_DC)
}
/* }}} */
+static int zend_do_convert_defined(zend_op *init_opline, znode *result TSRMLS_DC) /* {{{ */
+{
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 56d0d97..90d36b1 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2751,6 +2751,54 @@ static int zend_do_convert_strlen(zend_op *init_opline, znode *result TSRMLS_DC)
}
/* }}} */
+static int zend_do_convert_type_check(zend_op *init_opline, znode *result, zend_uint type TSRMLS_DC) /* {{{ */
+{