ã¬ã¬ã·ã¼ãªãã©ã¯ãã£ã¹ãæ¨ã¦ã¦ã¢ãã³ãªã³ã¼ããã
第3å¼æ°ãæå®ãã¦ããªãå ´åã®å½±é¿åè¿°ã®ããã«ãhtmlspecialcharsé¢æ°ã®ç¬¬3å¼æ°ãæå®ãã¦ããªãå ´åãPHP5.3ã¾ã§ã¯ãæåã¨ã³ã³ã¼ãã£ã³ã°ãISO-8859-1ãæå®ãããã¨ã¿ãªããã¾ãããã®å ´åãå ¥åå 容ã«ãããããä¸æ£ãªæåã¨ã³ã³ã¼ãã£ã³ã°ã¨å¤å®ããããã¨ã¯ããã¾ããããããã£ã¦ãæåã¨ã³ã³ã¼ãã£ã³ã°ã®ãã§ãã¯ãåããªã代ããã«ãã¨ã©ã¼ã«ãªããã¨ãããã¾ããã§ããã ããã«å¯¾ãã¦ãPHP5.4ã®ä»æ§ã«ããæåã¨ã³ã³ã¼ãã£ã³ã°ãUTF-8ã¨ã¿ãªãããå ´åã«ãShift_JISãEUC-JPã®2ãã¤ãæåãå ¥åãããã¨ãé«ã確çã§ãUTF-8ã¨ãã¦ä¸æ£ãã¨ããã¨ã©ã¼ã«ãªããhtmlspecialcharsé¢æ°ã®åºåã¯ç©ºã«ãªãã¾ããã¤ã¾ããããã°ã©ã ãæ£å¸¸ã«åä½ãã¾ããã htmlspecialcharsé¢æ°ã®ç¬¬3å¼æ°ãæå®ãã¦ããããå é¨æåã¨ã³ã³ã¼ãã£ã³ã°ãShift_
æ¨æ¥ã®ããã°ã¨ã³ããªãPHP5.3.7ã®crypté¢æ°ã«è´å½çãªèå¼±æ§(Bug #55439)ãã«ã¦ãcrypté¢æ°ã®é大ãªèå¼±æ§ã«ã¤ãã¦å ±åãã¾ãããèå¼±æ§ã®åºæ¹ãè¿å¹´ã¾ãã«è¦ãã»ã©ã®ãã®ã ã£ãã®ã§ãtwitterããã¯ããªã©ãè¦ã¦ãããã©ããã¦ãããªã£ããã¨ããçåãå¤æ°ç®ã«ãã¾ããã ããã§ããã®ã¨ã³ããªã§ã¯ããã®èå¼±æ§ãã©ã®ããã«æ··å ¥ããã®ãã追ã£ã¦ã¿ããã¨æãã¾ãã PHPã®ã¬ãã¸ããªã®ãã°ãå ¬éããã¦ããã½ã¼ã¹ã®ç¶æ³ãããPHP5.3.7RC4ã¾ã§ãã®ãã°ã¯ãªããPHP5.3.7RC5ã§ãã®ãã°ãæ··å ¥ãã模æ§ã§ããRC5ã¯PHP5.3.7æå¾ã®Release Candidateã§ããããã¾ãã«æ£å¼ãªãªã¼ã¹ã®ç´åã§ãã°ãå ¥ã£ããã¨ã«ãªãã¾ãã ãã°ã®å ¥ãç´åã®ã½ã¼ã¹ã¯ãããã®é¢æ°php_md5_crypt_rããåç §ãããã¨ãã§ãã¾ãã以ä¸ã«ãããã¾ããªæµããå³ç¤ºãã¾ããã¾ãã¯ã
PHP5.3.7ã®crypté¢æ°ã«ã¯è´å½çãªèå¼±æ§ãããã¾ããææªã®ã±ã¼ã¹ã§ã¯ãä»»æã®ãã¹ã¯ã¼ãã§ãã°ã¤ã³ã§ãã¦ãã¾ãã¨ããäºæ ãçºçãã¾ãã該å½ããå©ç¨è ã¯ãè³æ¥ãå¾è¿°ããåé¿çãå®æ½ãããã¨ãæ¨å¥¨ãã¾ãã æ¦è¦ PHPã®crypté¢æ°ã¯ãã½ã«ãä»ãããã·ã¥å¤ãç°¡åã«æ±ãããã¨ãã§ãã¾ãï¼å ¬å¼ãªãã¡ã¬ã³ã¹ï¼ãcrypté¢æ°ã®ããã·ã¥ã¢ã«ã´ãªãºã ã¨ãã¦MD5ãæå®ããå ´åãã½ã«ãã®ã¿ãåºåãããããã·ã¥å¤ã空ã«ãªãã¾ããããã¯ãcrypté¢æ°ã®çµæãã½ã«ãã®ã¿ã«ä¾åãããã¹ã¯ã¼ãã«ã¯å½±é¿ãããªããã¨ãæå³ããcrypté¢æ°ãèªè¨¼ã«ç¨ãã¦ããå ´åãä»»æã®ãã¹ã¯ã¼ãã§ãã°ã¤ã³ã«æåããå¯è½æ§ãããã¾ãã å½±é¿ãåããã¢ããªã±ã¼ã·ã§ã³ crypté¢æ°ãç¨ããããã·ã¥ã¢ã«ã´ãªãºã ã¨ãã¦MD5ãæå®ãã¦ããã¢ããªã±ã¼ã·ã§ã³ã ç°å¢ã«ãä¾åãã¾ãããããã©ã«ããMD5ã®å ´åãããã¾ããçè ã®ãã¹ãç°å¢
åã®ã¨ã³ããªã¼ã®ç¶ããã¾ãã¯èªå·±å¼ç¨ã php-pearã5.1/5.3両対å¿ãªã®ãã¨æã£ãã®ã§ãããPEARããããWARNINGãåãã®ã§ãå¤åãã¡ãªãã ã¨æãã¾ãã ãããªãã¨ã¯ãªãã£ãããããWarningãåããã¾ãã£ã¦ãã¦ãpearã³ãã³ãã®upgradeã§ææ°ã®PEARã«ã§ãã¾ããã2chã®CentOSã¹ã¬ã®äººãããã¨ãï¼ç¢ºãã«ããªãã大éã«åããã¦ããã¨ã¯ãããWarningã ãããªã(ããã©Warning?)ã 以ä¸ãæ°è¦ã«CentOS5.6ãå ¥ããå ´åã®pearã®ã¢ããã°ã¬ã¼ãæé ã§ãããããªå¼·å¼ãªæ¹æ³ã§å¤§ä¸å¤«ãï¼ # pear upgrade --force Archive_Tar # pear upgrade --force Console_Getopt # pear upgrade PEARã¢ããã°ã¬ã¼ãåå¾ã®ãã¼ã¸ã§ã³çªå·ã¯æ¬¡ã®éãã§ãã ããã±ã¼ã¸ ã¢ããã°ã¬
PHPã§æ£è¦è¡¨ç¾ãæ±ãä¸ã§ãæ£è¦è¡¨ç¾ãã¿ã¼ã³ã®è¨è¿°ã§è¿·ã£ã¦ãã¾ã£ã¦ãã人ãå¤ãæ°ãããã PHPãæååãçæãã ãã®æååãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã«æ¸¡ã ã¨è¨ã2段éã®æé ãããããããããè¤éãªã®ã§æ··ä¹±ãæãé¨åãããã®ã ã¨æãã æ··ä¹±ãé²ãããã«ã¯ããã®æé ããã£ãã追ã£ã¦ãæ£è¦è¡¨ç¾ãªãã©ã«ã¨ãã¦æå®ãã¦ããæååãechoãããPHPãã©ã®ããã«åºåããããèãã¦ã¿ãã¨è¯ãã ä¾ãã°ä»¥ä¸ã®ãããªã³ã¼ãããã£ãã¨ããã preg_match('/\\d/','3d'); ã¾ããpreg_match()ã®ç¬¬ä¸å¼æ°ã«ãªã£ã¦ããæ£è¦è¡¨ç¾ãã¿ã¼ã³ãechoã§åºåããã¨ã©ããªãããèããã echo '/\\d/'; #/\d/ ãªã®ã§ã/\d/ãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã«æ¸¡ãããã¨åããããªã®ã§ãä¸è¨ã®ãã¿ã¼ã³ã¯ãããããã ããã«æ··ä¹±ãæãããããã¦ããã®ããPHPã®æååã®ä»æ§ã§ãç¹ã«ããã¯ã¹ã©ãã·
XHPã¨ã¯ã Today, I'd like to take to this opportunity to share with you a project that's quickly becoming a cornerstone of front-end PHP development at Facebook. XHP is a PHP extension which augments the syntax of the language to both make your front-end code easier to understand and help you avoid cross-site scripting attacks. XHP: A New Way to Write PHP | Facebook ã¨ãããã¨ã§ãããã³ãã¨ã³ãã®ã³ã¼ããæ¸ããããç解ãããããã®ã«ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}