本文
引用
本文
●新規演算子 | |
< ZEND_COALESCE | |
< ZEND_SPACESHIP | |
●既存関数の最適化 | |
< ZEND_STRLEN | |
< ZEND_DEFINED | |
< ZEND_TYPE_CHECK |
<?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 |
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"]=> |
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 |
;; .emacs先頭で、.emacs.elcの方が古かったら再作成する。 | |
;; (ってこのタイミングで再作成しても間に合わない気がする…。) | |
(if (file-newer-than-file-p "~/.emacs" "~/.emacs.elc") | |
(save-excursion | |
(byte-compile-file "~/.emacs"))) | |
;; .emacsをsaveしたらelcを作る | |
(add-hook 'after-save-hook | |
(function (lambda () | |
(if (string= (file-truename (expand-file-name "~/.emacs")) |
*** lisp/term/ns-win.el.orig 2011-05-07 08:46:32.000000000 +0900 | |
--- lisp/term/ns-win.el 2011-05-07 08:47:02.000000000 +0900 | |
*************** | |
*** 1530,1535 **** | |
--- 1530,1555 ---- | |
(title . "半英") | |
(cursor-color) | |
(cursor-type)) | |
+ ("com.justsystems.inputmethod.atok23.Roman" | |
+ (title . "A") |
<?php | |
/* requires PHP 5.3.2 */ | |
class Foo | |
{ | |
private function doSomethingPrivate($arg) | |
{ | |
return 'foo'.$arg; | |
} | |
} |
<?php | |
function fib ($n) { | |
$fib_internal = function ($n, $cur, $prev) use (&$fib_internal) { | |
if ($n === 0) { return $cur; } | |
return $fib_internal($n - 1, $cur + $prev, $cur); | |
}; | |
return $fib_internal($n, 0, 1); | |
} | |
var_dump(fib(6)); // int(8) |
*** /System/Library/LaunchDaemons/org.postfix.master.plist.orig 2011-09-01 11:51:26.000000000 +0900 | |
--- /System/Library/LaunchDaemons/org.postfix.master.plist 2011-08-31 23:25:45.000000000 +0900 | |
*************** | |
*** 18,22 **** | |
--- 18,26 ---- | |
</array> | |
<key>AbandonProcessGroup</key> | |
<true/> | |
+ <key>RunAtLoad</key> | |
+ <true/> |