<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Php52 on php-tips.com</title>
    <link>https://php-tips.com/tags/php52/</link>
    <description>Recent content in Php52 on php-tips.com</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Thu, 23 Sep 2010 01:32:35 +0900</lastBuildDate>
    <atom:link href="https://php-tips.com/tags/php52/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MacPorts 1.9.1でPHP 5.2.14のCLIのビルドに失敗する場合の対処法</title>
      <link>https://php-tips.com/2010/09/23/macports-1-9-1-php52-cli-build-failure/</link>
      <pubDate>Thu, 23 Sep 2010 01:32:35 +0900</pubDate>
      <guid>https://php-tips.com/2010/09/23/macports-1-9-1-php52-cli-build-failure/</guid>
      <description>&lt;p&gt;先日MacPortsで管理しているPHPのバージョンアップを行ったのですが以下のような現象に悩まされました。&lt;/p&gt;
&lt;pre class=&#34;brush: bash&#34;&gt;
$ php -r &#34;print_r(&#39;hoge&#39;);&#34;

Fatal error: Call to undefined function print_r() in Command line code on line 1
&lt;/pre&gt;
&lt;p&gt;エラーが発生するのはコマンドラインからの利用のみで、なぜかWeb経由では問題なく動きます。&lt;/p&gt;
&lt;p&gt;調べて見ると全ての関数が使えない。。&lt;/p&gt;
&lt;p&gt;ビルド時のconfigureで以下のエラーが表示されCLI版のバイナリ作成に失敗していました。&lt;/p&gt;
&lt;pre class=&#34;brush: bash&#34;&gt;
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
gawk(96091,0x7fff70a28c20) malloc: *** error for object 0x100214910: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
creating main/internal_functions_cli.c
gawk(96132,0x7fff70a28c20) malloc: *** error for object 0x100215aa0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
&lt;/pre&gt;
&lt;p&gt;[ad]&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
