This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // gcc -g -shared $(php-config --includes) -L$(php-config --prefix)/lib -lphp7 -o reopcode.so -fPIC reopcode.c | |
| // sudo ./inject -p $(pgrep -n php) reopcode.so | |
| #include <php.h> | |
| #include <zend_API.h> | |
| #include <zend_vm.h> | |
| extern ZEND_API void (*zend_execute_ex)(zend_execute_data *execute_data); | |
| static void (*orig_execute_ex)(zend_execute_data *execute_data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "os" | |
| "os/exec" | |
| "os/signal" | |
| "strconv" | |
| "strings" | |
| "syscall" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c | |
| index 2ade3e3818..01390ff575 100644 | |
| --- a/Zend/zend_execute_API.c | |
| +++ b/Zend/zend_execute_API.c | |
| @@ -1058,248 +1058,249 @@ ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name) /* | |
| ZEND_API int zend_eval_stringl_ex(char *str, size_t str_len, zval *retval_ptr, char *string_name, int handle_exceptions) /* {{{ */ | |
| { | |
| int result; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <signal.h> | |
| #include <unistd.h> | |
| #include "../phpspy.h" | |
| zend_executor_globals_73 executor_globals = {0}; | |
| sapi_globals_struct_73 sapi_globals = {0}; | |
| php_core_globals_73 core_globals = {0}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index c4e33ef..6c0de6d 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -1,78 +1,79 @@ | |
| -elfutils_subdirs:=lib libelf libebl libdwelf libdwfl libdw libcpu backends | |
| -elfutils_includes:=$(foreach subdir,$(elfutils_subdirs),-Ivendor/elfutils/$(subdir)) | |
| - | |
| -elfutils_libs:=libdw libelf libdwfl libebl libdwelf | |
| -elfutils_sources:=$(foreach lib,$(elfutils_libs),vendor/elfutils/$(lib)/$(lib).a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.travis.yml b/.travis.yml | |
| index 4a78d4f..594a847 100644 | |
| --- a/.travis.yml | |
| +++ b/.travis.yml | |
| @@ -1,8 +1,8 @@ | |
| language: php | |
| -php: | |
| - - '7.1' | |
| - - '7.2' | |
| - - '7.3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/tui/light.go b/src/tui/light.go | |
| index edeb621..a862825 100644 | |
| --- a/src/tui/light.go | |
| +++ b/src/tui/light.go | |
| @@ -10,6 +10,7 @@ import ( | |
| "syscall" | |
| "time" | |
| "unicode/utf8" | |
| + "unsafe" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import weechat | |
| SCRIPT_NAME = "mpdm_hili" | |
| SCRIPT_AUTHOR = "Adam Saponara <[email protected]>" | |
| SCRIPT_VERSION = "0.1" | |
| SCRIPT_LICENSE = "GPL3" | |
| SCRIPT_DESC = "Highlight msgs in channels prefixed `#mpdm-` (for use with irslackd)" | |
| if weechat.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, SCRIPT_DESC, "", ""): | |
| weechat.hook_line('formatted', '*.#mpdm-*', 'irc_privmsg+!self_msg', 'hook_line_cb', '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/irslackd.js b/lib/irslackd.js | |
| index 05c998b..a17a211 100644 | |
| --- a/lib/irslackd.js | |
| +++ b/lib/irslackd.js | |
| @@ -20,40 +20,41 @@ class Irslackd { | |
| self.ircd = self.getNewIrcd(self.config.tlsOpts); | |
| const requireInit = true; | |
| const noRequireInit = false; | |
| new Map([ | |
| [ 'AWAY', self.makeIrcHandler(self.onIrcAway, requireInit) ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/go/vt/vttablet/tabletserver/schema/load_table.go b/go/vt/vttablet/tabletserver/schema/load_table.go | |
| index 95d8a739c..97548a27b 100644 | |
| --- a/go/vt/vttablet/tabletserver/schema/load_table.go | |
| +++ b/go/vt/vttablet/tabletserver/schema/load_table.go | |
| @@ -10,34 +10,39 @@ You may obtain a copy of the License at | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. |