Re: [PHP-DEV] Where/what is gdImageStringFTEx() ?

2001-11-20 Thread Wez Furlong
It's part of my patch, due to be included in GD 2.0.2. Before masses of people ask me for the patch, please hassle boutell.com to release 2.0.2 first; they've had it for a very long time now! If you really really need it, drop me a mail. --Wez. On 17/11/01, Rasmus Lerdorf [EMAIL PROTECTED]

Re: [PHP-DEV] For Wez : Stream Abstraction over a String

2001-10-23 Thread Wez Furlong
Yep, or something like it. In some other code that I an using to test my streams idea, I have implemented something a bit like a TMemoryStream that can do more or less what you need - off the top of my head it looks sth like this; str = stream_mem_open(initial_string, initial_strlen);

Re: [PHP-DEV] array_init() opinions?

2001-10-22 Thread Wez Furlong
On 22/10/01, Rasmus Lerdorf [EMAIL PROTECTED] wrote: That is, you tell it which index to start at, how many elements you want in the array and what the initialization value should be. $a = array_init(5,6,'banana'); Anybody see a better interface to a function like this? Sounds good, but I

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] namespaces ambiguity

2001-09-30 Thread Wez Furlong
What about . then (Java/Delphi)? --Wez. On 09/30/01, Andi Gutmans [EMAIL PROTECTED] wrote: Well the difference is that C++ can figure out what to do at compile-time. I don't think we can which means that it would put more logic into run-time which is a bad thing IMO (especially for

[PHP-DEV] New openssl cert api - please review

2001-09-11 Thread Wez Furlong
Hey guys, I added the first bash at some new cert generating functions for the openssl extension late last night. I would be grateful if anyone that's interested could comment on the API; thanks! --Wez. New funcs: resource openssl_pkey_new([array configargs]) Generate a new private key

Re: [PHP-DEV] Woah

2001-09-11 Thread Wez Furlong
On 11/09/01, Chuck Hagenbuch [EMAIL PROTECTED] wrote: would be even happier if calling alias_function('gettext', '_') would simply do nothing if _() already pointed to gettext(), but I won't quibble about the function_exists() check. What about a language construct: function _ = gettext; If

RE: [PHP-DEV] Documenting Zend (was: zend_parse_parameters)

2001-09-10 Thread Wez Furlong
There is a tree in place, http://www.zend.com/zend/api.php for more information... Albeit these docs are way out of date and are very rudimentary its just no one with api familiarity, also has the patience to improve them :) Yes; I have a local copy of those docs. They are

RE: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 08/09/01, Cristopher Daniluk [EMAIL PROTECTED] wrote: Again, as mentioned before, this is suitable: function _($string) { return gettext($string); } Yes, but if you use gettext on any large site, you will be using it a helluva lot; and this would slow it down. I would adopt this if the Zend

Re: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 08/09/01, Zeev Suraski [EMAIL PROTECTED] wrote: At least give the user the option to decide whether he wants to pollute his namespace. At least give the code readers a chance to figure out what's going on by grepping the PHP source code. Sending them to the C source code or to

Re: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 08/09/01, James Moore [EMAIL PROTECTED] wrote: I think that echo is used a lot more so lets make echo aliased as ^(.) oh and perhaps we should have sprintf as *() and dont forget while.. I bet perople get bored of typing that so lets make it (conditional expreesion) { }

Re: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 11/09/01, Egon Schmid [EMAIL PROTECTED] wrote: This dummy entry in the documentation was done by Kristian K��opp because most Windows lusers wouldn't find the real unlink() function. Sure it may be anoying some Unix users, but it is very helpfull for Windows users because they asked on

RE: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 11/09/01, Cristopher Daniluk [EMAIL PROTECTED] wrote: Still, the option of introducing runtime function aliases and/or compiler directives was brought up. I personally prefer this solution, its not a bad idea for PHP to have anyway, and gives users a ONE LINE solution, while giving the

[PHP-DEV] openssl (was Re: [PHP-DEV] Woah)

2001-09-10 Thread Wez Furlong
On 11/09/01, Egon Schmid [EMAIL PROTECTED] wrote: PS1: I'm editing openssl to fix some prototypes, so don't touch it in the next couple of minutes. PS2: Sorry, will start again after an update. Please be patient until you see my commit. Too late... I'm done for now though. --Wez. -- PHP

Re: [PHP-DEV] Woah

2001-09-10 Thread Wez Furlong
On 11/09/01, Egon Schmid [EMAIL PROTECTED] wrote: The _() alias is no function. If someone build-in gettext, he or she should read the gettext documentation. The manual can be only a better function reference and if every alias would have a description just like the real functions, newbies

