cvs: phpdoc-ja /features persistent-connections.xml safe-mode.xml /language control-structures.xml /language/oop5 reflection.xml
/language/predefined/exception construct.xml /reference/array/functions array-fill.xml array-key-exists.xml array-map.xml /reference/curl/functions
curl-multi-add-handle.xml curl-multi-close.xml curl-multi-init.xml /reference/datetime/functions date.xml /reference/filesystem/functions stat.xml
touch.xml /reference/funchand/functions call-user-func-array.xml call-user-func.xml /reference/http/HttpRequest getHistory.xml /reference/image
examples.xml /reference/memcache/functions memcache-addserver.xml /reference/strings/functions setlocale.xml /security filesystem.xml
| From: | TAKAGI Masahiro | Date: | Fri, 05 Sep 2008 11:58:14 +0000 |
| Subject: | cvs: phpdoc-ja /features persistent-connections.xml safe-mode.xml /language control-structures.xml /language/oop5 reflection.xml /language/predefined/exception construct.xml /reference/array/functions array-fill.xml array-key-exists.xml array-map.xml /reference/curl/functions curl-multi-add-handle.xml curl-multi-close.xml curl-multi-init.xml /reference/datetime/functions date.xml /reference/filesystem/functions stat.xml touch.xml /reference/funchand/functions call-user-func-array.xml call-user-func.xml /reference/http/HttpRequest getHistory.xml /reference/image examples.xml /reference/memcache/functions memcache-addserver.xml /reference/strings/functions setlocale.xml /security filesystem.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-2367@lists.php.net to get a copy of this message | ||
takagi Fri Sep 5 11:58:14 2008 UTC
Modified files:
/phpdoc-ja/security filesystem.xml
/phpdoc-ja/reference/strings/functions setlocale.xml
/phpdoc-ja/reference/memcache/functions memcache-addserver.xml
/phpdoc-ja/reference/image examples.xml
/phpdoc-ja/reference/http/HttpRequest getHistory.xml
/phpdoc-ja/reference/funchand/functions call-user-func.xml
call-user-func-array.xml
/phpdoc-ja/reference/filesystem/functions touch.xml stat.xml
/phpdoc-ja/reference/datetime/functions date.xml
/phpdoc-ja/reference/curl/functions curl-multi-init.xml
curl-multi-close.xml
curl-multi-add-handle.xml
/phpdoc-ja/reference/array/functions array-map.xml
array-key-exists.xml
array-fill.xml
/phpdoc-ja/language/predefined/exception construct.xml
/phpdoc-ja/language/oop5 reflection.xml
/phpdoc-ja/language control-structures.xml
/phpdoc-ja/features safe-mode.xml persistent-connections.xml
Log:
sync with en.
http://cvs.php.net/viewvc.cgi/phpdoc-ja/security/filesystem.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/security/filesystem.xml diff -u phpdoc-ja/security/filesystem.xml:1.5 phpdoc-ja/security/filesystem.xml:1.6 --- phpdoc-ja/security/filesystem.xml:1.5 Fri Jun 22 14:32:58 2007 +++ phpdoc-ja/security/filesystem.xml Fri Sep 5 11:58:12 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> <chapter xml:id="security.filesystem" xmlns="http://docbook.org/ns/docbook"> <title>ãã¡ã¤ã«ã·ã¹ãã ã®ã»ãã¥ãªãã£</title> @@ -100,7 +100,7 @@ $logstring = "$filepath ã®åé¤ã«å¤±æãã¾ãã\n"; } $fp = fopen("/home/logging/filedelete.log", "a"); -fwrite($fp, $lo gstring); +fwrite($fp, $logstring); fclose($fp); echo htmlentities($logstring, ENT_QUOTES); http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/setlocale.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/strings/functions/setlocale.xml diff -u phpdoc-ja/reference/strings/functions/setlocale.xml:1.10 phpdoc-ja/reference/strings/functions/setlocale.xml:1.11 --- phpdoc-ja/reference/strings/functions/setlocale.xml:1.10 Wed Aug 27 20:12:17 2008 +++ phpdoc-ja/reference/strings/functions/setlocale.xml Fri Sep 5 11:58:12 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.31 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.32 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.setlocale"> <refnamediv> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/memcache/functions/memcache-addserver.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/memcache/functions/memcache-addserver.xml diff -u phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.11 phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.12 --- phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.11 Thu Jun 5 06:04:11 2008 +++ phpdoc-ja/reference/memcache/functions/memcache-addserver.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.12 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.13 Maintainer: takagi Status: ready --> <refentry xml:id="function.memcache-addserver" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Memcache::addServer</refname> @@ -32,8 +32,8 @@ </para> <para> - (<function>Memcache::connect()</function> ããã³ - <function>Memcache::pconnect()</function> ã§ã¯ãªã) + (<function>Memcache::connect</function> ããã³ + <function>Memcache::pconnect</function> ã§ã¯ãªã) ãã®ã¡ã½ããã使ç¨ããã¨ããããã¯ã¼ã¯æ¥ç¶ã¯ ãããå®éã«å¿ è¦ã¨ãªãã¨ãã¾ã§ç¢ºçããã¾ããã ã¤ã¾ãã大éã®ãµã¼ãããã¼ã«ã«è¿½å ããå ´åã«ã http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/image/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/image/examples.xml diff -u phpdoc-ja/reference/image/examples.xml:1.1 phpdoc-ja/reference/image/examples.xml:1.2 --- phpdoc-ja/reference/image/examples.xml:1.1 Mon Dec 24 02:49:15 2007 +++ phpdoc-ja/reference/image/examples.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <!-- CREDITS: hirokawa --> <chapter xml:id="image.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -8,7 +8,7 @@ <section xml:id="image.examples-png"> <para> <example> - <title>PHPã«ããPNGã®çæ</title> + <title>PHP ã«ãã PNG ã®çæ</title> <programlisting role="php"> <![CDATA[ <?php @@ -27,13 +27,99 @@ </programlisting> </example> ãã®ä¾ã®ã¹ã¯ãªããã¯ã<img src="button.php?text"> - ã®ãããªã¿ã°ã«ãããããã¼ã¸ããã³ã¼ã«ããããã®ã§ãã - ä¸ã®button.phpã¹ã¯ãªããã¯ããã® "text" æååã弿°ã¨ - ãããã®å ´å㯠"images/button1.png" ã§ããåºæ¬ã¤ã¡ã¼ã¸ - ã®æä¸é¨ã«ãã®æååãæããå¾ãæç»å¾ã®ã®ã¤ã¡ã¼ã¸ãåºåãã¾ãã - ãã®æ¹æ³ã¯ããã¿ã³ã®ããã¹ãã夿´ããåº¦ã«æ°è¦ã®ãã¿ã³ãçæãã - å¿ è¦ãããã®ãåé¿ããããã«ä¾¿å©ãªææ³ã§ãã - ãã®æ¹æ³ã«ãããåçã«ã¤ã¡ã¼ã¸ãã¿ã³ãçæã§ãã¾ãã + ã®ãããªã¿ã°ãæ¸ããããã¼ã¸ããã³ã¼ã«ããããã®ã§ãã + ä¸ã® button.php ã¹ã¯ãªããã¯ããã® "text" æååã弿°ã¨ãã + åºæ¬ç»å "images/button1.png" + ã®ä¸ã«ãã®æååãéãã¦æããå¾ããã®ç»åãåºåãã¾ãã + ãã®æ¹æ³ã使ãã¨ããã¿ã³ã®ããã¹ããå¤ãããã³ã«æ°ããªãã¿ã³ãä½ãç´ãç¾½ç®ã«ãªããã¨ãåé¿ã§ãã¾ãã + ãã®æ¹æ³ã«ãããåçã«ç»åãã¿ã³ãçæã§ããã®ã§ãã + </para> + </section> + <section xml:id="image.examples-watermark"> + <para> + <example> + <title>ã¢ã«ãã¡ãã£ãã«ã使ç¨ãããç»åã¸ã®ãããã®è¿½å </title> + <programlisting role="php"> +<![CDATA[ +<?php +// ã¹ã¿ã³ãã¨ãããããããã¨ãã¦é©ç¨ããåçãèªã¿è¾¼ã¿ã¾ã +$stamp = imagecreatefrompng('stamp.png'); +$im = imagecreatefromjpeg('photo.jpeg'); + +// ã¹ã¿ã³ãã®ä½ç½ãè¨å®ããã¹ã¿ã³ãç»åã®å¹ ã¨é«ããåå¾ãã¾ã +$marge_right = 10; +$marge_bottom = 10; +$sx = imagesx($stamp); +$sy = imagesy($stamp); + +// ã¹ã¿ã³ãç»åãåçã®ä¸ã«ã³ãã¼ãã¾ããä½ç½ã®å¤ã¨ +// åçã®å¹ ãå ã«ã¹ã¿ã³ãã®ä½ç½®ã決å®ãã¾ã +imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp)); + +// åºåããã¡ã¢ãªãéæ¾ãã¾ã +header('Content-type: image/png'); +imagepng($im); +imagedestroy($im); +?> +]]> + </programlisting> + <mediaobject> + <imageobject> + <imagedata fileref="figures/image.watermarks.png" /> + </imageobject> + </mediaobject> + </example> + ãã®ä¾ã¯ãããããã¹ã¿ã³ããåçãããã¯è使¨©ã¤ãç»åã«è¿½å ããããã®ä¸è¬çãªæ¹æ³ã§ãã + ã¹ã¿ã³ãç»åå ã®ã¢ã«ãã¡ãã£ãã«ã®ããã¹ãã¯ã¢ã³ãã¨ã¤ãªã¢ã¹å¦çããããã¨ã«æ³¨æãã¾ãããã + ç»åãã³ãã¼ãã¦ãããã¯æ®ãç¶ãã¾ãã + </para> + </section> + <section xml:id="image.examples.merged-watermark"> + <para> + <example> + <title><function>imagecopymerge</function> ã«ããåéæãªãããã®ä½æ</title> + <programlisting role="php"> +<![CDATA[ +<?php +// ã¹ã¿ã³ãã¨ãããããããã¨ãã¦é©ç¨ããåçãèªã¿è¾¼ã¿ã¾ã +$im = imagecreatefromjpeg('photo.jpeg'); + +// ã¾ããã¹ã¿ã³ãç»åã GD ã§ä½æãã¾ã +$stamp = imagecreatetruecolor(100, 70); +imagefilledrectangle($stamp, 0,0, 99, 99, 0x0000FF); +imagefilledrectangle($stamp, 9,9, 90,60, 0xFFFFFF); +$im = imagecreatefromjpeg('photo.jpeg'); +imagestring($stamp, 5, 20, 20, 'libGD', 0x0000FF); +imagestring($stamp, 3, 20, 40, '(c) 2007-8', 0x0000FF); + +// ã¹ã¿ã³ãã®ä½ç½ãè¨å®ããã¹ã¿ã³ãç»åã®å¹ ã¨é«ããåå¾ãã¾ã +$marge_right = 10; +$marge_bottom = 10; +$sx = imagesx($stamp); +$sy = imagesy($stamp); + +// ã¹ã¿ã³ããã50% ã®ä¸éæåº¦ã§åçã«éãã¾ã +imagecopymerge($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp), 50); + +// ç»åããã¡ã¤ã«ã«ä¿åããã¡ã¢ãªãéæ¾ãã¾ã +imagepng($im, 'photo_stamp.png'); +imagedestroy($im); + +?> +]]> + </programlisting> + <mediaobject> + <imageobject> + <imagedata fileref="figures/image.watermark-merged.png" /> + </imageobject> + </mediaobject> + </example> + ãã®ä¾ã¯ã<function>imagecopymerge</function> + ã使ã£ã¦ã¹ã¿ã³ããå ç»åã«ãã¶ãã¾ãã + ããã使ãã¨ãã¹ã¿ã³ãã®ä¸éæåº¦ãè¨å®ãããã¨ãã§ãã¾ãã + ä»åã®ä¾ã§ã¯ 50% ã®ä¸éæåº¦ã«è¨å®ãã¦ãã¾ãã + ãã®åéæã®ããããç¨ããæ¹æ³ã¯ãè使¨©ã¤ãã®ç»åãä¿è·ããã®ã«ä¾¿å©ã§ãã + ããããã¨ãã®ã¯é常ã«é£ãããã¾ããã¨ã®ç»åã®è¦æ ããæãã¾ããã </para> </section> </chapter> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/http/HttpRequest/getHistory.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/http/HttpRequest/getHistory.xml diff -u phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.4 phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.5 --- phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.4 Thu Jun 5 05:58:37 2008 +++ phpdoc-ja/reference/http/HttpRequest/getHistory.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry xml:id="function.httprequest-gethistory" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>HttpRequest::getHistory</refname> @@ -26,7 +26,7 @@ <para> è¿ããããªãã¸ã§ã¯ãã¯ãç´è¿ã«åãåã£ãã¬ã¹ãã³ã¹ãåç §ãã¦ãã¾ãã ãã以åã«éä¿¡ãããªã¯ã¨ã¹ããåä¿¡ããã¬ã¹ãã³ã¹ã«ã¢ã¯ã»ã¹ããã«ã¯ - <function>HttpMessage::getParentMessage()</function> ã使ç¨ãã¾ãã + <function>HttpMessage::getParentMessage</function> ã使ç¨ãã¾ãã </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/funchand/functions/call-user-func.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-ja/reference/funchand/functions/call-user-func.xml diff -u phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.13 phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.14 --- phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.13 Fri Jan 25 21:46:23 2008 +++ phpdoc-ja/reference/funchand/functions/call-user-func.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.call-user-func" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -143,6 +143,19 @@ ]]> </programlisting> </example> + <example> + <title>ã©ã ã颿°ã®ä½¿ç¨</title> + <programlisting role="php"> +<![CDATA[ +<?php + +call_user_func(function($arg) { print "[$arg]\n"; }, 'test'); /* PHP 5.3.0 以é */ +// [test] + +?> +]]> + </programlisting> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/funchand/functions/call-user-func-array.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/funchand/functions/call-user-func-array.xml diff -u phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.11 phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.12 --- phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.11 Thu Jan 24 06:52:28 2008 +++ phpdoc-ja/reference/funchand/functions/call-user-func-array.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.call-user-func-array" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -107,6 +107,23 @@ ]]> </programlisting> </example> + <example> + <title>ã©ã ã颿°ã®ä½¿ç¨</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$func = function($arg1, $arg2) { + return $arg1 * $arg2; +}; + +var_dump(call_user_func($func, 2, 4)); /* PHP 5.3.0 以é */ +// int(8) + +?> +]]> + </programlisting> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/touch.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/touch.xml diff -u phpdoc-ja/reference/filesystem/functions/touch.xml:1.12 phpdoc-ja/reference/filesystem/functions/touch.xml:1.13 --- phpdoc-ja/reference/filesystem/functions/touch.xml:1.12 Mon Aug 25 20:42:26 2008 +++ phpdoc-ja/reference/filesystem/functions/touch.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.touch"> <refnamediv> <refname>touch</refname> @@ -111,6 +111,32 @@ </programlisting> </example> </para> + <para> + <example> + <title><function>touch</function> ã§ <parameter>time</parameter> ãã©ã¡ã¼ã¿ã使ç¨ããä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* + * 使æå»ããããã§ã¯ + * 1 æéåã«è¨å®ãã¾ã + */ +$time = time() - 3600; + +/* ãã¡ã¤ã«ã使ãã¾ã */ +if(!touch('some_file.txt', $time)) +{ + echo 'ãã£ã¨ãä½ããããããããã§ã...'; +} +else +{ + echo 'ãã¡ã¤ã«ã®ä½æã«æåãã¾ãã'; +} +?> +]]> + </programlisting> + </example> + </para> </refsect1> <refsect1 role="notes"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/stat.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/stat.xml diff -u phpdoc-ja/reference/filesystem/functions/stat.xml:1.15 phpdoc-ja/reference/filesystem/functions/stat.xml:1.16 --- phpdoc-ja/reference/filesystem/functions/stat.xml:1.15 Mon Aug 25 20:42:26 2008 +++ phpdoc-ja/reference/filesystem/functions/stat.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.22 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stat"> <refnamediv> @@ -169,6 +169,74 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>stat</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* ãã¡ã¤ã«ã®ç¶æ ãåå¾ãã¾ã */ +$stat = stat('C:\php\php.exe'); + +/* + * ãã¡ã¤ã«ã®ã¢ã¯ã»ã¹æ¥æã表示ãã¾ãã + * ãã㯠fileatime() ãã³ã¼ã«ããã®ã¨åãã§ã + */ +echo 'ã¢ã¯ã»ã¹æ¥æ: ' . $stat['atime']; + +/* + * ãã¡ã¤ã«ã®æ´æ°æ¥æã表示ãã¾ãã + * ãã㯠filemtime() ãã³ã¼ã«ããã®ã¨åãã§ã + */ +echo 'æ´æ°æ¥æ: ' . $stat['mtime']; + +/* ããã¤ã¹çªå·ã表示ãã¾ã */ +echo 'ããã¤ã¹çªå·: ' . $stat['dev']; +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>stat</function> ã®æ å ±ã <function>touch</function> ã¨çµã¿åãããä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* ãã¡ã¤ã«ã®ç¶æ ãåå¾ãã¾ã */ +$stat = @stat('C:\php\php.exe'); + +/* æ å ±ã®åå¾ã«å¤±æãã ? */ +if(!$stat) +{ + echo 'Stat ã®ã³ã¼ã«ã«å¤±æãã¾ãã...'; +} +else +{ + /* + * ã¢ã¯ã»ã¹æ¥æããç¾å¨ã®ã¢ã¯ã»ã¹æ¥æã® + * ä¸é±éå¾ã«è¨å®ãã¾ã + */ + $atime = $stat['atime'] + 604800; + + /* ãã¡ã¤ã«ã使ãã¾ã */ + if(!@touch('some_file.txt', time(), $atime)) + { + echo 'ãã¡ã¤ã«ã®ä½æã«å¤±æãã¾ãã...'; + } + else + { + echo 'ãã¡ã¤ã«ã®ä½æã«æåãã¾ãã...'; + } +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="notes"> &reftitle.notes; ¬e.filesystem-time-res; http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/datetime/functions/date.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-ja/reference/datetime/functions/date.xml diff -u phpdoc-ja/reference/datetime/functions/date.xml:1.29 phpdoc-ja/reference/datetime/functions/date.xml:1.30 --- phpdoc-ja/reference/datetime/functions/date.xml:1.29 Tue Jan 15 12:37:17 2008 +++ phpdoc-ja/reference/datetime/functions/date.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.42 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.43 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <refentry xml:id="function.date" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -217,7 +217,7 @@ </row> <row> <entry><literal>u</literal></entry> - <entry>ããªç§ (PHP 5.2.2 ã§è¿½å )ã</entry> + <entry>ãã¤ã¯ãç§ (PHP 5.2.2 ã§è¿½å )ã</entry> <entry>ä¾: <literal>54321</literal></entry> </row> <row> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-init.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-init.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-init.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-init" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_init</refname> @@ -69,8 +69,8 @@ } while ($running > 0); // ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-close.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-close.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-close" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_close</refname> @@ -67,9 +67,10 @@ do { curl_multi_exec($mh,$running); } while ($running > 0) + // ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-add-handle" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_add_handle</refname> @@ -73,8 +73,8 @@ } while($running > 0); // ãã¹ã¦ã®ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-map.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/array/functions/array-map.xml diff -u phpdoc-ja/reference/array/functions/array-map.xml:1.10 phpdoc-ja/reference/array/functions/array-map.xml:1.11 --- phpdoc-ja/reference/array/functions/array-map.xml:1.10 Thu Jan 24 06:52:28 2008 +++ phpdoc-ja/reference/array/functions/array-map.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <refentry xml:id="function.array-map" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_map</refname> @@ -100,6 +100,34 @@ ]]> </screen> </example> + <example> + <title><function>array_map</function> ã§ã©ã ã颿°ã使ç¨ããä¾ (PHP 5.3.0 以é)</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* PHP 5.3.0 以é */ + +$func = function($value) { return $value * 2; }; + +print_r(array_map($func, range(1, 5))); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Array +( + [0] => 2 + [1] => 4 + [2] => 6 + [3] => 8 + [4] => 10 +) +]]> + </screen> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-key-exists.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-ja/reference/array/functions/array-key-exists.xml diff -u phpdoc-ja/reference/array/functions/array-key-exists.xml:1.9 phpdoc-ja/reference/array/functions/array-key-exists.xml:1.10 --- phpdoc-ja/reference/array/functions/array-key-exists.xml:1.9 Fri Jun 22 14:31:37 2007 +++ phpdoc-ja/reference/array/functions/array-key-exists.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.16 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -19,7 +19,6 @@ æå®ãã <parameter>key</parameter> ãé åã«è¨å®ããã¦ããå ´åã <function>array_key_exists</function> 㯠&true; ãè¿ãã¾ãã <parameter>key</parameter> ã¯é åæ·»åã¨ãã¦ä½¿ç¨ã§ããå ¨ã¦ã®å¤ã使ç¨å¯è½ã§ãã - <function>array_key_exists</function> ã¯ãªãã¸ã§ã¯ãã«å¯¾ãã¦ãåä½ãã¾ãã </para> </refsect1> @@ -54,6 +53,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + ãã®é¢æ°ã¯ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã¯ä½¿ããªããªãã¾ããããªãã¸ã§ã¯ãã«ã¤ãã¦ã¯ + <function>property_exists</function> ã使ç¨ãã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -107,6 +131,7 @@ <member><function>isset</function></member> <member><function>array_keys</function></member> <member><function>in_array</function></member> + <member><function>property_exists</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-fill.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/array/functions/array-fill.xml diff -u phpdoc-ja/reference/array/functions/array-fill.xml:1.10 phpdoc-ja/reference/array/functions/array-fill.xml:1.11 --- phpdoc-ja/reference/array/functions/array-fill.xml:1.10 Sat May 17 06:16:33 2008 +++ phpdoc-ja/reference/array/functions/array-fill.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.15 Maintainer: hirokawa Status: ready --> <refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_fill</refname> @@ -125,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>array_fill_keys</function></member> <member><function>str_repeat</function></member> <member><function>range</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/predefined/exception/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/language/predefined/exception/construct.xml diff -u phpdoc-ja/language/predefined/exception/construct.xml:1.1 phpdoc-ja/language/predefined/exception/construct.xml:1.2 --- phpdoc-ja/language/predefined/exception/construct.xml:1.1 Fri Apr 18 23:38:25 2008 +++ phpdoc-ja/language/predefined/exception/construct.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -12,8 +12,8 @@ &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>Exception::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>message</parameter><initializer>NULL</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>code</parameter><initializer>0</initializer></methodparam> </constructorsynopsis> <para> ä¾å¤ã使ãã¾ãã http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/oop5/reflection.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-ja/language/oop5/reflection.xml diff -u phpdoc-ja/language/oop5/reflection.xml:1.24 phpdoc-ja/language/oop5/reflection.xml:1.25 --- phpdoc-ja/language/oop5/reflection.xml:1.24 Mon Aug 11 04:02:59 2008 +++ phpdoc-ja/language/oop5/reflection.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.36 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <sect1 xml:id="language.oop5.reflection" xmlns="http://docbook.org/ns/docbook"> @@ -181,6 +181,7 @@ public string getName() public bool isInternal() public bool isDisabled() + public mixed getClosure() /* PHP 5.3.0 以é */ public bool isUserDefined() public string getFileName() public int getStartLine() @@ -590,6 +591,7 @@ public bool isConstructor() public bool isDestructor() public int getModifiers() + public mixed getClosure() /* PHP 5.3.0 以é */ public ReflectionClass getDeclaringClass() // ReflectionFunctionAbstract ããç¶æ¿ããã¡ã½ãã @@ -680,6 +682,27 @@ ]]> </programlisting> </example> + <example> + <title><classname>ReflectionMethod</classname> ã¯ã©ã¹ãç¨ããã¯ãã¼ã¸ã£ã®åå¾</title> + <programlisting role='php'> +<![CDATA[ +<?php + +class Example { + static function printer () { + echo "Hello World!\n"; + } +} + +$class = new ReflectionClass('Example'); +$method = $class->getMethod('printer'); +$closure = $method->getClosure(); /* PHP 5.3.0 以é */ +$closure(); // Hello World! + +?> +]]> + </programlisting> + </example> <note> <simpara> private, protectedã¾ãã¯abstractã¡ã½ããã®invokeãè¡ãã¨ã @@ -782,6 +805,32 @@ var_dump($obj); ?> ]]> + </programlisting> + </example> + <example> + <title><classname>ReflectionProperty</classname> ã¯ã©ã¹ãç¨ãããprivate ããã³ protected ããããã£ã®å¤ã®åå¾</title> + <programlisting role='php'> +<![CDATA[ +<?php + +class Foo { + public $x = 1; + protected $y = 2; + private $z = 3; +} + +$obj = new Foo; + +$prop = new ReflectionProperty('Foo', 'y'); +$prop->setAccessible(true); /* PHP 5.3.0 以é */ +var_dump($prop->getValue($obj)); // int(2) + +$prop = new ReflectionProperty('Foo', 'z'); +$prop->setAccessible(true); /* PHP 5.3.0 以é */ +var_dump($prop->getValue($obj)); // int(2) + +?> +]]> </programlisting> </example> <note> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/control-structures.xml?r1=1.76&r2=1.77&diff_format=u Index: phpdoc-ja/language/control-structures.xml diff -u phpdoc-ja/language/control-structures.xml:1.76 phpdoc-ja/language/control-structures.xml:1.77 --- phpdoc-ja/language/control-structures.xml:1.76 Wed Aug 27 20:12:22 2008 +++ phpdoc-ja/language/control-structures.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.76 $ --> -<!-- EN-Revision: 1.165 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.77 $ --> +<!-- EN-Revision: 1.167 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi,shimooka --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -486,7 +486,61 @@ endfor; ]]> </programlisting> - </informalexample> + </informalexample> + </para> + <simpara> + å¤ãã®ã¦ã¼ã¶ã«ã¨ã£ã¦ã次ã®ä¾ã®ããã«é åãã«ã¼ãå¦çãããã¨ã¯ããããã§ãããã + </simpara> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +/* + * ãã¼ã¿ãå ¥ã£ãé åã§ãã«ã¼ãå¦çä¸ã« + * ãã®ä¸èº«ãæ¸ãæãããã¨èãã¦ãã¾ã + */ +$people = Array( + Array('name' => 'Kalle', 'salt' => 856412), + Array('name' => 'Pierre', 'salt' => 215863) + ); + +for($i = 0; $i < sizeof($people); ++$i) +{ + $people[$i]['salt'] = rand(000000, 999999); +} +?> +]]> + </programlisting> + </informalexample> + </para> + <simpara> + ãã®æ¸ãæ¹ã«ã¯åé¡ãããã¾ãã + ãã®ã³ã¼ãã¯å®è¡é度ãé ããªããã¨ã§ãããã + é åã®ãµã¤ãºãæ¯åè¨ç®ãã¦ããããã§ãã + ãµã¤ãºãå¤ãããã¨ã¯ãªãã®ã§ããããããã¯ç°¡åã«æé©åãããã¨ãã§ãã¾ãã + é åã®ãµã¤ãºã夿°ã«æ ¼ç´ãã¦ãã«ã¼ãå ã§ã¯ sizeof + ã§ã¯ãªããã®å¤æ°ã®å¤ã使ãã°ããã®ã§ãã + 以ä¸ã«ä¾ã示ãã¾ãã + </simpara> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +$people = Array( + Array('name' => 'Kalle', 'salt' => 856412), + Array('name' => 'Pierre', 'salt' => 215863) + ); + +for($i = 0, $size = sizeof($people); $i < $size; ++$i) +{ + $people[$i]['salt'] = rand(000000, 999999); +} +?> +]]> + </programlisting> + </informalexample> </para> </sect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/features/safe-mode.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-ja/features/safe-mode.xml diff -u phpdoc-ja/features/safe-mode.xml:1.29 phpdoc-ja/features/safe-mode.xml:1.30 --- phpdoc-ja/features/safe-mode.xml:1.29 Fri Apr 25 20:35:57 2008 +++ phpdoc-ja/features/safe-mode.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.76 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.77 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <chapter xml:id="features.safe-mode" xmlns="http://docbook.org/ns/docbook"> <title>ã»ã¼ãã¢ã¼ã</title> @@ -89,8 +89,7 @@ </tbody> </tgroup> </table> - PHP_INI_*ã®å®ç¾©ã¨è©³ç´°ã«ã¤ãã¦ã¯ã - <function>ini_set</function>ãåç §ãã¦ãã ããã + &ini.php.constants; </para> &ini.descriptions.title; http://cvs.php.net/viewvc.cgi/phpdoc-ja/features/persistent-connections.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-ja/features/persistent-connections.xml diff -u phpdoc-ja/features/persistent-connections.xml:1.16 phpdoc-ja/features/persistent-connections.xml:1.17 --- phpdoc-ja/features/persistent-connections.xml:1.16 Sat Feb 23 02:59:19 2008 +++ phpdoc-ja/features/persistent-connections.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.26 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.27 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <chapter xml:id="features.persistent-connections" xmlns="http://docbook.org/ns/docbook"> <title>æç¶çãã¼ã¿ãã¼ã¹æ¥ç¶</title> @@ -116,12 +116,12 @@ <emphasis>ããããã¾ãã</emphasis>(ããããå¤ãã¾ã)ããåä½ã¯å¤æ´ãã¾ãã! </simpara> <para> - See also <function>fbsql_pconnect</function>, + <function>fbsql_pconnect</function>, <function>ibase_pconnect</function>, <function>ifx_pconnect</function>, <function>ingres_pconnect</function>, <function>msql_pconnect</function>, <function>mssql_pconnect</function>, <function>mysql_pconnect</function>, <function>ociplogon</function>, - <function>odbc_pconnect</function>, <function>ora_plogon</function>, + <function>odbc_pconnect</function>, <function>oci_pconnect</function>, <function>pfsockopen</function>, <function>pg_pconnect</function>, <function>sybase_pconnect</function>ãåç §ãã¦ãã ããã </para>
http://cvs.php.net/viewvc.cgi/phpdoc-ja/security/filesystem.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/security/filesystem.xml diff -u phpdoc-ja/security/filesystem.xml:1.5 phpdoc-ja/security/filesystem.xml:1.6 --- phpdoc-ja/security/filesystem.xml:1.5 Fri Jun 22 14:32:58 2007 +++ phpdoc-ja/security/filesystem.xml Fri Sep 5 11:58:12 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> <chapter xml:id="security.filesystem" xmlns="http://docbook.org/ns/docbook"> <title>ãã¡ã¤ã«ã·ã¹ãã ã®ã»ãã¥ãªãã£</title> @@ -100,7 +100,7 @@ $logstring = "$filepath ã®åé¤ã«å¤±æãã¾ãã\n"; } $fp = fopen("/home/logging/filedelete.log", "a"); -fwrite($fp, $lo gstring); +fwrite($fp, $logstring); fclose($fp); echo htmlentities($logstring, ENT_QUOTES); http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/setlocale.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/strings/functions/setlocale.xml diff -u phpdoc-ja/reference/strings/functions/setlocale.xml:1.10 phpdoc-ja/reference/strings/functions/setlocale.xml:1.11 --- phpdoc-ja/reference/strings/functions/setlocale.xml:1.10 Wed Aug 27 20:12:17 2008 +++ phpdoc-ja/reference/strings/functions/setlocale.xml Fri Sep 5 11:58:12 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.31 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.32 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.setlocale"> <refnamediv> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/memcache/functions/memcache-addserver.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/memcache/functions/memcache-addserver.xml diff -u phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.11 phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.12 --- phpdoc-ja/reference/memcache/functions/memcache-addserver.xml:1.11 Thu Jun 5 06:04:11 2008 +++ phpdoc-ja/reference/memcache/functions/memcache-addserver.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.12 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.13 Maintainer: takagi Status: ready --> <refentry xml:id="function.memcache-addserver" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Memcache::addServer</refname> @@ -32,8 +32,8 @@ </para> <para> - (<function>Memcache::connect()</function> ããã³ - <function>Memcache::pconnect()</function> ã§ã¯ãªã) + (<function>Memcache::connect</function> ããã³ + <function>Memcache::pconnect</function> ã§ã¯ãªã) ãã®ã¡ã½ããã使ç¨ããã¨ããããã¯ã¼ã¯æ¥ç¶ã¯ ãããå®éã«å¿ è¦ã¨ãªãã¨ãã¾ã§ç¢ºçããã¾ããã ã¤ã¾ãã大éã®ãµã¼ãããã¼ã«ã«è¿½å ããå ´åã«ã http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/image/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/image/examples.xml diff -u phpdoc-ja/reference/image/examples.xml:1.1 phpdoc-ja/reference/image/examples.xml:1.2 --- phpdoc-ja/reference/image/examples.xml:1.1 Mon Dec 24 02:49:15 2007 +++ phpdoc-ja/reference/image/examples.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <!-- CREDITS: hirokawa --> <chapter xml:id="image.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -8,7 +8,7 @@ <section xml:id="image.examples-png"> <para> <example> - <title>PHPã«ããPNGã®çæ</title> + <title>PHP ã«ãã PNG ã®çæ</title> <programlisting role="php"> <![CDATA[ <?php @@ -27,13 +27,99 @@ </programlisting> </example> ãã®ä¾ã®ã¹ã¯ãªããã¯ã<img src="button.php?text"> - ã®ãããªã¿ã°ã«ãããããã¼ã¸ããã³ã¼ã«ããããã®ã§ãã - ä¸ã®button.phpã¹ã¯ãªããã¯ããã® "text" æååã弿°ã¨ - ãããã®å ´å㯠"images/button1.png" ã§ããåºæ¬ã¤ã¡ã¼ã¸ - ã®æä¸é¨ã«ãã®æååãæããå¾ãæç»å¾ã®ã®ã¤ã¡ã¼ã¸ãåºåãã¾ãã - ãã®æ¹æ³ã¯ããã¿ã³ã®ããã¹ãã夿´ããåº¦ã«æ°è¦ã®ãã¿ã³ãçæãã - å¿ è¦ãããã®ãåé¿ããããã«ä¾¿å©ãªææ³ã§ãã - ãã®æ¹æ³ã«ãããåçã«ã¤ã¡ã¼ã¸ãã¿ã³ãçæã§ãã¾ãã + ã®ãããªã¿ã°ãæ¸ããããã¼ã¸ããã³ã¼ã«ããããã®ã§ãã + ä¸ã® button.php ã¹ã¯ãªããã¯ããã® "text" æååã弿°ã¨ãã + åºæ¬ç»å "images/button1.png" + ã®ä¸ã«ãã®æååãéãã¦æããå¾ããã®ç»åãåºåãã¾ãã + ãã®æ¹æ³ã使ãã¨ããã¿ã³ã®ããã¹ããå¤ãããã³ã«æ°ããªãã¿ã³ãä½ãç´ãç¾½ç®ã«ãªããã¨ãåé¿ã§ãã¾ãã + ãã®æ¹æ³ã«ãããåçã«ç»åãã¿ã³ãçæã§ããã®ã§ãã + </para> + </section> + <section xml:id="image.examples-watermark"> + <para> + <example> + <title>ã¢ã«ãã¡ãã£ãã«ã使ç¨ãããç»åã¸ã®ãããã®è¿½å </title> + <programlisting role="php"> +<![CDATA[ +<?php +// ã¹ã¿ã³ãã¨ãããããããã¨ãã¦é©ç¨ããåçãèªã¿è¾¼ã¿ã¾ã +$stamp = imagecreatefrompng('stamp.png'); +$im = imagecreatefromjpeg('photo.jpeg'); + +// ã¹ã¿ã³ãã®ä½ç½ãè¨å®ããã¹ã¿ã³ãç»åã®å¹ ã¨é«ããåå¾ãã¾ã +$marge_right = 10; +$marge_bottom = 10; +$sx = imagesx($stamp); +$sy = imagesy($stamp); + +// ã¹ã¿ã³ãç»åãåçã®ä¸ã«ã³ãã¼ãã¾ããä½ç½ã®å¤ã¨ +// åçã®å¹ ãå ã«ã¹ã¿ã³ãã®ä½ç½®ã決å®ãã¾ã +imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp)); + +// åºåããã¡ã¢ãªãéæ¾ãã¾ã +header('Content-type: image/png'); +imagepng($im); +imagedestroy($im); +?> +]]> + </programlisting> + <mediaobject> + <imageobject> + <imagedata fileref="figures/image.watermarks.png" /> + </imageobject> + </mediaobject> + </example> + ãã®ä¾ã¯ãããããã¹ã¿ã³ããåçãããã¯è使¨©ã¤ãç»åã«è¿½å ããããã®ä¸è¬çãªæ¹æ³ã§ãã + ã¹ã¿ã³ãç»åå ã®ã¢ã«ãã¡ãã£ãã«ã®ããã¹ãã¯ã¢ã³ãã¨ã¤ãªã¢ã¹å¦çããããã¨ã«æ³¨æãã¾ãããã + ç»åãã³ãã¼ãã¦ãããã¯æ®ãç¶ãã¾ãã + </para> + </section> + <section xml:id="image.examples.merged-watermark"> + <para> + <example> + <title><function>imagecopymerge</function> ã«ããåéæãªãããã®ä½æ</title> + <programlisting role="php"> +<![CDATA[ +<?php +// ã¹ã¿ã³ãã¨ãããããããã¨ãã¦é©ç¨ããåçãèªã¿è¾¼ã¿ã¾ã +$im = imagecreatefromjpeg('photo.jpeg'); + +// ã¾ããã¹ã¿ã³ãç»åã GD ã§ä½æãã¾ã +$stamp = imagecreatetruecolor(100, 70); +imagefilledrectangle($stamp, 0,0, 99, 99, 0x0000FF); +imagefilledrectangle($stamp, 9,9, 90,60, 0xFFFFFF); +$im = imagecreatefromjpeg('photo.jpeg'); +imagestring($stamp, 5, 20, 20, 'libGD', 0x0000FF); +imagestring($stamp, 3, 20, 40, '(c) 2007-8', 0x0000FF); + +// ã¹ã¿ã³ãã®ä½ç½ãè¨å®ããã¹ã¿ã³ãç»åã®å¹ ã¨é«ããåå¾ãã¾ã +$marge_right = 10; +$marge_bottom = 10; +$sx = imagesx($stamp); +$sy = imagesy($stamp); + +// ã¹ã¿ã³ããã50% ã®ä¸éæåº¦ã§åçã«éãã¾ã +imagecopymerge($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp), 50); + +// ç»åããã¡ã¤ã«ã«ä¿åããã¡ã¢ãªãéæ¾ãã¾ã +imagepng($im, 'photo_stamp.png'); +imagedestroy($im); + +?> +]]> + </programlisting> + <mediaobject> + <imageobject> + <imagedata fileref="figures/image.watermark-merged.png" /> + </imageobject> + </mediaobject> + </example> + ãã®ä¾ã¯ã<function>imagecopymerge</function> + ã使ã£ã¦ã¹ã¿ã³ããå ç»åã«ãã¶ãã¾ãã + ããã使ãã¨ãã¹ã¿ã³ãã®ä¸éæåº¦ãè¨å®ãããã¨ãã§ãã¾ãã + ä»åã®ä¾ã§ã¯ 50% ã®ä¸éæåº¦ã«è¨å®ãã¦ãã¾ãã + ãã®åéæã®ããããç¨ããæ¹æ³ã¯ãè使¨©ã¤ãã®ç»åãä¿è·ããã®ã«ä¾¿å©ã§ãã + ããããã¨ãã®ã¯é常ã«é£ãããã¾ããã¨ã®ç»åã®è¦æ ããæãã¾ããã </para> </section> </chapter> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/http/HttpRequest/getHistory.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/http/HttpRequest/getHistory.xml diff -u phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.4 phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.5 --- phpdoc-ja/reference/http/HttpRequest/getHistory.xml:1.4 Thu Jun 5 05:58:37 2008 +++ phpdoc-ja/reference/http/HttpRequest/getHistory.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry xml:id="function.httprequest-gethistory" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>HttpRequest::getHistory</refname> @@ -26,7 +26,7 @@ <para> è¿ããããªãã¸ã§ã¯ãã¯ãç´è¿ã«åãåã£ãã¬ã¹ãã³ã¹ãåç §ãã¦ãã¾ãã ãã以åã«éä¿¡ãããªã¯ã¨ã¹ããåä¿¡ããã¬ã¹ãã³ã¹ã«ã¢ã¯ã»ã¹ããã«ã¯ - <function>HttpMessage::getParentMessage()</function> ã使ç¨ãã¾ãã + <function>HttpMessage::getParentMessage</function> ã使ç¨ãã¾ãã </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/funchand/functions/call-user-func.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-ja/reference/funchand/functions/call-user-func.xml diff -u phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.13 phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.14 --- phpdoc-ja/reference/funchand/functions/call-user-func.xml:1.13 Fri Jan 25 21:46:23 2008 +++ phpdoc-ja/reference/funchand/functions/call-user-func.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.call-user-func" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -143,6 +143,19 @@ ]]> </programlisting> </example> + <example> + <title>ã©ã ã颿°ã®ä½¿ç¨</title> + <programlisting role="php"> +<![CDATA[ +<?php + +call_user_func(function($arg) { print "[$arg]\n"; }, 'test'); /* PHP 5.3.0 以é */ +// [test] + +?> +]]> + </programlisting> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/funchand/functions/call-user-func-array.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/funchand/functions/call-user-func-array.xml diff -u phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.11 phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.12 --- phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.11 Thu Jan 24 06:52:28 2008 +++ phpdoc-ja/reference/funchand/functions/call-user-func-array.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.call-user-func-array" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -107,6 +107,23 @@ ]]> </programlisting> </example> + <example> + <title>ã©ã ã颿°ã®ä½¿ç¨</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$func = function($arg1, $arg2) { + return $arg1 * $arg2; +}; + +var_dump(call_user_func($func, 2, 4)); /* PHP 5.3.0 以é */ +// int(8) + +?> +]]> + </programlisting> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/touch.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/touch.xml diff -u phpdoc-ja/reference/filesystem/functions/touch.xml:1.12 phpdoc-ja/reference/filesystem/functions/touch.xml:1.13 --- phpdoc-ja/reference/filesystem/functions/touch.xml:1.12 Mon Aug 25 20:42:26 2008 +++ phpdoc-ja/reference/filesystem/functions/touch.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.touch"> <refnamediv> <refname>touch</refname> @@ -111,6 +111,32 @@ </programlisting> </example> </para> + <para> + <example> + <title><function>touch</function> ã§ <parameter>time</parameter> ãã©ã¡ã¼ã¿ã使ç¨ããä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* + * 使æå»ããããã§ã¯ + * 1 æéåã«è¨å®ãã¾ã + */ +$time = time() - 3600; + +/* ãã¡ã¤ã«ã使ãã¾ã */ +if(!touch('some_file.txt', $time)) +{ + echo 'ãã£ã¨ãä½ããããããããã§ã...'; +} +else +{ + echo 'ãã¡ã¤ã«ã®ä½æã«æåãã¾ãã'; +} +?> +]]> + </programlisting> + </example> + </para> </refsect1> <refsect1 role="notes"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/stat.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/stat.xml diff -u phpdoc-ja/reference/filesystem/functions/stat.xml:1.15 phpdoc-ja/reference/filesystem/functions/stat.xml:1.16 --- phpdoc-ja/reference/filesystem/functions/stat.xml:1.15 Mon Aug 25 20:42:26 2008 +++ phpdoc-ja/reference/filesystem/functions/stat.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.22 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stat"> <refnamediv> @@ -169,6 +169,74 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>stat</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* ãã¡ã¤ã«ã®ç¶æ ãåå¾ãã¾ã */ +$stat = stat('C:\php\php.exe'); + +/* + * ãã¡ã¤ã«ã®ã¢ã¯ã»ã¹æ¥æã表示ãã¾ãã + * ãã㯠fileatime() ãã³ã¼ã«ããã®ã¨åãã§ã + */ +echo 'ã¢ã¯ã»ã¹æ¥æ: ' . $stat['atime']; + +/* + * ãã¡ã¤ã«ã®æ´æ°æ¥æã表示ãã¾ãã + * ãã㯠filemtime() ãã³ã¼ã«ããã®ã¨åãã§ã + */ +echo 'æ´æ°æ¥æ: ' . $stat['mtime']; + +/* ããã¤ã¹çªå·ã表示ãã¾ã */ +echo 'ããã¤ã¹çªå·: ' . $stat['dev']; +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>stat</function> ã®æ å ±ã <function>touch</function> ã¨çµã¿åãããä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* ãã¡ã¤ã«ã®ç¶æ ãåå¾ãã¾ã */ +$stat = @stat('C:\php\php.exe'); + +/* æ å ±ã®åå¾ã«å¤±æãã ? */ +if(!$stat) +{ + echo 'Stat ã®ã³ã¼ã«ã«å¤±æãã¾ãã...'; +} +else +{ + /* + * ã¢ã¯ã»ã¹æ¥æããç¾å¨ã®ã¢ã¯ã»ã¹æ¥æã® + * ä¸é±éå¾ã«è¨å®ãã¾ã + */ + $atime = $stat['atime'] + 604800; + + /* ãã¡ã¤ã«ã使ãã¾ã */ + if(!@touch('some_file.txt', time(), $atime)) + { + echo 'ãã¡ã¤ã«ã®ä½æã«å¤±æãã¾ãã...'; + } + else + { + echo 'ãã¡ã¤ã«ã®ä½æã«æåãã¾ãã...'; + } +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="notes"> &reftitle.notes; ¬e.filesystem-time-res; http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/datetime/functions/date.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-ja/reference/datetime/functions/date.xml diff -u phpdoc-ja/reference/datetime/functions/date.xml:1.29 phpdoc-ja/reference/datetime/functions/date.xml:1.30 --- phpdoc-ja/reference/datetime/functions/date.xml:1.29 Tue Jan 15 12:37:17 2008 +++ phpdoc-ja/reference/datetime/functions/date.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.42 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.43 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <refentry xml:id="function.date" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -217,7 +217,7 @@ </row> <row> <entry><literal>u</literal></entry> - <entry>ããªç§ (PHP 5.2.2 ã§è¿½å )ã</entry> + <entry>ãã¤ã¯ãç§ (PHP 5.2.2 ã§è¿½å )ã</entry> <entry>ä¾: <literal>54321</literal></entry> </row> <row> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-init.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-init.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-init.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-init.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-init" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_init</refname> @@ -69,8 +69,8 @@ } while ($running > 0); // ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-close.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-close.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-close.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-close.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-close" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_close</refname> @@ -67,9 +67,10 @@ do { curl_multi_exec($mh,$running); } while ($running > 0) + // ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml diff -u phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.4 phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.5 --- phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml:1.4 Fri Jun 22 14:31:41 2007 +++ phpdoc-ja/reference/curl/functions/curl-multi-add-handle.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry xml:id="function.curl-multi-add-handle" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_multi_add_handle</refname> @@ -73,8 +73,8 @@ } while($running > 0); // ãã¹ã¦ã®ãã³ãã«ãéãã¾ã -curl_multi_remove_handle($ch1); -curl_multi_remove_handle($ch2); +curl_multi_remove_handle($mh, $ch1); +curl_multi_remove_handle($mh, $ch2); curl_multi_close($mh); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-map.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/array/functions/array-map.xml diff -u phpdoc-ja/reference/array/functions/array-map.xml:1.10 phpdoc-ja/reference/array/functions/array-map.xml:1.11 --- phpdoc-ja/reference/array/functions/array-map.xml:1.10 Thu Jan 24 06:52:28 2008 +++ phpdoc-ja/reference/array/functions/array-map.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <refentry xml:id="function.array-map" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_map</refname> @@ -100,6 +100,34 @@ ]]> </screen> </example> + <example> + <title><function>array_map</function> ã§ã©ã ã颿°ã使ç¨ããä¾ (PHP 5.3.0 以é)</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* PHP 5.3.0 以é */ + +$func = function($value) { return $value * 2; }; + +print_r(array_map($func, range(1, 5))); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Array +( + [0] => 2 + [1] => 4 + [2] => 6 + [3] => 8 + [4] => 10 +) +]]> + </screen> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-key-exists.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-ja/reference/array/functions/array-key-exists.xml diff -u phpdoc-ja/reference/array/functions/array-key-exists.xml:1.9 phpdoc-ja/reference/array/functions/array-key-exists.xml:1.10 --- phpdoc-ja/reference/array/functions/array-key-exists.xml:1.9 Fri Jun 22 14:31:37 2007 +++ phpdoc-ja/reference/array/functions/array-key-exists.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.16 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -19,7 +19,6 @@ æå®ãã <parameter>key</parameter> ãé åã«è¨å®ããã¦ããå ´åã <function>array_key_exists</function> 㯠&true; ãè¿ãã¾ãã <parameter>key</parameter> ã¯é åæ·»åã¨ãã¦ä½¿ç¨ã§ããå ¨ã¦ã®å¤ã使ç¨å¯è½ã§ãã - <function>array_key_exists</function> ã¯ãªãã¸ã§ã¯ãã«å¯¾ãã¦ãåä½ãã¾ãã </para> </refsect1> @@ -54,6 +53,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + ãã®é¢æ°ã¯ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã¯ä½¿ããªããªãã¾ããããªãã¸ã§ã¯ãã«ã¤ãã¦ã¯ + <function>property_exists</function> ã使ç¨ãã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -107,6 +131,7 @@ <member><function>isset</function></member> <member><function>array_keys</function></member> <member><function>in_array</function></member> + <member><function>property_exists</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-fill.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/array/functions/array-fill.xml diff -u phpdoc-ja/reference/array/functions/array-fill.xml:1.10 phpdoc-ja/reference/array/functions/array-fill.xml:1.11 --- phpdoc-ja/reference/array/functions/array-fill.xml:1.10 Sat May 17 06:16:33 2008 +++ phpdoc-ja/reference/array/functions/array-fill.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.15 Maintainer: hirokawa Status: ready --> <refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_fill</refname> @@ -125,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>array_fill_keys</function></member> <member><function>str_repeat</function></member> <member><function>range</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/predefined/exception/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/language/predefined/exception/construct.xml diff -u phpdoc-ja/language/predefined/exception/construct.xml:1.1 phpdoc-ja/language/predefined/exception/construct.xml:1.2 --- phpdoc-ja/language/predefined/exception/construct.xml:1.1 Fri Apr 18 23:38:25 2008 +++ phpdoc-ja/language/predefined/exception/construct.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -12,8 +12,8 @@ &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>Exception::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>message</parameter><initializer>NULL</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>code</parameter><initializer>0</initializer></methodparam> </constructorsynopsis> <para> ä¾å¤ã使ãã¾ãã http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/oop5/reflection.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-ja/language/oop5/reflection.xml diff -u phpdoc-ja/language/oop5/reflection.xml:1.24 phpdoc-ja/language/oop5/reflection.xml:1.25 --- phpdoc-ja/language/oop5/reflection.xml:1.24 Mon Aug 11 04:02:59 2008 +++ phpdoc-ja/language/oop5/reflection.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.36 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <sect1 xml:id="language.oop5.reflection" xmlns="http://docbook.org/ns/docbook"> @@ -181,6 +181,7 @@ public string getName() public bool isInternal() public bool isDisabled() + public mixed getClosure() /* PHP 5.3.0 以é */ public bool isUserDefined() public string getFileName() public int getStartLine() @@ -590,6 +591,7 @@ public bool isConstructor() public bool isDestructor() public int getModifiers() + public mixed getClosure() /* PHP 5.3.0 以é */ public ReflectionClass getDeclaringClass() // ReflectionFunctionAbstract ããç¶æ¿ããã¡ã½ãã @@ -680,6 +682,27 @@ ]]> </programlisting> </example> + <example> + <title><classname>ReflectionMethod</classname> ã¯ã©ã¹ãç¨ããã¯ãã¼ã¸ã£ã®åå¾</title> + <programlisting role='php'> +<![CDATA[ +<?php + +class Example { + static function printer () { + echo "Hello World!\n"; + } +} + +$class = new ReflectionClass('Example'); +$method = $class->getMethod('printer'); +$closure = $method->getClosure(); /* PHP 5.3.0 以é */ +$closure(); // Hello World! + +?> +]]> + </programlisting> + </example> <note> <simpara> private, protectedã¾ãã¯abstractã¡ã½ããã®invokeãè¡ãã¨ã @@ -782,6 +805,32 @@ var_dump($obj); ?> ]]> + </programlisting> + </example> + <example> + <title><classname>ReflectionProperty</classname> ã¯ã©ã¹ãç¨ãããprivate ããã³ protected ããããã£ã®å¤ã®åå¾</title> + <programlisting role='php'> +<![CDATA[ +<?php + +class Foo { + public $x = 1; + protected $y = 2; + private $z = 3; +} + +$obj = new Foo; + +$prop = new ReflectionProperty('Foo', 'y'); +$prop->setAccessible(true); /* PHP 5.3.0 以é */ +var_dump($prop->getValue($obj)); // int(2) + +$prop = new ReflectionProperty('Foo', 'z'); +$prop->setAccessible(true); /* PHP 5.3.0 以é */ +var_dump($prop->getValue($obj)); // int(2) + +?> +]]> </programlisting> </example> <note> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/control-structures.xml?r1=1.76&r2=1.77&diff_format=u Index: phpdoc-ja/language/control-structures.xml diff -u phpdoc-ja/language/control-structures.xml:1.76 phpdoc-ja/language/control-structures.xml:1.77 --- phpdoc-ja/language/control-structures.xml:1.76 Wed Aug 27 20:12:22 2008 +++ phpdoc-ja/language/control-structures.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.76 $ --> -<!-- EN-Revision: 1.165 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.77 $ --> +<!-- EN-Revision: 1.167 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi,shimooka --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -486,7 +486,61 @@ endfor; ]]> </programlisting> - </informalexample> + </informalexample> + </para> + <simpara> + å¤ãã®ã¦ã¼ã¶ã«ã¨ã£ã¦ã次ã®ä¾ã®ããã«é åãã«ã¼ãå¦çãããã¨ã¯ããããã§ãããã + </simpara> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +/* + * ãã¼ã¿ãå ¥ã£ãé åã§ãã«ã¼ãå¦çä¸ã« + * ãã®ä¸èº«ãæ¸ãæãããã¨èãã¦ãã¾ã + */ +$people = Array( + Array('name' => 'Kalle', 'salt' => 856412), + Array('name' => 'Pierre', 'salt' => 215863) + ); + +for($i = 0; $i < sizeof($people); ++$i) +{ + $people[$i]['salt'] = rand(000000, 999999); +} +?> +]]> + </programlisting> + </informalexample> + </para> + <simpara> + ãã®æ¸ãæ¹ã«ã¯åé¡ãããã¾ãã + ãã®ã³ã¼ãã¯å®è¡é度ãé ããªããã¨ã§ãããã + é åã®ãµã¤ãºãæ¯åè¨ç®ãã¦ããããã§ãã + ãµã¤ãºãå¤ãããã¨ã¯ãªãã®ã§ããããããã¯ç°¡åã«æé©åãããã¨ãã§ãã¾ãã + é åã®ãµã¤ãºã夿°ã«æ ¼ç´ãã¦ãã«ã¼ãå ã§ã¯ sizeof + ã§ã¯ãªããã®å¤æ°ã®å¤ã使ãã°ããã®ã§ãã + 以ä¸ã«ä¾ã示ãã¾ãã + </simpara> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +$people = Array( + Array('name' => 'Kalle', 'salt' => 856412), + Array('name' => 'Pierre', 'salt' => 215863) + ); + +for($i = 0, $size = sizeof($people); $i < $size; ++$i) +{ + $people[$i]['salt'] = rand(000000, 999999); +} +?> +]]> + </programlisting> + </informalexample> </para> </sect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/features/safe-mode.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-ja/features/safe-mode.xml diff -u phpdoc-ja/features/safe-mode.xml:1.29 phpdoc-ja/features/safe-mode.xml:1.30 --- phpdoc-ja/features/safe-mode.xml:1.29 Fri Apr 25 20:35:57 2008 +++ phpdoc-ja/features/safe-mode.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.76 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.77 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <chapter xml:id="features.safe-mode" xmlns="http://docbook.org/ns/docbook"> <title>ã»ã¼ãã¢ã¼ã</title> @@ -89,8 +89,7 @@ </tbody> </tgroup> </table> - PHP_INI_*ã®å®ç¾©ã¨è©³ç´°ã«ã¤ãã¦ã¯ã - <function>ini_set</function>ãåç §ãã¦ãã ããã + &ini.php.constants; </para> &ini.descriptions.title; http://cvs.php.net/viewvc.cgi/phpdoc-ja/features/persistent-connections.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-ja/features/persistent-connections.xml diff -u phpdoc-ja/features/persistent-connections.xml:1.16 phpdoc-ja/features/persistent-connections.xml:1.17 --- phpdoc-ja/features/persistent-connections.xml:1.16 Sat Feb 23 02:59:19 2008 +++ phpdoc-ja/features/persistent-connections.xml Fri Sep 5 11:58:13 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.26 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.27 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <chapter xml:id="features.persistent-connections" xmlns="http://docbook.org/ns/docbook"> <title>æç¶çãã¼ã¿ãã¼ã¹æ¥ç¶</title> @@ -116,12 +116,12 @@ <emphasis>ããããã¾ãã</emphasis>(ããããå¤ãã¾ã)ããåä½ã¯å¤æ´ãã¾ãã! </simpara> <para> - See also <function>fbsql_pconnect</function>, + <function>fbsql_pconnect</function>, <function>ibase_pconnect</function>, <function>ifx_pconnect</function>, <function>ingres_pconnect</function>, <function>msql_pconnect</function>, <function>mssql_pconnect</function>, <function>mysql_pconnect</function>, <function>ociplogon</function>, - <function>odbc_pconnect</function>, <function>ora_plogon</function>, + <function>odbc_pconnect</function>, <function>oci_pconnect</function>, <function>pfsockopen</function>, <function>pg_pconnect</function>, <function>sybase_pconnect</function>ãåç §ãã¦ãã ããã </para>