Author: caefer
Date: 2010-04-12 18:40:27 +0200 (Mon, 12 Apr 2010)
New Revision: 29093
Modified:
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceLocalAbstract.class.php
Log:
implemented stream_seek() correctly as well as stream_tell(). now
getimagesize() shouldn't fail again
Modified:
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceLocalAbstract.class.php
===================================================================
---
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceLocalAbstract.class.php
2010-04-12 15:47:37 UTC (rev 29092)
+++
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceLocalAbstract.class.php
2010-04-12 16:40:27 UTC (rev 29093)
@@ -108,7 +108,7 @@
*/
public function stream_seek($offset, $whence = SEEK_SET)
{
- return fseek($this->resource, $offset, $whence);
+ return 0 == fseek($this->resource, $offset, $whence);
}
/**
@@ -121,6 +121,16 @@
return fstat($this->resource);
}
+ /**
+ * Retrieve the current position of a stream
+ *
+ * @return int
+ */
+ public function stream_tell()
+ {
+ return ftell($this->resource);
+ }
+
/**
* Retrieve information about a file
*
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.