[PHP-DEV] Documenting Zend (was: zend_parse_parameters)

2001-09-09 Thread Wez Furlong
Zeev Suraski [mailto:[EMAIL PROTECTED]] wrote: At 14:44 09-09-01, Jani Taskinen wrote: If ZE was properly documented, people didn't have to rely on only the sources. By the way, your post had absolutely nothing to do with the subject of the discussion. I think it does; if there were some

Re: [PHP-DEV] zend_parse_parameters

2001-09-08 Thread Wez Furlong
On 08/09/01, Andi Gutmans [EMAIL PROTECTED] wrote: I do have some bad thoughts about it. I'm worried that if we supply such an easy function to parse incoming hash table's people will start writing a lot of PHP functions which accept hash tables instead of regular argument lists. This is

RE: [PHP-DEV] zend_parse_parameters

2001-09-08 Thread Wez Furlong
Andi Gutmans [mailto:[EMAIL PROTECTED]] wrote: Seriously though - if you put comments in big enough letters in the header and source files, and any docs that use them, stating that they are much slower than the usual way of doing then we should have it covered? People don't read the .h

Re: [PHP-DEV] patch to make for better shell scripting

2001-09-07 Thread Wez Furlong
On 07/09/01, Zeev Suraski [EMAIL PROTECTED] wrote: At 12:45 07-09-01, Edin Kadribasic wrote: Mainly this patch adds a -S option that will turn off html errors, error_prepend_string, error_append_string, and output buffering. That's excellent. Now, I'm writing a simple MTA in php and

[PHP-DEV] Separate zval

2001-09-07 Thread Wez Furlong
Hey, I've just converted ext/openssl.c to use the new zend_parse_parameters (because it really needed it!) and I noticed that openssl_seal was doing this: // sealdata and ekeys are the [out] parameters // the PHP_FE says arg2and3of4_force_ref proto int openssl_seal(string data, string sealdata,

Re: [PHP-DEV] zend_parse_parameters

2001-09-07 Thread Wez Furlong
On 07/09/01, Andrei Zmievski [EMAIL PROTECTED] wrote: If this is implemented (I think Andi may have some thoughts about this), Hopefully not bad thoughts! zend_parse_parameters_hash(HASH_OF(my_zval), {s:firstname}|{s:lastname} {l:age}, firstname, firstname_len, lastname, lastname_len, age);

Re: [PHP-DEV] Re: PHP4.0.7RC1 memory problem

2001-09-05 Thread Wez Furlong
(gdb) run -X Starting program: /usr/sbin/httpd -X [Tue Sep 4 14:10:25 2001] [warn] Loaded DSO lib/apache/mod_gzip.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Just a stab in the dark, this wouldn't cause the problem, would it? For

Re: [PHP-DEV] Re: PHP4.0.7RC1 memory problem

2001-09-05 Thread Wez Furlong
Hey, I encounter a similar problem now, albeit intermittently: I have no ideas; I don't think I had this problem before Zeev fixed those two session and output buffering bugs. --Wez. Program received signal SIGSEGV, Segmentation fault. 0x4010922a in chunk_free (ar_ptr=0x401942c0, p=0x8d44bc0)

[PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong
Hi, This is probably more for Andi and Zeev, but I thought I'd ask here in case someone else knows... In a Zend extension in the fcall_begin_handler_func_t, is it possible to get the name of the function being called? From what I can make of the Zend engine (zend_execute.c), in order to get

Re: [PHP-DEV] Re: python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-09-03 Thread Wez Furlong
On 03/09/01, Marcus [EMAIL PROTECTED] wrote: first: when handling multilanguage support you will of cause have an array of supported languages like $languages=array(en_GB,de_DE...) [...] Why not use gettext()? something like this: setlocale(LC_ALL, en_GB); bindtextdomain(mytranslations,

Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong
OK, I found op_array-function_name but had discarded it because copying it was causing segfaults (I don't know why). So, I sprintf it into a stack buffer and then dup that (all using malloc). Now, the question is, how do I get the class name for a method call? --Wez. On 03/09/01, Wez Furlong

Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong
Got it. I was too busy trying to get the info from the op_array to realize that CG and EG were where I should be looking... --Wez. On 03/09/01, Wez Furlong [EMAIL PROTECTED] wrote: OK, I found op_array-function_name but had discarded it because copying it was causing segfaults (I don't

Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong
to the object you are calling. It would be something like object.ptr-obj.ce-name. Anyway I think that's pretty much it without checking the code. On 03/09/01, Wez Furlong [EMAIL PROTECTED] wrote: In a Zend extension in the fcall_begin_handler_func_t, is it possible to get the name

Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Wez Furlong
On 08/31/01, Zeev Suraski [EMAIL PROTECTED] wrote: BTW, any chance you're using trans_sid? (can you check if php_session_start_output_handler() ends up being called for some reason?) I'm not using trans_sid but I am using sessions. My scripts generally do this: if

Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Wez Furlong
On 08/31/01, Zeev Suraski [EMAIL PROTECTED] wrote: The bugs (two different ones) and their symptoms should be gone now. Works for me; thanks! --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP-DEV] Tiny leak with append file?

2001-08-31 Thread Wez Furlong
I'm seeing this in the output of my cron jobs: ./zend_execute.c(1434) : Freeing 0x087FD474 (1 bytes), script=dodeletes.php Last leak repeated 10893 times The number of repeats is proportional to how much work the scripts need to do; it varies from 1 up to whatever (like 10893!). If I put

Re: [PHP-DEV] Tiny leak with append file?

2001-08-31 Thread Wez Furlong
On 08/31/01, Wez Furlong [EMAIL PROTECTED] wrote: ./zend_execute.c(1434) : Freeing 0x087FD474 (1 bytes), script=dodeletes.php Last leak repeated 10893 times Err, scratch the append_file part of the subject; I suspected it might be the problem, but then realized that a) it just had commented

Re: [PHP-DEV] Tiny leak with append file?

2001-08-31 Thread Wez Furlong
On 08/31/01, Zeev Suraski [EMAIL PROTECTED] wrote: Are you running the latest CVS, or is there any chance it's a snapshot from a few days ago? It is CVS from a couple of days ago; I'm rebuilding now to test --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

Re: [PHP-DEV] Tiny leak with append file?

2001-08-31 Thread Wez Furlong
On 08/31/01, Zeev Suraski [EMAIL PROTECTED] wrote: Are you running the latest CVS, or is there any chance it's a snapshot from a few days ago? Fixed. Thanks for that! --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DEV] SEGFAULTs in apache

2001-08-29 Thread Wez Furlong
This is with latest CVS as of around 30-mins to 1-hour ago. It doesn't happen with simple PHP scripts but does with the really really complex ones that I'm working on :( So far I've reproduced the crash with the snap php4-200108282235 and I'm about to try some earlier snaps. Any ideas? --Wez.

[PHP-DEV] RE: SEGFAULTs in apache

2001-08-29 Thread Wez Furlong
I've managed to get things to run without segfaults (--enable-debug) but noticed this in my error log: --- output.c(240) : Block 0x089807C0 status: Beginning: Overrun (magic=0x401945F8, expected=0x7312F8DC) End: Unknown This is also with

Re: [PHP-DEV] RE: SEGFAULTs in apache

2001-08-29 Thread Wez Furlong
Hi Zeev, Yes, I'm using sessions and ob_gzhandler. Compression is turned on only for non-broken browsers, so it is not enabled for IE 5.5 (I had some wierd problems a while back), and so it's not turned on in this case. I also make use of ob_get_contents() and ob_end_clear() to format debugging

Re: [PHP-DEV] ext/standard/html.c breakage

2001-08-24 Thread Wez Furlong
On 24/08/01, Doug MacEachern [EMAIL PROTECTED] wrote: one the php tests (tests/strings/003.phpt) that has been ported to httpd-test is failing with current cvs: Fixed; thanks! --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP-DEV] zend_parse_parameters

2001-08-24 Thread Wez Furlong
Hi, When parsing strings from parameters with zend_parse_parameters, it is required that the programmer pass in an int to receive the length of the string. Could we relax this and allow a NULL instead if we do not need the length of the string? It would make the calling code more pretty

[PHP-DEV] htmlentities and charset awareness: -- str_convert_encoding

2001-08-24 Thread Wez Furlong
Hi, I'm putting together a new PHP function called str_convert_encoding which will convert a string from one encoding to another using the features of the system. It works like this: string str_convert_encoding(string srcstring, string fromenc, string toenc) // No change; return source if

[PHP-DEV] Build warning

2001-08-24 Thread Wez Furlong
In file included from php_apache_http.h:6, from php_apache.c:45: /usr/include/apache/ap_config.h:1316: warning: `XtOffsetOf' redefined /home/wez/src/phpbuild/main/php.h:344: warning: this is the location of the previous definition In file included from

Re: [PHP-DEV] zend_parse_parameters

2001-08-24 Thread Wez Furlong
On 24/08/01, Andrei Zmievski [EMAIL PROTECTED] wrote: Initially, I had another specifier that would let you receive just the string pointer, but in discussions with Andi we agreed that it would be good to always return the length as well. Binary safety was a major consideration in this. Don't

[PHP-DEV] (#9392) Re: htmlspecial chars htmlentities do not handle double byte charactersets

2001-08-21 Thread Wez Furlong
Alan, I've simplified your patch, but have not committed it yet, because I cannot test it, so I would be grateful if you could test it. We need to use the the charset name, not the locale name; nl_langinfo(CODESET) returns it, so please let me know the results of the following php script

Re: [PHP-DEV] (#9392) Re: htmlspecial chars htmlentities do not handle double byte charactersets

2001-08-21 Thread Wez Furlong
On 21/08/01, Wez Furlong [EMAIL PROTECTED] wrote: If you have nl_langinfo on your system, this php code should work with the chinese characters: ?php setlocale(LC_ALL,zh_TW); echo htmlentities(chinese text, ENT_COMPAT, null); ? Actually, I think I meant: echo htmlentities(chinese text

[PHP-DEV] FW: Re: OPENSSL Integration

2001-08-13 Thread Wez Furlong
in advance for your help. And: should we CC some mailing list for further communications? bye, Daniel Wez Furlong wrote: Hi Daniel, It's on my TODO, but requires that all the file IO in PHP gets rewritten first (see README.STREAMS in the root of the php4 source). I'm currently very

RE: [PHP-DEV] Re: compile fails on html.c (CODESET undeclared)

2001-08-09 Thread Wez Furlong
On 09/08/01, Marc Boeren [EMAIL PROTECTED] wrote: I suspect this can be fixed by changing line 231 to be #if HAVE_LANGINFO_H HAVE_LOCALE_H defined(CODESET) Done. Please let me know if it doesn't work... Just wanting to let you know it _does_ work :-) Great :) --Wez. -- PHP

[PHP-DEV] Re: compile fails on html.c (CODESET undeclared)

2001-08-08 Thread Wez Furlong
make[3]: Leaving directory `/home/Marc/source/php-cvs/php4/ext/standard' The offending (in my eyes, at least) were added in the latest revision (1.30) of html.c by Wez Furlong (Wez? Comments?) Err, that's a little odd. I would expect your system to have all of the things required

Re: [PHP-DEV] Re: The new $_GET/POST/ENV (was: Re: [PHP-CVS] cvs: php4 / NEWS...)

2001-08-08 Thread Wez Furlong
On 08/08/01, Jani Taskinen [EMAIL PROTECTED] wrote: On Wed, 8 Aug 2001, Cynic wrote: Yeah. And $_SESSION too. Nope. It doesn't come from the user. But it would be useful for $_SESSION to have the same global scope as these new vars. --Wez. -- PHP Development Mailing List

Re: [PHP-DEV] Re: compile fails on html.c (CODESET undeclared)

2001-08-08 Thread Wez Furlong
On 08/08/01, Heikki Korpela [EMAIL PROTECTED] wrote: On Wed, 8 Aug 2001, Wez Furlong wrote: I suspect this can be fixed by changing line 231 to be #if HAVE_LANGINFO_H HAVE_LOCALE_H defined(CODESET) Please do, it's repeatable on OpenBSD-current; I haven't reported it because I didn't have

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend.c zend_execute_API.czend_hash.c zend_hash.h zend_list.c zend_list.h

2001-08-03 Thread Wez Furlong
[I'm just catching up] I'd like the PHP streams stuff to get into 4.1, but I am lacking time for a few weeks. If we were to go for 4.1, are there any plans for when? --Wez. On 02/08/01, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Zeev Suraski wrote: - For the register_globals default change,

Re: [PHP-DEV] Fwd: Bug id #12378 2000 is not a leapyear!

2001-07-26 Thread Wez Furlong
Read ext/calendar/gregor.c and you will see that: $leap = $year % 4 == 0; // centennials are only leap years if they are multiples of 400 if ($year % 100 == 0 $year % 400 != 0) $leap = false; (that boils down to somthing simpler) 2000 was definitely a leap year. --Wez. On 26/07/01, Andy

[PHP-DEV] Sharing hashes between processes

2001-07-12 Thread Wez Furlong
Hey, Suppose that I wanted to make a hash persistent so that it's contents were shared between processes. Does the persistence mechanism keep a single copy and protect access to it using semaphores, or is it more like the mySQL pconnect way where a currently idle connection is used instead?

[PHP-DEV] preg_replace_callback

2001-07-12 Thread Wez Furlong
Hi Andrei (and anyone else in on pcre), This doesn't work as you might expect if you were used to preg_replace: preg_replace_callback( array( ...patterns...), array( ...callbacks...), $subject); Instead, it expects a single callback as the second parameter. Any chance that it

Re: [PHP-DEV] Sharing hashes between processes

2001-07-12 Thread Wez Furlong
On 12/07/01, Derick Rethans [EMAIL PROTECTED] wrote: AFAIK, it's like the MySQL pconnect way. There is no way to share data between processes (only with shared memory or diskstorage). I thought for a moment that if the data was read on httpd startup, the pointer could be kept around and used

Re: [PHP-DEV] Building PHP with freetype and libgd 1.8

2001-07-05 Thread Wez Furlong
On 05/07/01, Jeremy Bettis [EMAIL PROTECTED] wrote: I had trouble building cvs version of PHP with libfreetype. Right now HAVE_LIBFREETYPE only works if HAVE_LIBGD20, this patch fixes that. Can you elaborate on this? In all versions of GD (including 2.0) gdImageStringTTF is present, but

Re: [PHP-DEV] Bug #11809 Updated: Make install fails: apxs: error: unknown option: S

2001-06-30 Thread Wez Furlong
On 30/06/01, [EMAIL PROTECTED] wrote: I use Apache 1.3.2 on a Cobalt RaQ2 Apache 1.3.2 is really old, please update it to a newer version, i.e. 1.3.20. Upgrading Apache on cobalt boxes invalidates the warranty; Cobalt do some wierdo stuff to apache so that their integrated web-based

Re: [PHP-DEV] Memory limit is used for all scripts instead of one?

2001-06-29 Thread Wez Furlong
I thought I would add my tuppence (= 2 pence = 0.02 GBP) worth: I've been building with --enable-memory-limit to enable the peak mem usage stats in my log files. Recently I noticed that all of a sudden my scripts were chewing up more than 8MB (the default limit in php.ini) and PHP was bailing

Re: [PHP-DEV] PHP SSL Client

2001-06-23 Thread Wez Furlong
On 22/06/01, [EMAIL PROTECTED] wrote: We are not regular PHP developers, but one of our programmers developed a patch to 4.0.5 that allows PHP to act as an SSL client. If you believe that it is useful, feel free to add to the PHP code base. Jeff, Thanks for your patch, but we do have an

Re: [PHP-DEV] Memory overwriting problem in CVS

2001-06-20 Thread Wez Furlong
On 2001-06-19 16:58:51, Wez Furlong [EMAIL PROTECTED] wrote: The problem seems to have been introduced after snap php4-200106111635 but before CVS as of Fri 15th June. Looks like it was the same problem that Sebastian reported; its fixed now. --Wez. -- PHP Development Mailing List http

[PHP-DEV] Memory overwriting problem in CVS

2001-06-19 Thread Wez Furlong
Hey, I posted about a problem I was having with PHP on Friday; I thought it was something to do with the Zend engine, but now I'm not so sure. The bug appears to be something overwriting memory it shouldn't; I'm getting symptoms such as strings turning into 's, string keys in hashes turning

Re: [PHP-DEV] Lame support for win32 mail() function -rant

2001-05-22 Thread Wez Furlong
Joel, I am being paid by my clients to contribute to PHP for use in enterprise products because ASP and Windows don't cut the mustard. Please lets stop this rant; go back to ASP and let us concentrate on getting things done. --Wez. On 2001-05-22 08:53:16, [EMAIL PROTECTED] wrote: Open source

Re: [PHP-DEV] Lame support for win32 mail() function -rant

2001-05-22 Thread Wez Furlong
On 2001-05-22 08:00:44, md [EMAIL PROTECTED] wrote: Hello Delphi programmer! Here is a description of the wonderful world of Delphi Hey, I use Delphi too you know! Have you tried it? I am fluent in C, C++, Delphi. I prefer using Delphi for Windows because it lets you handle crashes more

[PHP-DEV] htmlentities and locales

2001-05-22 Thread Wez Furlong
Hey guys, I was wondering if anyone has managed to take a look at my patch for htmlentities() yet? I would like to commit it this evening; I have been testing it live in-house and it seems to be working just fine. --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

[PHP-DEV] htmlentities and locales

2001-05-21 Thread Wez Furlong
Hey, I've started to work on making htmlentities aware of different charsets. Now, the question is, how do we let it know which charset to use? There is a comment in ext/standard/html.c that says it would be wise to use the LC_CTYPE setting but the problem is that there is no easy way to

Re: [PHP-DEV] Patch for charset aware htmlentities()

2001-05-21 Thread Wez Furlong
I wrote: This patch has an impact on the wddx extension which needs to pass a NULL for the charset, which will in turn search the locale to determine which to use. Ignore that part; the charsets are only used when the all parameter is in effect. --Wez. -- PHP Development Mailing List

[PHP-DEV] mailparse extension

2001-05-20 Thread Wez Furlong
SGksDQoNCkkndmUgY29tbWl0dGVkIG15IG1haWxwYXJzZSBleHRlbnNpb247IEkgaG9wZSB0aGF0 cyBPSy4NCkkgZGlkbid0IGdldCBhbnkgbmVnYXRpdmUgZmVlZGJhY2sgYWJvdXQgY29tbWl0dGlu ZyBpdCB3aGVuIEkgYXNrZWQgYQpjb3VwbGUgb2Ygd2Vla3MgYWdvLCBzbyBJIHRob3VnaHQgaXQg d291bGQgYmUgT0suDQoNCi0tV2V6Lg== -- PHP Development Mailing

RE: [PHP-DEV] mailparse extension

2001-05-20 Thread Wez Furlong
Ooops. That says something along the lines of: I have commited my mailparse extension since there was no negative feedback when I asked about doing it a couple of weeks ago. --Wez. SGksDQoNCkkndmUgY29tbWl0dGVkIG15IG1haWxwYXJzZSBleHRlbnNpb247IEkgaG 9wZSB0aGF0

RE: [PHP-DEV] mailparse extension

2001-05-20 Thread Wez Furlong
On 2001-05-20 16:20:03, Andi Gutmans [EMAIL PROTECTED] wrote: At 12:28 PM 5/20/2001 +0100, Wez Furlong wrote: SGksDQoNCkkndmUgY29tbWl0dGVkIG15IG1haWxwYXJzZSBleHRlbnNpb247IEkgaG Was that in chinese? :) Base64... :-) --Wez. -- PHP Development Mailing List http://www.php.net

Re: [PHP-DEV] mmap in php_passthru_fd in file.c ?

2001-05-18 Thread Wez Furlong
On 2001-05-18 05:43:50, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Obviously the mmap will be faster, but if as in bug #10701, someone is Ignore my last post regarding this bug... --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-18 Thread Wez Furlong
On 2001-05-18 05:28:19, [EMAIL PROTECTED] wrote: ID: 10701 Status: Closed But a hint. Don't use readfile(), fopen() the file and read it a bit at a time instead of sticking the entire thing in memory. Does readfile() really read the whole thing into memory first?? Perhaps we should change

Re: [PHP-DEV] sockets extension

2001-05-16 Thread Wez Furlong
disclaimerI don't appear to have seen/received the rest of this thread, so please pardon any mistakes in advance.../disclaimer On 2001-05-16 20:49:30, Andi Gutmans [EMAIL PROTECTED] wrote: Would it make sense to try to integrate the new php_streams into this extension? It might give

Re: [PHP-DEV] call_user_*()

2001-05-13 Thread Wez Furlong
On 2001-05-13 06:36:33, Sterling Hughes [EMAIL PROTECTED] wrote: Stefan Livieratos wrote: Well, I thought that the function call_user_func_array() is supposed to be called this way. What good is it anyway? I suggest 'call_user_func_array' should be removed as it is not needed and also

Re: [PHP-DEV] GD 2 support planned?

2001-05-13 Thread Wez Furlong
On 2001-05-14 01:04:24, Al Maw [EMAIL PROTECTED] wrote: This doesn't strike me as a particularly difficult job, and would be most beneficial as it has much better support for truecolour images and handles resampling. Is anyone working on this? I implemented this a couple of weeks ago in CVS.

Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong
On 2001-05-12 04:29:19, Jason Greene [EMAIL PROTECTED] wrote: zval_copy_ctor used on an array makes a reference copy of the array. Basically, it just copies all the data items in the hashtable and then adds one to the reference count for all data items. Looking at the code, it appears to

Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong
On 2001-05-12 10:12:14, Andi Gutmans [EMAIL PROTECTED] wrote: The code is almost OK. The only problem is that the reference count and is_ref from rfcbuf-headers are also copied to *headers. So what you should be doing (if you only add it once to the return_value) is to do

Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong
Hi, I would like to see an add_assoc_zval() macro to complement the other add_ functions. Just thought that I would throw that in while there are a couple of threads in the Zend API... :-) --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Wez Furlong
On 2001-05-12 12:10:57, Sebastian Bergmann [EMAIL PROTECTED] wrote: Hello there, yesterday I upgraded my SuSE 7.1 Linux box to libtool-1.4. I I'm using SuSE 7.0 and I had a similar problem. On my first run, I let libtool go into /usr/local (the default). After the warnings, I decided

Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong
On 2001-05-12 13:45:25, Andi Gutmans [EMAIL PROTECTED] wrote: At 11:50 AM 5/12/2001 +0100, Wez Furlong wrote: I would like to see an add_assoc_zval() macro to complement There is an add_assoc_zval() function. Doh! I wonder why I didn't see it before... --Wez. -- PHP Development Mailing

