<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>heavenshell</author_name>
  <author_url>https://blog.hatena.ne.jp/heavenshell/</author_url>
  <blog_title>Memo</blog_title>
  <blog_url>https://gene.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHP 4.x 系ではクラスのコンストラクタはクラス名と同名のメソッド名で定義する。 PHP 5.x 以降は __construct() というメソッド名がコンストラクタとなる。 クラス名と __construct() を同時に定義した場合以下のようなエラーが出ると思ってた*1。 Strict standards: Redefining already defined constructor for class実際 Pear::Net_URL_Mapper は Net_URL に依存してて、E_ALL | E_STRICT とかで使うと上記のエラーが出る。 PHP 5.3.3 で確認。 &lt;?p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgene.hatenablog.com%2Fentry%2F20100825%2F1282744486&quot; title=&quot; クラス名と同名のメソッド名がある場合の挙動 - Memo&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>2010-08-25 22:54:46</published>
  <title> クラス名と同名のメソッド名がある場合の挙動</title>
  <type>rich</type>
  <url>https://gene.hatenablog.com/entry/20100825/1282744486</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
