ことの始まり PHP の srand 関数について調べていて、ひょんな拍子にsrandのseedに文字列(numericである必要はあるけど)を渡せることを知った。 では、ここに long を超えるものを放り込むとどうなるのか。 では結果をごらんください。 「!?!?」 なぜこうなるのか 秘密は PHP 処理系の zend_parse_arg_impl 関数にあります。 zend_parse_arg_impl はphpの関数に渡された引数をパースする部分で、longを要求する関数にstringな値が渡された時の処理はこの部分ですね。 https://github.com/php/php-src/blob/master/Zend/zend_API.c#L335 さて、読み進めていくと「ん!?!?」ってなる行があるはずです。 この行ですね https://github.com/php/php-
とはいっても導入部分だけ(^^ (ps:後日これに続く箇所として、→「Dispatcher::dispatchの処理の流れ」作成しました。) 巷で話題のCakePHP2実践入門。これは本当におすすめ。ページの隅々まで埋め尽くさんばかりの勢いで、数々の豪華執筆陣が腕を競っています。 まず嬉しいのは、無駄な情報は極力削ってる。よーしフレームワークやっちゃうぞ~、と張り切って蓋を開けたらPHPの基本文法だとかローカルサーバーの構築方法だとか、挙句の果てはレンタルサーバーの借り方だとかで数十ページが過ぎ去ってしまう、なんてことはない。 当然CakePHPの基本的な使い方は、インストール方法に始まってMVCの操作からビヘイビア・ヘルパー・コンポーネントの使い方、さらにはプラグインの開発まで充実しているけど、実は、初心者の方はまず公式のブログチュートリアルぐらいはやっておいてね!っていう声が聞こえては
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く