Re: [PHP-DEV] Bug #10832: memory overruns in php_rshutdown_session_globals

2001-05-12 Thread Wez Furlong
On 2001-05-12 21:40:14, Sascha Schumann [EMAIL PROTECTED] wrote: On 12 May 2001 [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: SuSE 7.0 i386 PHP version: 4.0 Latest CVS (2001-05-12) PHP Bug Type: *Session related Bug description: memory

[PHP-DEV] streams support for interbase

2001-05-12 Thread Wez Furlong
Hi, Could someone with interbase test this patch that provides streams support? I would like to know the outcome of doing a regular compile (with no streams support) and a compile with --enable-php-streams before I commit. I'm just being overly cautious... --Wez. Index:

Re: [PHP-DEV] Fork() in php?

2001-05-11 Thread Wez Furlong
On 2001-05-11 16:10:00, Jason Greene [EMAIL PROTECTED] wrote: What do you guys think about having fork, waitpid, and signal handling available in php? I wrote a few simple fork test functions, and everything seemed to work fine. I am thinking that with sockets, shm, signals, and fork

[PHP-DEV] zval_copy_ctor

2001-05-11 Thread Wez Furlong
Hi, In my mailparse extension I am building up an array to contain the headers while parsing the message. The array is held in a zval in the internal C structure, one for each message part. When the user space code requests info for a particular message part it is returned as an assoc. array.

[PHP-DEV] unbuffered mysql_db_query for 4.0.6?

2001-05-09 Thread Wez Furlong
Hi All, Since Andi wants to RC1 4.0.6, I would like to know if you have an opinion about my recent patch for mysql_db_query() which allows you request an unbuffered rowset. Zeev suggested that using a different combination of function calls would be more optimal, and now that I have done some

Re: [PHP-DEV] bonsai.php.net down, no one cares?

2001-05-08 Thread Wez Furlong
On 2001-05-07 17:28:16, Andrei Zmievski [EMAIL PROTECTED] wrote: The MySQL server on the machine died. I've restarted it and it's now rebuilding the entire check-in history to make sure it's complete. I know this isn't entirely relevant to PHP, but I thought it might help... I've found an

[PHP-DEV] Re: mysql and unbuffered queries

2001-05-07 Thread Wez Furlong
On 2001-05-07 00:26:02, Zeev Suraski [EMAIL PROTECTED] wrote: At 02:16 7/5/2001, Wez Furlong wrote: Should I create a patch that enables the parameter? Probably... Are you sure you can't use mysql_unbuffered_query(), though? If you're really used to supplying the database argument, you can

Re: [PHP-DEV] Re: mysql and unbuffered queries

2001-05-07 Thread Wez Furlong
On 2001-05-07 11:07:14, Jani Taskinen [EMAIL PROTECTED] wrote: Second question is: What is the use of mysql_query() function anymore then? Why not just exchange mysql_query() with mysql_unbuffered_query()? You didn't say anything about any disadvantages on using it. :) The disadvantage is

Re: [PHP-DEV] Re: mysql and unbuffered queries

2001-05-07 Thread Wez Furlong
On 2001-05-07 11:54:45, Zeev Suraski [EMAIL PROTECTED] wrote: At 13:51 7/5/2001, Wez Furlong wrote: The disadvantage is that you have to retrieve all the rows before you can issue further SQL on that connection. Zeev, Does the extension take care of this case, or does it just return

Re: [PHP-DEV] Re: mysql and unbuffered queries

2001-05-07 Thread Wez Furlong
On 2001-05-07 12:22:13, Zeev Suraski [EMAIL PROTECTED] wrote: It's going to be a bit complex to explain why I didn't want this patch, but I'll give it a try :) It's OK, I understand. I just wish that you had said this before I comitted the patch ;-) First off, my personal preference was

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard fsock.c fsock.h /main network.cphp_network.h php_streams.h streams.c

