<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Aileron</author_name>
  <author_url>https://blog.hatena.ne.jp/Aileron/</author_url>
  <blog_title>aileron.cc</blog_title>
  <blog_url>https://aileron.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>変数のスコープがレキシカルスコープじゃないから 名前空間から居なくならない限り、変数の参照は生きている だから、GCの対象にもならない class Hoge {}; while(True) { new Hoge; } これは大丈夫だけれど class Hoge {}; $i=1; while ($i++) { $$i = new Hoge; } これだとダメ。当たり前と言えば 辺り前だけれどもwhileのブレスで変数の参照 が切れない言語ではメモリリークするって そんなの普通書かないけれどもさレキシカルスコープな言語から 来るとちょいと違和感を感じるネちなみに class Hoge {}; w…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faileron.hatenadiary.org%2Fentry%2F20080408%2F1207639799&quot; title=&quot;GCとかメモリリークとかレキシカルスコープじゃないとか - aileron.cc&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>2008-04-08 16:29:59</published>
  <title>GCとかメモリリークとかレキシカルスコープじゃないとか</title>
  <type>rich</type>
  <url>https://aileron.hatenadiary.org/entry/20080408/1207639799</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
