<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakahisateru</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakahisateru/</author_url>
  <blog_title>なんたらノート第三期ベータ</blog_title>
  <blog_url>https://tanakahisateru.hatenablog.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPのnewはこれで置き換えだ - なんたらノート 第二期 で書いたのは、どうもPHP5.3ではダメっぽいです。PHP5.3では、evalの実行コンテキストが、関数内ではなくグローバルになる（でも変数はローカルのをレキシカルに束縛してる）というトリビアがありました。 &lt;?php function hoge(){ eval('return &quot;hoge called with &quot; . func_get_arg(0);'); } echo hoge(&quot;a&quot;); ?&gt; で、 Warning: func_get_arg(): Called from the global scope - no func…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahisateru.hatenablog.jp%2Fentry%2F20091126%2F1259170063&quot; title=&quot;PHPのnewに再チャレンジ PHP5.3 - なんたらノート第三期ベータ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-11-26 02:27:43</published>
  <title>PHPのnewに再チャレンジ PHP5.3</title>
  <type>rich</type>
  <url>https://tanakahisateru.hatenablog.jp/entry/20091126/1259170063</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