2001-05-06 Thread Wez Furlong
On 2001-05-06 07:07:54, Sebastian Bergmann [EMAIL PROTECTED] wrote: Wez Furlong wrote: Fixed and on the PHP_4_0_6 branch. fsock.c D:\Programme\MS Visual Studio\Projekte\php\php4\ext\standard\fsock.c(431) : erro r C2065: 'FD_SETSIZE' : undeclared varaible Thats the PHP_WIN32 stuff; fixed

Re: [PHP-DEV] extension/module versioning

2001-05-06 Thread Wez Furlong
On 2001-05-06 02:06:42, [EMAIL PROTECTED] wrote: what are the chances of having a function call for every extension that returns the version? this would be extremely useful for determining whether the correct version is installed, rather than checking to see if the function_exists().

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Branching 4.0.6...

2001-05-06 Thread Wez Furlong
On 2001-05-06 12:04:32, Sascha Schumann [EMAIL PROTECTED] wrote: The GD config stuff is also still busted. On www.php.net, the config system detected GIF support in GD-1.8.3.. How can that be? The gif stuff is detected via AC_CHECK_LIB (I didn't touch that part!) --Wez. -- PHP

[PHP-DEV] tracking down segfaults

2001-05-06 Thread Wez Furlong
I don't suppose any of you guys have a magic way of tracking down rare segfaults in apache? Occaisonally I get a seg fault in apache, but I can't pin down the precise circumstances. What would be nice is a way to automatically generate a backtrace during a segfault. Also, it would be great if

Re: [PHP-DEV] PHP 4.0 Bug #10665 Updated: Requesting additional functions in OpenSSL module (working patch available)

2001-05-05 Thread Wez Furlong
On 2001-05-05 09:00:54, [EMAIL PROTECTED] wrote: PS: It is possible to add my name to CREDITS (not required, but would be nice) or would that be cheeky? :-) I don't know what the rules are for that, and I'm not sure if I'm listed either... I put your name at the top of the source file though

