Skip to content

Instantly share code, notes, and snippets.

View reeze's full-sized avatar
🎯
Focusing

Reeze Xia reeze

🎯
Focusing
View GitHub Profile
cluster 4be85a98-8ef4-4844-bfbe-62817179c02c
health HEALTH_WARN
11585 pgs backfill
8417 pgs backfill_toofull
3169 pgs backfilling
829 pgs degraded
11 pgs incomplete
5 pgs recovering
72 pgs recovery_wait
829 pgs stuck degraded
@reeze
reeze / gist:3750131
Created September 19, 2012 15:00
Soapclient-test
<?php
$client = new SoapClient('http://www.webservicex.net/whois.asmx?WSDL');
$method = 'GetWhoIS';
$args = array('HostName' => 'reeze.cn');
var_dump($client->GetWhoIS(array('HostName' => 'reeze.cn')));
var_dump(call_user_func(array($client, $method), $args));
@reeze
reeze / HD.txt
Created June 27, 2013 11:25 — forked from lexrus/HD.txt
http://devstreaming.apple.com/videos/wwdc/2013/710xfx3xn8197k4i9s2rvyb/710/710-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/202xdx2x47ezp1wein/202/202-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/200xdx2x35e1pxiinm/200/200-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/413xdx5x97itb5ek4yex3r7/413/413-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/612xax4xx65z1ervy5np1qb/612/612-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/221xex4xxohbllf4hblyngt/221/221-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/220xbx4xipaxfd1tggxuoib/220/220-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/711xcx4x8yuutk8sady6t9f/711/711-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/404xbx2xvp1eaaqonr8zokm/404/404-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/505xbx4xrgmhwby4oiwkrpp/505/505-HD.mov?dl=1
#import <Foundation/Foundation.h>
@interface XmlParser : NSObject <NSXMLParserDelegate>
@property (strong, nonatomic) NSData *xmlData;
@property (strong, nonatomic) NSMutableDictionary *dictionary;
@property (strong, nonatomic) NSMutableDictionary *currentNode;
@property (strong, nonatomic) NSMutableDictionary *currentParentNode;
- (id)initWithXMLData:(NSData *)xmlData;
@reeze
reeze / gist:5101596
Created March 6, 2013 18:10
some test failure of non-scalar-key
==> ext/spl/tests/iterator_to_array_nonscalar_keys.diff <==
009+ [4612811918334230528]=>
009- [0]=>
==> ext/spl/tests/recursive_tree_iterator_001.diff <==
052+ [Thu Mar 7 02:03:17 2013] Script: '/Users/reeze/Opensource/php-master-test/ext/spl/tests/recursive_tree_iterator_001.php'
053+ /Users/reeze/Opensource/php-master-test/Zend/zend_execute_API.c(953) : Freeing 0x10857D940 (32 bytes), script=/Users/reeze/Opensource/php-master-test/ext/spl/tests/recursive_tree_iterator_001.php
054+ Last leak repeated 2 times
055+ === Total 3 memory leaks detected ===
==> ext/spl/tests/recursive_tree_iterator_005.diff <==
074+ [Thu Mar 7 02:03:17 2013] Script: '/Users/reeze/Opensource/php-master-test/ext/spl/tests/recursive_tree_iterator_005.php'
@reeze
reeze / gist:5076349
Last active December 14, 2015 10:59
sockets failed
==> ext/sockets/tests/mcast_ipv6_send.diff <==
013+
014+ Warning: socket_set_option(): unable to set socket option [49]: Can't assign requested address in /Users/reeze/Opensource/php-test/php-src-master/ext/sockets/tests/mcast_ipv6_send.php on line 26
015+ bool(false)
013- bool(true)
==> ext/sockets/tests/socket_cmsg_rights.diff <==
014+ int(24)
014- int(32)
018+ [name] => Array
019+ (
@reeze
reeze / 0001-Improved-fix-for-bug-70944.patch
Last active November 21, 2015 06:03
0001-Improved-fix-for-bug-70944.patch
From 3899310384cd2416156dd54d9a6fa2889ba16698 Mon Sep 17 00:00:00 2001
From: Reeze Xia <reeze@php.net>
Date: Sat, 21 Nov 2015 13:46:07 +0800
Subject: [PATCH] Improved fix for bug #70944
---
Zend/tests/bug70944-2.phpt | 20 ++++++++++++++++++++
Zend/zend_exceptions.c | 18 +++++++++++++-----
2 files changed, 33 insertions(+), 5 deletions(-)
create mode 100644 Zend/tests/bug70944-2.phpt
diff --git a/build/config-stubs b/build/config-stubs
index 765eb54..0d84f4b 100755
--- a/build/config-stubs
+++ b/build/config-stubs
@@ -6,5 +6,11 @@ dir=$1; shift
for stubfile in $dir/*/config0.m4 $dir/*/config.m4 $dir/*/config9.m4; do
echo "config_m4_src=$stubfile
config_m4_dir=`dirname $stubfile`
+
+dnl Define where extension directories are located in the configure context
@reeze
reeze / gist:2621860
Created May 6, 2012 11:53
possible typo
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index a3ed390..45c5f4a 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -1285,8 +1285,8 @@ static void php_cli_server_request_translate_vpath(php_cli_server_request *reque
struct stat sb;
static const char *index_files[] = { "index.php", "index.html", NULL };
char *buf = safe_pemalloc(1, request->vpath_len, 1 + document_root_len + 1 + sizeof("index.html"), 1);
- char *p = buf, *prev_patch = 0, *q, *vpath;
- size_t prev_patch_len;
@reeze
reeze / gist:2599383
Created May 5, 2012 03:31
gdb symbol problem
➜ php-src git:(PHP-5.4) ✗ gdb sapi/cli/php
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ....... done
(gdb) b gc_zval_possible_root