
Index: phpdoc/ja/features/error-handling.xml
diff -u phpdoc/ja/features/error-handling.xml:1.7 phpdoc/ja/features/error-handling.xml:1.8
--- phpdoc/ja/features/error-handling.xml:1.7 Mon Feb 26 10:40:18 2001
+++ phpdoc/ja/features/error-handling.xml Sun Oct 14 09:53:19 2001
@@ -104,13 +104,13 @@
たりマスクしたりするためにビット演算子を使用する
ことが可能です。php.iniで使用できるのは '|',
- '~', '!', '&' のみであることに注意して下さい。しかし、ビット演算子
+ '~', '!', '&' のみであることに注意して下さい。しかし、ビット演算子
でないものは、php3.iniの中で使用可能です。
PHP 4では、
error_reporting
- のデフォルト設定値は E_ALL & ~E_NOTICEであり、
+ のデフォルト設定値は E_ALL & ~E_NOTICEであり、
全てのエラーを表示します。PHP 3 では、デフォルトの設定は、
(E_ERROR | E_WARNING | E_PARSE)であり、
同じことを意味します。しかし、PHP 3 のphp3.ini
Index: phpdoc/ja/functions/array.xml
diff -u phpdoc/ja/functions/array.xml:1.32 phpdoc/ja/functions/array.xml:1.33
--- phpdoc/ja/functions/array.xml:1.32 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/array.xml Sun Oct 14 09:53:19 2001
@@ -1384,7 +1384,7 @@
$fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
-function test_alter (&$item1, $key, $prefix) {
+function test_alter (&$item1, $key, $prefix) {
$item1 = "$prefix: $item1";
}
Index: phpdoc/ja/functions/cpdf.xml
diff -u phpdoc/ja/functions/cpdf.xml:1.15 phpdoc/ja/functions/cpdf.xml:1.16
--- phpdoc/ja/functions/cpdf.xml:1.15 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/cpdf.xml Sun Oct 14 09:53:19 2001
@@ -119,7 +119,7 @@
/* 1分ずつ進む */
cpdf_setlinewidth($pdf, 2.0);
- for ($alpha = 0; $alpha < 360; $alpha += 6)
+ for ($alpha = 0; $alpha < 360; $alpha += 6)
{
cpdf_rotate($pdf, 6.0);
cpdf_moveto($pdf, $radius, 0.0);
@@ -132,7 +132,7 @@
/* 5 分ずつ進む */
cpdf_setlinewidth($pdf, 3.0);
- for ($alpha = 0; $alpha < 360; $alpha += 30)
+ for ($alpha = 0; $alpha < 360; $alpha += 30)
{
cpdf_rotate($pdf, 30.0);
cpdf_moveto($pdf, $radius, 0.0);
Index: phpdoc/ja/functions/dir.xml
diff -u phpdoc/ja/functions/dir.xml:1.8 phpdoc/ja/functions/dir.xml:1.9
--- phpdoc/ja/functions/dir.xml:1.8 Sat Jul 7 18:25:34 2001
+++ phpdoc/ja/functions/dir.xml Sun Oct 14 09:53:20 2001
@@ -220,7 +220,7 @@
<?php
$handle=opendir('.');
while (false!==($file = readdir($handle))) {
- if ($file != "." && $file != "..") {
+ if ($file != "." && $file != "..") {
echo "$file\n";
}
}
Index: phpdoc/ja/functions/filesystem.xml
diff -u phpdoc/ja/functions/filesystem.xml:1.33 phpdoc/ja/functions/filesystem.xml:1.34
--- phpdoc/ja/functions/filesystem.xml:1.33 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/filesystem.xml Sun Oct 14 09:53:20 2001
@@ -494,7 +494,7 @@
$num = count ($data);
print "<p> $num fields in line $row: <br>";
$row++;
- for ($c=0; $c<$num; $c++) {
+ for ($c=0; $c<$num; $c++) {
print $data[$c] . "<br>";
}
}
@@ -2709,7 +2709,7 @@
- umaskはPHPのumaskをmask & 0777にセットし、
+ umaskはPHPのumaskをmask & 0777にセットし、
元のumask値を返します。
PHPがサーバ・モジュールとして動作中の場合、各リクエストが
終了するたびにumaskは元の値に戻されます。
Index: phpdoc/ja/functions/ifx.xml
diff -u phpdoc/ja/functions/ifx.xml:1.10 phpdoc/ja/functions/ifx.xml:1.11
--- phpdoc/ja/functions/ifx.xml:1.10 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/ifx.xml Sun Oct 14 09:53:20 2001
@@ -579,7 +579,7 @@
- Informix エラーコード (SQLSTATE & SQLCODE) は次のようなフォーマッ
+ Informix エラーコード (SQLSTATE & SQLCODE) は次のようなフォーマッ
トとなります :
@@ -928,7 +928,7 @@
if (! isset ($types)) {
... エラー処理 ...
}
-for ($i = 0; $i < count($types); $i++) {
+for ($i = 0; $i < count($types); $i++) {
$fname = key($types);
printf("%s :\t type = %s\n", $fname, $types[$fname]);
next($types);
@@ -970,7 +970,7 @@
if (! isset($properties)) {
... error ...
}
-for ($i = 0; $i < count($properties); $i++) {
+for ($i = 0; $i < count($properties); $i++) {
$fname = key ($properties);
printf ("%s:\t type = %s\n", $fname, $properties[$fname]);
next ($properties);
Index: phpdoc/ja/functions/image.xml
diff -u phpdoc/ja/functions/image.xml:1.25 phpdoc/ja/functions/image.xml:1.26
--- phpdoc/ja/functions/image.xml:1.25 Sat Jul 7 18:25:44 2001
+++ phpdoc/ja/functions/image.xml Sun Oct 14 09:53:20 2001
@@ -96,7 +96,7 @@
IPTC を返す GetImageSize
<?php
- $size = GetImageSize ("testimg.jpg",&$info);
+ $size = GetImageSize ("testimg.jpg",&$info);
if (isset ($info["APP13"])) {
$iptc = iptcparse ($info["APP13"]);
var_dump ($iptc);
Index: phpdoc/ja/functions/ldap.xml
diff -u phpdoc/ja/functions/ldap.xml:1.21 phpdoc/ja/functions/ldap.xml:1.22
--- phpdoc/ja/functions/ldap.xml:1.21 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/ldap.xml Sun Oct 14 09:53:20 2001
@@ -93,7 +93,7 @@
$info = ldap_get_entries($ds, $sr);
echo "Data for ".$info["count"]." items returned:<p>";
- for ($i=0; $i<$info["count"]; $i++) {
+ for ($i=0; $i<$info["count"]; $i++) {
echo "dn is: ". $info[$i]["dn"] ."<br>";
echo "first cn entry is: ". $info[$i]["cn"][0] ."<br>";
echo "first email entry is: ". $info[$i]["mail"][0] ."<p>";
@@ -1180,7 +1180,7 @@
$info = ldap_get_entries($ds, $sr);
-for ($i=0; $i<$info["count"]; $i++)
+for ($i=0; $i<$info["count"]; $i++)
echo $info[$i]["ou"][0] ;
Index: phpdoc/ja/functions/mysql.xml
diff -u phpdoc/ja/functions/mysql.xml:1.19 phpdoc/ja/functions/mysql.xml:1.20
--- phpdoc/ja/functions/mysql.xml:1.19 Sat Jul 7 18:25:57 2001
+++ phpdoc/ja/functions/mysql.xml Sun Oct 14 09:53:20 2001
@@ -421,7 +421,7 @@
$i = 0;
$cnt = mysql_num_rows($db_list);
-while ($i < $cnt) {
+while ($i < $cnt) {
echo mysql_db_name($db_list, $i) . "\n";
$i++;
}
Index: phpdoc/ja/functions/oci8.xml
diff -u phpdoc/ja/functions/oci8.xml:1.16 phpdoc/ja/functions/oci8.xml:1.17
--- phpdoc/ja/functions/oci8.xml:1.16 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/oci8.xml Sun Oct 14 09:53:20 2001
@@ -113,7 +113,7 @@
field2 = empty_clob()) returning field2 into :field2";
OCIParse($conn, $sql);
$clob = OCINewDescriptor($conn, OCI_D_LOB);
-OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB);
+OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB);
OCIExecute($stmt, OCI_DEFAULT);
$clob->save ("some text");
@@ -191,7 +191,7 @@
int OCIDefineByName
int stmt
string Column-Name
- mixed &variable
+ mixed &variable
int
type
@@ -227,8 +227,8 @@
/* the define MUST be done BEFORE ociexecute! */
-OCIDefineByName($stmt,"EMPNO",&$empno);
-OCIDefineByName($stmt,"ENAME",&$ename);
+OCIDefineByName($stmt,"EMPNO",&$empno);
+OCIDefineByName($stmt,"ENAME",&$ename);
OCIExecute($stmt);
@@ -256,7 +256,7 @@
int OCIBindByName
int stmt
string ph_name
- mixed &variable
+ mixed &variable
intlength
int
@@ -305,13 +305,13 @@
$rowid = OCINewDescriptor($conn,OCI_D_ROWID);
-OCIBindByName($stmt,":empno",&$empno,32);
-OCIBindByName($stmt,":ename",&$ename,32);
-OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
+OCIBindByName($stmt,":empno",&$empno,32);
+OCIBindByName($stmt,":ename",&$ename,32);
+OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
$update = OCIParse($conn,"update emp set sal = :sal where ROWID = :rid");
-OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
-OCIBindByName($update,":sal",&$sal,32);
+OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
+OCIBindByName($update,":sal",&$sal,32);
$sal = 10000;
@@ -327,7 +327,7 @@
$stmt = OCIParse($conn,"select * from emp where empno in (1111,2222,3333)");
OCIExecute($stmt);
-while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) {
+while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) {
var_dump($arr);
}
OCIFreeStatement($stmt);
@@ -793,12 +793,12 @@
$conn = OCILogon($user, $password);
$stmt = OCIParse($conn,"select rowid from $table $where");
$rowid = OCINewDescriptor($conn,OCI_D_ROWID);
- OCIDefineByName($stmt,"ROWID",&$rowid);
+ OCIDefineByName($stmt,"ROWID",&$rowid);
OCIExecute($stmt);
while ( OCIFetch($stmt) ) {
$nrows = OCIRowCount($stmt);
$delete = OCIParse($conn,"delete from $table where ROWID = :rid");
- OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID);
+ OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID);
OCIExecute($delete);
print "$nrows\n";
if ( ($nrows % $commitsize) == 0 ) {
@@ -831,7 +831,7 @@
$lob = OCINewDescriptor($conn, OCI_D_LOB);
$stmt = OCIParse($conn,"insert into $table (id, the_blob)
values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob");
- OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB);
+ OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB);
OCIExecute($stmt);
if($lob->savefile($lob_upload)){
OCICommit($conn);
@@ -922,7 +922,7 @@
while (OCIFetch ($stmt)) {
print "\n";
$ncols = OCINumCols ($stmt);
- for ( $i = 1; $i <= $ncols; $i++ ) {
+ for ( $i = 1; $i <= $ncols; $i++ ) {
$column_name = OCIColumnName ($stmt, $i);
$column_value = OCIResult ($stmt, $i);
print $column_name . ': ' . $column_value . "\n";
@@ -994,7 +994,7 @@
int OCIFetchInto
int stmt
- array &result
+ array &result
int
mode
@@ -1040,7 +1040,7 @@
int OCIFetchStatement
int stmt
- array &variable
+ array &variable
@@ -1153,7 +1153,7 @@
print "<TH>Length</TH>";
print "</TR>";
$ncols = OCINumCols ($stmt);
-for ( $i = 1; $i <= $ncols; $i++ ) {
+for ( $i = 1; $i <= $ncols; $i++ ) {
$column_name = OCIColumnName ($stmt, $i);
$column_type = OCIColumnType ($stmt, $i);
$column_size = OCIColumnSize ($stmt, $i);
@@ -1328,11 +1328,11 @@
$curs = OCINewCursor ($conn);
$stmt = OCIParse ($conn, "begin info.output(:data); end;");
-ocibindbyname ($stmt,"data",&$curs,-1,OCI_B_CURSOR);
+ocibindbyname ($stmt,"data",&$curs,-1,OCI_B_CURSOR);
ociexecute ($stmt);
ociexecute ($curs);
-while (OCIFetchInto($curs,&$data)) {
+while (OCIFetchInto($curs,&$data)) {
var_dump($data);
}
@@ -1362,14 +1362,14 @@
print "<TH># EMPLOYEES</TH>";
print "</TR>";
-while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) {
+while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) {
print "<TR>";
$dname = $data["DNAME"];
$deptno = $data["DEPTNO"];
print "<TD>$dname</TD>";
print "<TD>$deptno</TD>";
ociexecute($data[ "EMPCNT" ]);
- while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) {
+ while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) {
$num_emps = $subdata["NUM_EMPS"];
print "<TD>$num_emps</TD>";
}
@@ -1480,7 +1480,7 @@
print "<TH>Length</TH>";
print "</TR>";
$ncols = OCINumCols ($stmt);
-for ($i = 1; $i <= $ncols; $i++) {
+for ($i = 1; $i <= $ncols; $i++) {
$column_name = OCIColumnName ($stmt, $i);
$column_type = OCIColumnType ($stmt, $i);
$column_size = OCIColumnSize ($stmt, $i);
@@ -1539,7 +1539,7 @@
print "<TH>Length</TH>";
print "</TR>";
$ncols = OCINumCols($stmt);
- for ( $i = 1; $i <= $ncols; $i++ ) {
+ for ( $i = 1; $i <= $ncols; $i++ ) {
$column_name = OCIColumnName($stmt,$i);
$column_type = OCIColumnType($stmt,$i);
$column_size = OCIColumnSize($stmt,$i);
Index: phpdoc/ja/functions/pcre.xml
diff -u phpdoc/ja/functions/pcre.xml:1.26 phpdoc/ja/functions/pcre.xml:1.27
--- phpdoc/ja/functions/pcre.xml:1.26 Sun Oct 14 00:05:01 2001
+++ phpdoc/ja/functions/pcre.xml Sun Oct 14 09:53:20 2001
@@ -197,7 +197,7 @@
この例の出力は以下のようになります。
-<b>example: </b>, <div align=left>this is a test</div>
+<b>example: </b>, <div align=left>this is a test</div>
example: , this is a test
@@ -264,7 +264,7 @@
// \\2 は後方参照の例です。これは、pcre に正規表現自体の括弧の2番目の
// 組、つまりこの場合は([\w]+)、にマッチします。文字列が二重引用符で括
// られているため、バックスラッシュの追加が必要です。
-$html = "<b>bold text</b><a href=howdy.html>click me</a>";
+$html = "<b>bold text</b><a href=howdy.html>click me</a>";
preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches);
@@ -393,7 +393,7 @@
/e 修飾子の使用法
-preg_replace ("/(<\/?)(\w+)([^>]*>)/e",
+preg_replace ("/(<\/?)(\w+)([^>]*>)/e",
"'\\1'.strtoupper('\\2').'\\3'",
$html_body);
@@ -615,7 +615,7 @@
正規表現の特殊文字は、次のようなものです。
- . \\ + * ? [ ^ ] $ ( ) { } = ! < > | :
+ . \\ + * ? [ ^ ] $ ( ) { } = ! < > | :
@@ -1721,7 +1721,7 @@
は、"bar" が前にあり、逆に "foo" が前にない "baz" にマッチします。
一方、
- (?<=\d{3}(?!999)...)foo
+ (?<=\d{3}(?!999)...)foo
は、3桁の数が先行し、中の3文字が"999"でない"foo"にマッチする別の
パターンです。
@@ -1807,7 +1807,7 @@
"a" の検索を文字列全体に対して左から右に再度行うため、
効率は良くありません。しかし、パターンを次のように書いた場合、
- ^(?>.*)(?<=abcd)
+ ^(?>.*)(?<=abcd)
この場合は、.* に関する再検索は行われず、文字列全体にのみマッ
チします。続く後方言明は、最後の4文字に対する試行を1回だけ行
@@ -1820,10 +1820,10 @@
一の手段です。
パターン
- (\D+|<\d+>)*[!?]
+ (\D+|<\d+>)*[!?]
は、無制限の数の副文字列にマッチします。その副文字列は非数値から
- なるか<>で括られた数値のどちらかで、後に ! または ? が続くもので
+ なるか<>で括られた数値のどちらかで、後に ! または ? が続くもので
す。マッチした場合、実行は高速です。しかし、以下の文字列に適用し
た場合、
@@ -1837,7 +1837,7 @@
ており、文字列にこれがない場合に早期に失敗と判定します。)
このパターンを次のように変更した場合、
- ((?>\D+)|<\d+>)*[!?]
+ ((?>\D+)|<\d+>)*[!?]
数字以外の並びにより不備を生じることがなくなり、失敗は早期に生じ
ます。
Index: phpdoc/ja/functions/pgsql.xml
diff -u phpdoc/ja/functions/pgsql.xml:1.25 phpdoc/ja/functions/pgsql.xml:1.26
--- phpdoc/ja/functions/pgsql.xml:1.25 Sun Aug 12 20:33:48 2001
+++ phpdoc/ja/functions/pgsql.xml Sun Oct 14 09:53:20 2001
@@ -422,10 +422,10 @@
}
$arr = pg_fetch_array ($result, 0);
-echo $arr[0] . " <- array\n";
+echo $arr[0] . " <- array\n";
$arr = pg_fetch_array ($result, 1);
-echo $arr["author"] . " <- array\n";
+echo $arr["author"] . " <- array\n";
?>
Index: phpdoc/ja/functions/strings.xml
diff -u phpdoc/ja/functions/strings.xml:1.43 phpdoc/ja/functions/strings.xml:1.44
--- phpdoc/ja/functions/strings.xml:1.43 Sun Oct 14 06:21:15 2001
+++ phpdoc/ja/functions/strings.xml Sun Oct 14 09:53:20 2001
@@ -677,7 +677,7 @@
$original = strtr ($str, $trans);
- $original の内容は次のようになります。: "Hallo &
+ $original の内容は次のようになります。: "Hallo &
<Frau> & Krämer"
@@ -1488,7 +1488,7 @@
metaphone は、Lawrence Philips <lphilips <email protected>> により
開発されました。["Practical
- Algorithms for Programmers", Binstock & Rex, Addison Wesley,
+ Algorithms for Programmers", Binstock & Rex, Addison Wesley,
1995] で解説されています。
@@ -2818,7 +2818,7 @@
// 4.0b3より前のバージョンの場合:
$pos = strpos ($mystring, "b");
-if (is_string ($pos) && !$pos) {
+if (is_string ($pos) && !$pos) {
// 見つかりませんでした...
}
Index: phpdoc/ja/functions/swf.xml
diff -u phpdoc/ja/functions/swf.xml:1.9 phpdoc/ja/functions/swf.xml:1.10
--- phpdoc/ja/functions/swf.xml:1.9 Sun Aug 12 20:33:49 2001
+++ phpdoc/ja/functions/swf.xml Sun Oct 14 09:53:20 2001
@@ -42,7 +42,7 @@
swf_placeobject (11, 60);
swf_popmatrix ();
-for ($i = 0; $i < 30; $i++) {
+for ($i = 0; $i < 30; $i++) {
$p = $i/(30-1);
swf_pushmatrix ();
swf_scale (1-($p*.9), 1, 1);
@@ -57,7 +57,7 @@
swf_showframe ();
}
-for ($i = 0; $i < 30; $i++) {
+for ($i = 0; $i < 30; $i++) {
swf_removeobject (50);
if (($i%4) == 0) {
swf_showframe ();
@@ -73,7 +73,7 @@
このコードはアニメーションを生成し、urlで見ることができます。
+ url="&url.swf.test;">urlで見ることができます。
@@ -2382,4 +2382,4 @@
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
--->
\ No newline at end of file
+-->
Index: phpdoc/ja/functions/var.xml
diff -u phpdoc/ja/functions/var.xml:1.29 phpdoc/ja/functions/var.xml:1.30
--- phpdoc/ja/functions/var.xml:1.29 Sat Jul 7 18:26:17 2001
+++ phpdoc/ja/functions/var.xml Sun Oct 14 09:53:20 2001
@@ -1021,7 +1021,7 @@
$conn = odbc_connect("webdb", "php", "chicken");
$stmt = odbc_prepare($conn, "SELECT data FROM sessions WHERE id = ?");
$sqldata = array($PHP_AUTH_USER);
-if (!odbc_execute($stmt, &$sqldata) || !odbc_fetch_into($stmt, &$tmp)) {
+if (!odbc_execute($stmt, &$sqldata) || !odbc_fetch_into($stmt, &$tmp)) {
// 実行または取得が失敗した場合、空の配列で初期化します
$session_data = array();
} else {
@@ -1120,7 +1120,7 @@
unsetがコールされる前と同じ値を保持します。
-function foo(&$bar) {
+function foo(&$bar) {
unset($bar);
$bar = "blah";
}
Index: phpdoc/ja/functions/xml.xml
diff -u phpdoc/ja/functions/xml.xml:1.12 phpdoc/ja/functions/xml.xml:1.13
--- phpdoc/ja/functions/xml.xml:1.12 Sat Jul 7 18:26:17 2001
+++ phpdoc/ja/functions/xml.xml Sun Oct 14 09:53:20 2001
@@ -627,7 +627,7 @@
function xml() {
$this->parser = xml_parser_create();
- xml_set_object($this->parser,&$this);
+ xml_set_object($this->parser,&$this);
xml_set_element_handler($this->parser,"tag_open","tag_close");
xml_set_character_data_handler($this->parser,"cdata");
}