<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-holy</author_name>
  <author_url>https://blog.hatena.ne.jp/k-holy/</author_url>
  <blog_title>k-holyのPHPとか諸々メモ</blog_title>
  <blog_url>https://k-holy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Windows</anon>
  </categories>
  <description>filesize()関数におけるというか、要は32bit整数の話なのですが。 マニュアルにもある通り、filesize()関数は2GBを越えるファイルについては期待通りの値を返さない場合があります。 PHP filesize - Manual今まで2GB超のファイルに対してファイルシステム関数を使う機会はなかったんですが、アップロードファイルのサイズチェック処理を書いてて改めて検証してみたのでメモ。（以下、環境は32bit Windows7、XAMPP1.7.7のPHP 5.3.8） 2GBの壁 32bit int (-2147483648 から 2147483647)の上限を越えるため、2G…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-holy.hatenablog.com%2Fentry%2F2012%2F05%2F23%2F122636&quot; title=&quot;filesize()関数における2GBの壁と4GBの壁 - k-holyのPHPとか諸々メモ&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>2012-05-23 12:26:36</published>
  <title>filesize()関数における2GBの壁と4GBの壁</title>
  <type>rich</type>
  <url>https://k-holy.hatenablog.com/entry/2012/05/23/122636</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
