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
<?php | |
class Parenthesis extends TerminalExpression { | |
protected $precidence = 6; | |
public function operate(Stack $stack) { | |
} | |
public function getPrecidence() { | |
return $this->precidence; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <sys/resource.h> | |
double get_time() | |
{ | |
struct timeval t; | |
struct timezone tzp; | |
gettimeofday(&t, &tzp); |
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 | |
namespace ZPP; | |
const IS_STRING = "string"; | |
const IS_BOOL = "boolean"; | |
const IS_LONG = "integer"; | |
const IS_DOUBLE = "double"; | |
const IS_ARRAY = "array"; | |
const IS_OBJECT = "object"; |
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
<?php | |
require 'json.php'; | |
$json = new JSON; | |
$json->foo->bar->baz = "foo"; | |
$json->foo->biz = "test"; | |
$json->baz = array(); | |
$json->baz[1] = "testing"; |
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 | |
$url = 'https://qa-orderapi.intelispend.com/Processes/IntelispendAPI/IntelispendOrderAPI/SubmitFileService.serviceagent?wsdl'; | |
$opts = array( | |
'http' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false | |
) | |
); | |
$context = stream_context_create($opts); | |
$client = new \SoapClient($url, |
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" |
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 | |
const ✓ = true; | |
const ✕ = false; | |
function ≠($left, $right) { | |
return $left != $right; | |
} | |
function ≅($left, $right) { |
NewerOlder