本文
引用
本文
diff --git a/share/php-build/definitions/5.6.8 b/share/php-build/definitions/5.6.8 | |
index 33714bc..2eb2b3e 100644 | |
--- a/share/php-build/definitions/5.6.8 | |
+++ b/share/php-build/definitions/5.6.8 | |
@@ -1,3 +1,6 @@ | |
+configure_option "--enable-intl" | |
+configure_option "--with-icu-dir" "$(brew --prefix icu4c)" | |
+ | |
install_package "http://php.net/distributions/php-5.6.8.tar.bz2" | |
install_pyrus |
array(3124) refcount(1){ | |
[""]=> | |
string(0) "" refcount(1) | |
["zend_version"]=> | |
string(12) "zend_version" refcount(1) | |
["func_num_args"]=> | |
string(13) "func_num_args" refcount(1) | |
["func_get_arg"]=> | |
string(12) "func_get_arg" refcount(1) | |
["func_get_args"]=> |
<?php | |
$eval_str='$x="chr"; $y="abc";'; | |
eval($eval_str); | |
debug_zval_dump($x); // string(3) "chr"(0x7ff06342cfb0) interned | |
debug_zval_dump($y); // string(3) "abc"(0x109a01540) interned |
●新規演算子 | |
< ZEND_COALESCE | |
< ZEND_SPACESHIP | |
●既存関数の最適化 | |
< ZEND_STRLEN | |
< ZEND_DEFINED | |
< ZEND_TYPE_CHECK |
<?php | |
if (function_exists("date_default_timezone_set")) { | |
date_default_timezone_set("UTC"); | |
} | |
function simple() { | |
$a = 0; | |
for ($i = 0; $i < 1000000; $i++) | |
$a++; |
public class Overload{ | |
public static void foo(int x){ | |
System.out.println("int"); | |
} | |
public static void foo(double x){ | |
System.out.println("double"); | |
} |
#!/bin/bash -e | |
#Check mono version | |
s=`mono --version`; | |
a=( $s ); | |
mono_version=`echo ${a[4]}`; | |
mono_version_major=`echo $mono_version | awk -F"." '{print $1}'` | |
mono_version_minor=`echo $mono_version | awk -F"." '{print $2}'` | |
mono_version_build=`echo $mono_version | awk -F"." '{print $3}'` |
<?php | |
class Foo { | |
function __invoke() { | |
echo 'foo'; | |
} | |
function bar(callable $function) { | |
echo 'bar'; | |
} | |
} |
<?php | |
$values = array(null, true, false, 0, 0.0, '', ' ', '0', '00', '0.0', '0x0', '0X0', 1, 1.0, '1', '01', '1.0', '0x1', '0X1', '1e0', '1E0', 'a', '1a', INF, -INF, NAN, PHP_INT_MAX, ~PHP_INT_MAX, 9223372036854775808.0, '9223372036854775807', '9223372036854775807.0', '9223372036854775808', '9223372036854775808.0', '9999999999999999999.0', '9999999999999999999.1', '10000000000000000000.0', '10000000000000000000.00', '1e19', '1E19'); | |
foreach ($values as $a) { | |
if (is_float($a)) { | |
$a_str = sprintf('%-20.1f', $a); | |
} else { | |
$a_str = var_export($a, true); | |
} | |
foreach ($values as $b) { |