Date: 05/30/98
- Next message: sr: "[PHP-DEV] CVS update: php3/doc/functions"
- Previous message: Jan Legenhausen: "[PHP-DEV] PHP3 once again - latest cvs-version"
- In reply to: Jan Legenhausen: "[PHP-DEV] PHP3 once again - latest cvs-version"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Re: PHP3 once again - latest cvs-version [FIXED]"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Re: PHP3 once again - latest cvs-version [FIXED]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jan Legenhausen wrote:
>
> Hi,
>
> Once in the process of re-checking all those nifty little features which
> didn't work completly so far, i stumbled over error_log().
> If you try the snippet below, you'll find "my-errors.log" ending up in
> containing only "You Once" - nothing else.
> Since "message" in fwrite() in basic_functions.c contains the correct
> content, i don't know where to look...
I think i found the error - "sizeof(message)" delivers the size of the
_pointer_ to message - that's always "4"!
So replacing "sizeof(message)" with "strlen(message)" in fwrite() fixed
the problem.
yours, Jan
> This is on Linux 2.0.33, if it matters.
>
> Btw, do you prefer if i put those little bugs into your
> online-bug-database? If so, i'll do it next time.
>
> yours, Jan
>
> <?
> error_log("You messed up!\n", 3, "/tmp/my-errors.log");
> error_log("Once again...\n", 3, "/tmp/my-errors.log");
> ?>
>
> ------------------------------------------------------------------------
>
> Jan Legenhausen <jan <email protected>>
> CSL GmbH
>
> Jan Legenhausen
> CSL GmbH <jan <email protected>>
> Germany Work: +49 211 867670
> Fax: +49 211 8676710
> Netscape Conference Address
> Netscape Conference DLS Server
> Additional Information:
> Last Name Legenhausen
> First Name Jan
> Version 2.1
- Next message: sr: "[PHP-DEV] CVS update: php3/doc/functions"
- Previous message: Jan Legenhausen: "[PHP-DEV] PHP3 once again - latest cvs-version"
- In reply to: Jan Legenhausen: "[PHP-DEV] PHP3 once again - latest cvs-version"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Re: PHP3 once again - latest cvs-version [FIXED]"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Re: PHP3 once again - latest cvs-version [FIXED]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

