Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Andi Gutmans
I don't think adding a note is a bad idea. Andi At 04:44 PM 6/22/2002 -0500, Sterling Hughes wrote: >Why? If you're commiting code you should know how to use these basic >functions... > >besides, sprintf is not really all that bad... > >-Sterling > > > > Proposal comment for spprintf/snprintf

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Marcus Börger
Idea was that most people are not aware of spprintf and do not know the difference. So Markus and me thought about adding such a note. marcus At 23:44 22.06.2002, Sterling Hughes wrote: >Why? If you're commiting code you should know how to use these basic >functions... > >besides, sprintf is

[PHP-DEV] main/main.c question

2002-06-22 Thread Marcus Boerger
1) Do we need the call to ts_resource? If so we could remove sapi_globals as we don't use it. If not we can remove the whole line which works fine for me. 2) One more warning in uninitialized dummy_track_vars_array regards marcus cvs -z3 -q diff main\main.c (in directory S:\php4\) Index: main/m

[PHP-DEV] Why new modules are under php4 source tree?

2002-06-22 Thread Yasuo Ohgaki
I just realized mime_magic module is under php4/ext It should be pear/pecl/mime_magic since it's new module. Most modules should go to pear/PECL to release bug fix/new release module by module eventually anyway. When we move most modules out of php4 source tree, PHP 4.4.0 or PHP 4.3.0? -- Yasu

[PHP-DEV] Re: possible bug in output buffering

2002-06-22 Thread Yasuo Ohgaki
Guillaume Smet wrote: > In fact, the pbm comes from the output callback function (I use > ob_gzhandler) in the first ob_start. If I put one, no ouput at all... If I > remove it, I have the output I want. > > Does anyone have an idea ? > > G. > > Current output buffer prevent from deleting zli

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Sterling Hughes
Why? If you're commiting code you should know how to use these basic functions... besides, sprintf is not really all that bad... -Sterling > Proposal comment for spprintf/snprintf header. When nobody objects i commit > this to spprintf.h and make a notice in snprintf.h. > > /* > > Comparin

[PHP-DEV] Re: [Zend Engine 2] "parent" and deep "require"s

2002-06-22 Thread Timm Friebe
On Tue, 2002-06-11 at 00:04, Timm Friebe wrote: > ZE2 has a bug... Well, replying to myself:-) I took some time to have a look at where the bugs occur (see my original email to [EMAIL PROTECTED], sent 11 Jun 2002 00:04:09 +0200) and think I got rid of them. > concerning the keyword "parent" and

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/exif exif.c

2002-06-22 Thread Markus Fischer
On Sat, Jun 22, 2002 at 08:53:12PM +0200, Marcus Börger wrote : > Question: > > if i use > $width=$height=$image_type=0; > then all three receive the value of $image_type. Where is the failure? Because they it's only one variable and two references ... We've seen this behaviour also wit

Re: [PHP-DEV] Re: Suggestion about native DB support.

2002-06-22 Thread Hartmut Holzgraefe
Yasuo Ohgaki wrote: > Note in the manual page says setlocale() is not required, > so I was supposing it's not needed. > > Anyway, it seems it's been modified recently and I haven't > use gettext for long time. Need some research. It uses process-global settings to determine the language to use,

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/exif exif.c

2002-06-22 Thread Marcus Börger
At 20:38 22.06.2002, Marcus Börger wrote: >helly Sat Jun 22 14:38:34 2002 EDT > > Modified files: > /php4/ext/exif exif.c > Log: > @exif_read_data returns mime-type now for image and thumbnail And > exif_thumbnail now optionally returns imagetype. (Marcus) > #So now you

Re: [PHP-DEV] Seeking Comments - Regarding header()

2002-06-22 Thread Chris Shiflett
I have a few sites where I deliberately violate the HTTP spec in this way to get around a bug in IE (I know, shame on me). I've been using relative URLs in a "Location" header for years with no crashes that I know of. There must be something unique in your configuration. Have you mentioned th

Re: [PHP-DEV] Re: Suggestion about native DB support.

2002-06-22 Thread Tomas V.V.Cox
Yasuo Ohgaki wrote: > > Hartmut Holzgraefe wrote: > > Yasuo Ohgaki wrote: > > > >> I think gettext module is also a good one to be enabled by default > >> or recommend users strongly. > > > > > > well, as everything depending on setlocale() or putenv("LANG=...") > > is *not* threadsafe this might

[PHP-DEV] Re: possible bug in output buffering

2002-06-22 Thread Guillaume SMET
In fact, the pbm comes from the output callback function (I use ob_gzhandler) in the first ob_start. If I put one, no ouput at all... If I remove it, I have the output I want. Does anyone have an idea ? G. -- PHP Development Mailing List To unsubscribe, visit: http://ww

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /win32 sendmail.c

2002-06-22 Thread Markus Fischer
Hi, I hope someone can properly test this patch, I'm currently too short on time for it (and with properly testing I really mean it that way, not just by calling mail() ) - Markus On Sat, Jun 22, 2002 at 03:29:30PM +0200, Marcus Börger wrote : > Here comes the diff - bu

[PHP-DEV] possible bug in output buffering

2002-06-22 Thread Guillaume SMET
Hi, i'm using output buffering and I have some pbms with it. I don't know if it's a bug or if I misunderstand something. I post this pbm here cause I use the functions introduced in PHP 4.2.1 to manipulate nested ob. Here is a description of the problem : ob_start(); html content in an object :

Re: [PHP-DEV] What is a persistent constant (resend)

2002-06-22 Thread Andi Gutmans
At 06:44 AM 6/21/2002 -0400, fabwash wrote: >Hello, > >I already sent this question, but there was no answer, and i'm afraid it >was not noticed, but if this is the wrong list, let me know :) > > >When you define a constant you can use two things that are not very clear >to me. Can someone expla

[PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Marcus Boerger
Proposal comment for spprintf/snprintf header. When nobody objects i commit this to spprintf.h and make a notice in snprintf.h. /* Comparing: sprintf, snprintf, spprintf sprintf offers the ability to make a lot of falures since it does not know the size of the buffer it uses. Therefo

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /win32 sendmail.c

2002-06-22 Thread Marcus Börger
Here comes the diff - but again i cannot compile it under windows and therefore i never compiled it :-( If uses spprintf instead of s/n)printf where appropriate and uses a buffer on stack for chunked data instead of a static buffer. marcus cvs -z3 -q diff -w win32\sendmail.c (in directory S:\ph

[PHP-DEV] PHP 4 Bug Summary Report

2002-06-22 Thread php-dev
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (1452 total including feature requests) ===[*Compile Issues]== 17423 Open COMPILE_DL_MODULENAME different in configure and config.h.in ==