[PHP-DEV] Re: yet another mailparse extension

2001-05-05 Thread Wez Furlong
On 2001-05-05 10:14:06, Jade Nicoletti [EMAIL PROTECTED] wrote: About a year ago, I've written a parser too. ... May the php developer community make the best of it! http://nns.ch/ext_msg_a2629.tar.gz (~ 13kB) Thanks - I'll take a look an try to integrate it into my extension. --Wez.

[PHP-DEV] credits

2001-05-05 Thread Wez Furlong
On 2001-05-05 12:08:53, Wez Furlong [EMAIL PROTECTED] wrote: On 2001-05-05 09:00:54, [EMAIL PROTECTED] wrote: PS: It is possible to add my name to CREDITS (not required, but would be nice) or would that be cheeky? I've added your name to ext/openssl/CREDITS. Actually while doing this, I've

Re: [PHP-DEV] Branching 4.0.6...

2001-05-05 Thread Wez Furlong
On 2001-05-05 19:02:29, Andi Gutmans [EMAIL PROTECTED] wrote: Hi, Now that the pressing problems have been fixed in the CVS I'd like to branch 4.0.6 and release an RC1. Any objections? No, but you may want to check that my commit for fsock/network related files works for you all before

Re: [PHP-DEV] Branching 4.0.6...

