Re: id3 - problems with php_stream_truncate_set_size()
| From: | Antony Dovgal | Date: | Fri, 18 Jun 2004 14:14:32 +0000 |
| Subject: | Re: id3 - problems with php_stream_truncate_set_size() | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-861@lists.php.net to get a copy of this message | ||
On Fri, 18 Jun 2004 16:00:14 +0200
Carsten Lucke <carsten@tool-garage.de> wrote:
> Hi,
>
> I'm developing ext/id3 with Stephan Schmidt. In id3_remove_tag() I
> used php_stream_truncate_set_size(), which seems not to be documented
> in the PHP-manual but I found the proto for it in main/php_streams.h.
>
> With PHP5 it works fine but I encounter problems, using it with PHP4:
>
> -sh-2.05b$ pear list
> PHP Warning: Unknown(): Unable to load dynamic library
> '/usr/lib/php4/id3.so' - /usr/lib/php4/id3.so: undefined symbol:
> php_stream_truncate_set_size in Unknown on line 0
>
> Can I use php_stream_truncate_set_size() in PHP4? Does anyone know
> what's the problem?
There is no php_stream_truncate_set_size() in PHP4, as I can see.
Take a look at it's implementation in plain_wrapper.c, I suppose you can
do something similar in PHP4 with usual ftruncate().
But better ask Wez firstly, he should know the best way as the King of
Streams [tm] =)
---
WBR,
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com