|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-05 23:30 UTC] tony2001@php.net
[2005-06-16 00:54 UTC] tony2001@php.net
[2005-06-16 17:17 UTC] wez@php.net
[2005-06-16 17:22 UTC] tony2001@php.net
[2006-07-26 16:42 UTC] wez@php.net
[2006-07-26 16:43 UTC] wez@php.net
[2009-02-24 17:18 UTC] doctorrock83 at gmail dot com
[2010-06-13 14:51 UTC] felipe@php.net
-Status: Assigned
+Status: Open
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To: pollita
+Assigned To:
[2010-10-17 19:37 UTC] felipe@php.net
-Type: Feature/Change Request
+Type: Bug
-Package: *General Issues
+Package: Streams related
[2011-08-25 12:30 UTC] bugs dot php at mohiva dot com
[2011-08-25 12:40 UTC] pajoye@php.net
[2011-08-26 13:26 UTC] bugs dot php at mohiva dot com
[2011-08-28 10:53 UTC] bugs dot php at mohiva dot com
[2011-08-28 22:01 UTC] bugs dot php at mohiva dot com
[2011-08-28 22:05 UTC] pajoye@php.net
-Status: Open
+Status: Bogus
[2011-08-28 22:05 UTC] pajoye@php.net
[2011-08-28 22:06 UTC] pajoye@php.net
-Status: Bogus
+Status: To be documented
[2011-08-28 22:06 UTC] pajoye@php.net
[2011-08-30 11:43 UTC] bjori@php.net
[2011-08-30 11:43 UTC] bjori@php.net
-Status: To be documented
+Status: Closed
-Assigned To:
+Assigned To: bjori
[2011-08-30 11:43 UTC] bjori@php.net
[2013-04-30 10:50 UTC] tb at bytecode dot se
[2013-04-30 21:56 UTC] bjori@php.net
[2013-05-01 10:24 UTC] tb at bytecode dot se
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 12:00:01 2025 UTC |
Description: ------------ For a test, I use wrapper_register() to register a new wrapper. For information, I use PHP5 CVS and apache. I want to create a wrapper and use ftell() to return an integer different from the length of the string (normal comportement). I implement the method stream_tell() and call ftell(), but surprise, this function don't use the method stream_tell(). Reproduce code: --------------- <?php class fileWrapper { var $fp; function stream_open($path, $mode, $options, &$opened_path){ $url = parse_url($path); $this->fp = fopen($url["host"], $mode); return true; } function stream_write($data){ return fwrite($this->fp, $data); } function stream_tell(){ echo "debug message"; return ftell($this->fp); } function stream_close(){ return fclose($this->fp); } } stream_wrapper_register("test", "fileWrapper"); $fp = fopen("test://file.txt", "w+"); fwrite($fp, "test"); echo "I test the echo debug in stream_tell() method:"; echo ftell($fp)."\n"; fclose($fp); ?> Expected result: ---------------- Use the code above, I write a "debug message" in the method stream_tell() but no message is writted in my screen, just this : I test the echo debug in stream_tell() method:0 I think that it's a bug but if not, all my apologies.