2001-05-05 Thread Wez Furlong
On 2001-05-05 20:02:29, Wez Furlong [EMAIL PROTECTED] wrote: On 2001-05-05 19:02:29, Andi Gutmans [EMAIL PROTECTED] wrote: Hi, Now that the pressing problems have been fixed in the CVS I'd like to branch 4.0.6 and release an RC1. Any objections? No, but you may want to check

RE: [PHP-DEV] Branching 4.0.6... (mailer problems)

2001-05-05 Thread Wez Furlong
Sorry for the spamming. --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DEV] Re: Bug #9878 Updated: gmmktime is 1 hour off during standard time

2001-05-05 Thread Wez Furlong
On 2001-05-05 23:06:09, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Andrei, you made the change from: gmadjust = -(is_dst ? altzone : timezone + (timezone - altzone)); to: gmadjust = -(is_dst ? timezone - 3600 : timezone + 3600); These don't look logically equivalent to me. Can you CC

[PHP-DEV] Curious problem with sessions over prolonged periods

2001-05-05 Thread Wez Furlong
Hi, I've just managed to pin down a strange intermittent bug that I thought was due to some peculiarity in my php application. It's actually a problem with sessions. I have this code: if (!session_is_registered(profile)) { $profile = array(); $profile_times = array(); $datacache =

[PHP-DEV] RE: [PHP-CVS] cvs: php4 /ext/standard fsock.c fsock.h /main network.c php_network.h php_streams.h streams.c

2001-05-05 Thread Wez Furlong
On 2001-05-05 20:30:25, Andi Gutmans [EMAIL PROTECTED] wrote: Your patch has broken my build. On Linux doing a simple ./configure ; make dies with: /home/andi/php-cvs/main/network.c: In function `php_hostconnect': /home/andi/php-cvs/main/network.c:274: storage size of `timeoutval' isn't known

<    1   2   3   4   5   6   >