This file contains 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
Index: Zend/zend.h | |
=================================================================== | |
--- Zend/zend.h (revision 323850) | |
+++ Zend/zend.h (working copy) | |
@@ -575,6 +575,15 @@ | |
#define IS_CONSTANT_ARRAY 9 | |
#define IS_CALLABLE 10 | |
+/* Data type casts, hacked to be different from data type constants */ | |
+#define IS_NULL_CAST 0x010 |
This file contains 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
Index: Zend/zend.h | |
=================================================================== | |
--- Zend/zend.h (revision 323850) | |
+++ Zend/zend.h (working copy) | |
@@ -486,6 +486,10 @@ | |
union _zend_function *__call; | |
union _zend_function *__callstatic; | |
union _zend_function *__tostring; | |
+ union _zend_function *__toint; | |
+ union _zend_function *__tofloat; |
This file contains 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
Index: Zend/zend.h | |
=================================================================== | |
--- Zend/zend.h (revision 323850) | |
+++ Zend/zend.h (working copy) | |
@@ -575,6 +575,9 @@ | |
#define IS_CONSTANT_ARRAY 9 | |
#define IS_CALLABLE 10 | |
+/* Ugly hack to keep track of string hints vs class names */ | |
+#define IS_STRING_HINT 0x026 |
This file contains 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
Index: Zend/zend.h | |
=================================================================== | |
--- Zend/zend.h (revision 323850) | |
+++ Zend/zend.h (working copy) | |
@@ -575,6 +575,9 @@ | |
#define IS_CONSTANT_ARRAY 9 | |
#define IS_CALLABLE 10 | |
+/* Ugly hack to keep track of string hints vs class names */ | |
+#define IS_STRING_HINT 0x026 |
This file contains 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
<?php | |
function dumpToJson($var, $encode = true, array $recursionCache = array()) { | |
$tmp = serialize($var); | |
if (isset($recursionCache[$tmp])) { | |
return 'recursion'; | |
} | |
$recursionCache[$tmp] = true; | |
$result = array(); | |
$result['type'] = gettype($var); |
This file contains 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 random, time, winsound | |
timebias = 0.2 | |
pitchbias = 0.7 | |
changebias = 0.75 | |
current = [(4.,1.),(5.,1.),(7.,3.),(None,1.), (4.,1.),(5.,1.),(7.,3.),(None,1.),(4.,1.),(7.,1.),(12.,2.),(11.,2.),(9.,2.),(9.,2.),(7.,1.),(None,1.),(2.,1.),(4.,1.),(5.,3.),(None,1.),(2.,1.),(4.,1.),(5.,3.),(None,1.),(2.,1.),(5.,1.),(11.,1.),(9.,1.),(7.,2.),(11.,2.),(12.,4.)] | |
timeshift = 1; | |
while 1: |
This file contains 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
<?php | |
define('PASSWORD_SHA256', '$5$'); | |
define('PASSWORD_SHA512', '$6$'); | |
define('PASSWORD_BCRYPT', '$2y$'); | |
define('PASSWORD_SCRYPT', '$7$'); // made up here | |
$password_algos = array(); | |
function password_register_algo($prefix, Callable $create, Callable $validate) { |
This file contains 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
PHP_FUNCTION(password_needs_rehash) | |
{ | |
int hash_len, newAlgo, algo = 0; | |
char *hash; | |
HashTable *options = 0; | |
zval **option_buffer; | |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|H", &hash, &hash_len, &newAlgo, &options) == FAILURE) { | |
RETURN_NULL(); | |
} |
This file contains 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
#!/bin/bash | |
function checkError { | |
if [ $1 -ne 0 ]; then | |
echo -e "Error in build step\n" | |
exit | |
fi | |
} | |
VERSION=$1 |
This file contains 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
#!/bin/bash | |
BIN="" | |
if [ "$PHP" == "/usr/local/bin/php" ] | |
then | |
PHP="" | |
fi | |
BIN="/usr/local/php/$1/bin/php" |