{"id":3508,"date":"2015-06-01T10:00:54","date_gmt":"2015-06-01T01:00:54","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=3508"},"modified":"2015-06-01T08:35:47","modified_gmt":"2015-05-31T23:35:47","slug":"php5-3%e7%b3%bb%e3%81%abxdebug%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ae%e3%81%82%e3%82%8c%e3%81%93%e3%82%8c","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/php5-3%e7%b3%bb%e3%81%abxdebug%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ae%e3%81%82%e3%82%8c%e3%81%93%e3%82%8c\/","title":{"rendered":"PHP5.3\u7cfb\u306bxdebug\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306e\u3042\u308c\u3053\u308c"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u91ce\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fPHP5.3\u7cfb\u306bxdebug\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u3001\u74b0\u5883\u306fCentOS\u306e6\u7cfb\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001xdebug\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u306fpecl\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<br \/>\n\u304c\u3001PHP5.3\u7cfb\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3068\u304a\u308a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code>#  pecl install xdebug\npecl\/xdebug requires PHP (version &amp;gt;= 5.4.0), installed version is 5.3.3\nNo valid packages found\ninstall failed\n#\n<\/code><\/pre>\n<p>PHP5.4\u7cfb\u4ee5\u4e0a\u304c\u5fc5\u8981\u3067\u3042\u308b\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u3001xdebug\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u884c\u3048\u307e\u305b\u3093\u3002<br \/>\n\u8abf\u3079\u305f\u3068\u3053\u308dxdebug2.3.0\u304b\u3089PHP5.3\u7cfb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/xdebug.org\/\" title=\"http:\/\/xdebug.org\/\" target=\"_blank\">http:\/\/xdebug.org\/<\/a> \u3088\u308a\u5f15\u7528<\/p>\n<pre><code>This release drops support for PHP 5.2 and PHP 5.3, and raises the default max nesting level to 256. It also fixes a bunch of issues as found in Xdebug 2.2.7.\n<\/code><\/pre>\n<p>\u306a\u306e\u3067\u3001PHP5.3\u7cfb\u3067\u5229\u7528\u3067\u304d\u308bxdebug2.7.7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code># pecl install xdebug-2.2.7\n\uff5e \u4e2d\u7565 \uff5e\ninstall ok: channel:\/\/pecl.php.net\/xdebug-2.2.7\nconfiguration option \"php_ini\" is not set to php.ini location\nYou should add \"zend_extension=xdebug.so\" to php.ini\n#\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u306a\u304f\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306bPHP\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9\u3084so\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u306f\u3001\u74b0\u5883\u3084\u904b\u7528\u30dd\u30ea\u30b7\u30fc\u306b\u3088\u3063\u3066\u5909\u308f\u3063\u3066\u304f\u308b\u3068\u601d\u3046\u306e\u3067\u9069\u3057\u305f\u5185\u5bb9\u3092\u8a18\u8f09\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u6ce8\u610f\u70b9\u3068\u3057\u3066zend_extension\u306f\u7d76\u5bfe\u30d1\u30b9\u3067so\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8a18\u8f09\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code># vi \/etc\/php.d\/xdebug.ini\n\u8a18\u8f09\u5185\u5bb9\u2193\nzend_extension=\/usr\/lib64\/php\/modules\/xdebug.so\n#\n\n# cat \/etc\/php.d\/xdebug.ini\nzend_extension=\/usr\/lib64\/php\/modules\/xdebug.so\n#\n<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\nPHP\u304cxdebug\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code># php -i |grep xdebug\n\/etc\/php.d\/xdebug.ini,\nxdebug\nxdebug support =&amp;gt; enabled\n\uff5e \u4ee5\u4e0b\u7565 \uff5e\n#\n\n# pear list -a\n\uff5e \u4e2d\u7565 \uff5e\nInstalled packages, channel pecl.php.net:\n=========================================\nxdebug  2.2.7   stable\n#\n<\/code><\/pre>\n<p>\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<pre><code># \/etc\/init.d\/httpd restart\n#\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067PHP5.3\u7cfb\u3078\u306exdebug\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u4f55\u304b\u306e\u3054\u53c2\u8003\u306b\u306a\u308c\u3070\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u91ce\u3067\u3059\u3002 \u4eca\u56de\u306fPHP5.3\u7cfb\u306bxdebug\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u74b0\u5883\u306fCentOS\u306e6\u7cfb\u3067\u3059\u3002 \u901a\u5e38\u3001xdebug\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u306fpecl\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306b&#8230;<\/p>\n","protected":false},"author":50,"featured_media":1751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"3508","footnotes":""},"categories":[29],"tags":[],"class_list":{"0":"post-3508","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=3508"}],"version-history":[{"count":11,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3508\/revisions"}],"predecessor-version":[{"id":3630,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3508\/revisions\/3630"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/1751"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=3508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=3508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=3508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}