[dokuwiki] Re: Indexing of modified pages

  • From: Myron Turner <turnermm02@xxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 19 Jul 2007 19:48:01 -0500

TNHarris wrote:
Something else that occurs to me, why does io_readFile doesn't use
file_get_contents ? The advantages (memory mapping, no extra copy) seem
worth it, and if we want to support PHP<4.3, it's easy enough to
emulate.
-- tom
telliamed@xxxxxxxxxxx


A string is needed for cleanText() and file_get_contents() is optimized and recommended for reading a file into a string. I assume this was the reasoning, since file() returns an array.

--

_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: