Posts tagged php5
PHP 5.2.10 configure error
6月 20th
PHP5.2.10が出たので開発環境へインストール。
5.2.8と同じオプションでconfigureしたのにこんなエラーが出た。
% ./configure --enable-mbstring --enable-soap --enable-zend-multibyte --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-curl --with-curlwrappers --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-mcrypt
.....
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl -dir>/include/curl/
環境は、
# cat /etc/issue Debian GNU/Linux 5.0 \n \l
headerファイルインストールして解決
# aptitude install libcurl4-gnutls-dev
PHP 5.2.5 と nucleus
11月 18th
PHP5.2.5にしたらnucleusの管理ページにて、segmentention faultしちゃう。
5.2.4に戻したら解決
—————————————-
こんなんでいいんすか。PHPよ。
$a = 1;
$b = "1a";
if($a == $b){
print 'same'; // ←表示されるし。凸(`、´メ)
}
PHPのコンパイルオプションに –disable-allをつけて、不要なモジュールをインストールしないときのベンチマーク
7月 12th
PHP5.2.3の configureオプションである–disable-allを指定した場合にどの程度パフォーマンスに影響するかを実験する。 –disable-allとは、PHPをインストールする際にデフォルトでインストールされる機能をインストールしないようにするオプション。デフォルトでは不要なも機能まで入ってしまうため、無駄が発生する場合がある。例えば、XML,JSON、filter、PDOなどである。
PHP実験環境- 共通環境
- ゲスト:CentOS release 4.4 (Final) (on Vmware server 1.0.2)
- ホスト:Windows XP Professional
- CPU: Intel Core2 Duo 6600 2.4G
- Apache:2.2.4
- ./configure –prefix=/usr/local/apache2 –enable-ssl –enable-rewrite –enable-so
- 環境1
- ./configure \ –enable-mbstring \ –enable-soap \ –enable-zend-multibyte \ –with-apxs2=/usr/local/apache2/bin/apxs \ –with-mysql=/usr/local/mysql \ –with-pdo-mysql=/usr/local/mysql \ –with-curl \ –with-curlwrappers \ –with-gd \ –with-jpeg-dir=/usr/lib \ –with-png-dir=/usr/lib \ –with-zlib-dir=/usr/lib \ –with-mcrypt
- 環境2
- ./configure \ –enable-mbstring \ –enable-soap \ –enable-zend-multibyte \ –with-apxs2=/usr/local/apache2/bin/apxs \ –with-mysql=/usr/local/mysql \ –with-pdo-mysql=/usr/local/mysql \ –with-curl \ –with-curlwrappers \ –with-gd \ –with-jpeg-dir=/usr/lib \ –with-png-dir=/usr/lib \ –with-zlib-dir=/usr/lib \ –with-mcrypt \ –enable-libxml \ –disable-all
- 環境1には入っていて、環境2には入っていないモジュール
- ctype
- dom
- filter
- hash
- iconv
- json
- pcre
- PDO
- pdo_mysql
- pdo_sqlite
- posix
- session
- SimpleXML
- SPL
- SQLite
- tokenizer
- xml
- xmlreader
- xmlwriter
PHPプログラマ募集っす。→集まりました。
5月 8th
要項はこんな感じです。
================================= PHP5開発スタッフ募集 ▼勤務地:恵比寿 ▼期間:5月中旬から(予定は8月まで) ▼時間:要相談 ▼報酬:時間1500円位 (応相談) 交通費別途支給 ▼案件:PHPフレームワークを利用し、 XMLを使いモジュール間通信を行うECサイト新規構築。 ▼人数:2人 ▼備考:打ち合わせ、仕様説明は恵比寿で行い 開発は在宅でも可能。開発はモジュールごとに 分担するので仕事量を調節できます。 ================================= (続きを読む…)
PHP5.0.5 bug
1月 24th
This might be a bug. I want to try this stiation using 5.1.2 but PDFlib runs only 5.1.x environment.
< ?php
$num = 100;
// Doesn't work
header("Content-Length: $num");
// Works
header("Content-Length: ".$num);
// Works
print("test $num");
// Works
print("test ".$num);
?>
I spent 1 hour to find this tricky spec.
PHP
6月 5th
PHP5についてまとめてある記事が発表された。 http://www.atmarkit.co.jp/flinux/special/php5/php5a.html
いやぁ、Class関連の文法がかなりJavaちっくになってきた。4まではClass関連がまじでしょぼしょぼだったけど、一応これで安全にオブジェクト指向にかけるな。
それはいいとして、いい感じのFrameworkがほしい。
最近のコメント