Re: Bug #20460 (Feature Request)
| From: | Derick Rethans | Date: | Wed, 27 Nov 2002 20:50:36 +0000 |
| Subject: | Re: Bug #20460 (Feature Request) | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91838@lists.php.net to get a copy of this message | ||
On Wed, 27 Nov 2002, Sara Pollita Golemon wrote:
> >> Derick Rethans <derick@php.net> wrote:
> >>
> >> > I don't like us adding a new ini entry for this, I think we should
> >> try another option:
> >> >
> >> > 4) Make sure we can use fscanf on a dynamically sized buffer. This
> >> will definitely the hardest solution, but also the most beautiful
> >> one.
> >>
> >
> I'll admit to not knowing what you mean by 'dynamically sized buffer's.
> Is there an example of another function which works with such?
char *buf; buf = malloc(length of line);
vs.
char buf[MAX_BUF_SIZE];
and example of such a function is AFAIK not really available for a PHP
function, but api wise there is php_stream_get_line which uses it. As
you can see sterling just put that in to 'fix' this feature report (his
commit to file.c).
regards,
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------