Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query andpossible integer overflow?

2003-03-25 Thread Wez Furlong
Hi Matt, Yes, there is a risk of overflow. From my understanding, the id is signed, so you will hit overflow at 2G rather than 4G resources. This applies to any/all PHP/ZE resources. I'm not sure what happens when it overflows; it seems like the query would fail. You could design your

Re: [PHP-DEV] 64bit PHP on solaris

2003-03-15 Thread Wez Furlong
On Sat, 15 Mar 2003, James Devenish wrote: Regardless of what you personally understand (and what I personally understand), my point would be that the problems are simply unfixed by *anyone*. This is the first time that anyone has brought this issue to my attention. Index: main/streams.c

Re: [PHP-DEV] 64bit PHP on solaris

2003-03-14 Thread Wez Furlong
Please coordinate with me on streams issues; if some 64bit oses declare descriptors as longs rather than ints, then we could have a bigger job on our hands (similar to the mess with socket types under win32). --Wez. On Fri, 14 Mar 2003, David Hill wrote: CRIPES, people! I posted patches in

Re: [PHP-DEV] 64bit PHP on solaris

2003-03-14 Thread Wez Furlong
On Fri, 14 Mar 2003, David Hill wrote: Please coordinate with me on streams issues; if some 64bit oses declare descriptors as longs rather than ints, then we could have a bigger job on our hands (similar to the mess with socket types under win32). Tru64 HP-UX (and I would guess Solaris

Re: [PHP-DEV] 64bit PHP on solaris

2003-03-13 Thread Wez Furlong
Make sure that you are using the latest stable snapshot from http://snaps.php.net; a number of 64bit issues have already been addressed. --Wez. On Thu, 13 Mar 2003, Chris Field wrote: We have been attempting to run php on a brand new sun v880, and have had a number of problems. first

Re: [PHP-DEV] 64bit PHP on solaris

2003-03-13 Thread Wez Furlong
Of the PHP_4_3 branch? Could you open a bug report for each of these three issues at bugs.php.net? --Wez. On Thu, 13 Mar 2003, Chris Field wrote: I am working off a checkout from about three days ago... On Thu, 2003-03-13 at 11:21, Wez Furlong wrote: Make sure that you are using

Re: [PHP-DEV] Re: Opening files for write from php modules

2003-03-11 Thread Wez Furlong
Even so, its a very good idea to use streams for this; you will automatically make your extension safe_mode and open_basedir aware, virtual cwd aware and be able to avoid crippling limitations of certain OS (eg: Solaris can only fopen 256 files). These things are particularly important in a web

Re: [PHP-DEV] Language Auto Detection / www.php.net

2003-03-10 Thread Wez Furlong
Perhaps because he prefers to read most sites in his native language? --Wez. On Mon, 10 Mar 2003, Mincu Alexandru wrote: why not set your browser accept language to english? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Specifying pass-by-ref parameters

2003-03-07 Thread Wez Furlong
Look at the function table in basic_functions.c: { PHP_FE(nameoffunc), NULL } This NULL can be replaced with an array that specifies BYREF_FORCE for the relevant arguments; look for first_and_second__args_force_ref for an exmaple. --Wez. On Fri, 7 Mar 2003, l0t3k

Re: [PHP-DEV] bug in zend_API.c (with patch)

2003-03-07 Thread Wez Furlong
It's not a bug; PHP is a case-IN-sensitive language when it comes to function and class names. Adding strtolower calls will only slow down the whole language. Using lowercase function and class names is the best solution. --Wez. On Fri, 7 Mar 2003, Eric Lambart wrote: On Fri, 2003-03-07 at

Re: [PHP-DEV] bug in zend_API.c (with patch)

2003-03-07 Thread Wez Furlong
On Sat, 7 Mar 2003, Eric Lambart wrote: Adding strtolower calls will only slow down the whole language. but my point is the overhead involved cannot possibly rival the amount already created by the zend_str_tolower() calls within zend_execute.c, which is surely encountered far more often

[PHP-DEV] Re: main/network.c

2003-03-01 Thread Wez Furlong
Hi marcus, Moriyoshi is going to revert the HAVE_INET_NTOP part; I have to go out now, so I won't be able to address the warnings right away, but will look at them later. --Wez. On Sat, 1 Mar 2003, Marcus [iso-8859-1] Börger wrote: Hi Wez, i cannot compile current network.c. The following

Re: [PHP-DEV] Getting an external param into a userspace streamsfilter...

2003-02-27 Thread Wez Furlong
Hi David, user filters are in a little bit of flux atm. However, the idea is that the param argument will be altered to be a zval (rather than just a string). In the oncreate() method, the following member variables are available to the filter: string $this-filtername; // name of the filter

Re: [PHP-DEV] date() extension

2003-02-27 Thread Wez Furlong
If you don't have time to support your own patch, why should we commit it to CVS!?? There is a reason for that doc being there; please read it. --Wez. On Thu, 27 Feb 2003, Dirkjan Ochtman wrote: Didn't have time, but here's a new patch. Regards, Dirkjan Wez Furlong [EMAIL PROTECTED

Re: [PHP-DEV] date() extension

2003-02-27 Thread Wez Furlong
You don't need any of that stuff to read the guidelines for submitting a patch - why don't you just read it and save everybody some time... --Wez. On Fri, 28 Feb 2003, Dirkjan Ochtman wrote: Please! It's just a date() parameter, about 20 lines of code, mostly taken from another date()

Re: [PHP-DEV] Flex never-interactive mode

2003-02-26 Thread Wez Furlong
On Wed, 26 Feb 2003, Andi Gutmans wrote: At 12:48 PM 2/26/2003 -0800, Rasmus Lerdorf wrote: I think we can add %option never-interactive to the ini-scanner lexer to ^ Yes, this is a good idea - INI files are never

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-25 Thread Wez Furlong
On Mon, 24 Feb 2003, Rasmus Lerdorf wrote: if (stream) { if (self-is_pipe) { stream-flags |= PHP_STREAM_FLAG_NO_SEEK; } else { stream-position = ftell(file); } } We should be able to skip that ftell() call on a script or include

Re: [PHP-DEV] extra realpath() found

2003-02-24 Thread Wez Furlong
With my ze-stream patch to PHP 5 (in HEAD now), this can be avoided as all files opened on the behalf of the engine can be managed via a single function, provided that they set the zend file handle to open via a filename. --Wez. On Mon, 24 Feb 2003, Sander Roobol wrote: On Sun, Feb 23, 2003 at

Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-23 Thread Wez Furlong
This double seeking is most probably due to the fact that the stdio layer does one set of seeking, whereas streams needs to do another. This can be solved by moving away from using stdio for streams, and just using the raw descriptors instead. (already made a start on this in PHP 5). I'm a

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-02-23 Thread Wez Furlong
Hi Andi (and James) Andi: I'd appreciate your comments on this patch, specifically if there are any concerns about it doing the right thing. Most people here: http://bugs.php.net/bug.php?id=21310edit=1 report that it fixes their problems with solaris. I've held off from looking at this, as I

Re: [PHP-DEV] file_put_contents() / file_add_contents() ?

2003-02-21 Thread Wez Furlong
Look in the archives for that guys original patch; it allowed doing something like this: $foo = array(); $foo[] = some text; $foo[] = more text; file_put_contents(file.txt, $foo); and also: file_put_contents(file.txt, $foo, $bar, $baz); I'm not 100%

Re: [PHP-DEV] date() extension

2003-02-17 Thread Wez Furlong
Please read the README.SUBMITTING_PATCH file in the root of the php source and re-submit your patch. --Wez. On Mon, 17 Feb 2003, Dirkjan Ochtman wrote: begin 666 datetime.c -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / run-tests.php /ext/curlinterface.c streams.c /ext/fbsql php_fbsql.c /ext/ftp ftp.c /ext/hyperwavehg_comm.c hw.c /ext/imap php_imap.c /ext/ldap ldap.c /ext/

2003-02-16 Thread Wez Furlong
winsock2.h as one of the first things in php.h, so the large majority of all other .c files probably don't even need to include it explicitly anymore. --Wez. On Sun, 16 Feb 2003, Sebastian Bergmann wrote: Wez Furlong wrote: Log: A add much more useful select(2) implementation than

Re: [PHP-DEV] [PATCH] make the win32 project working again afterdate_sun*()'s

2003-02-16 Thread Wez Furlong
I'll do this now. On Mon, 17 Feb 2003, moshe doron wrote: http://212.199.221.100/moshe/win32project-sunfuncs.patch.txt -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] repost: return_value getting corrupted in extension

2003-02-14 Thread Wez Furlong
Hi Eric, It really just sounds like you have some bug in your code where your pointers are misbehaving. All I can suggest is that you look very carefully at each pointer in the relevant code to make sure it is ok. Also, try stripping it down a couple of lines at a time (by commenting them out)

Re: [PHP-DEV] repost: return_value getting corrupted in extension

2003-02-12 Thread Wez Furlong
Hi Eric, return_value is already allocated for you in a PHP_FUNCTION() that is called by the engine (or via call_user_fuction(_ex)), as you have guessed. PHP_FUNCTION(eo_table) Looks correct. /* call the constructor */ if ( call_user_function(NULL, object, ctor_fn, ctor_retval, 0, NULL)

Re: [PHP-DEV] repost: return_value getting corrupted in extension

2003-02-11 Thread Wez Furlong
No offense, but this is really quite a useless problem report. You are not showing any of the zend API that you use to create the object, so how can we help you? Hints: make sure that your zvals are correctly initialized (there are some big differences between ALLOC_ZVAL and MAKE_STD_ZVAL).

Re: [PHP-DEV] proc_open() patch

2003-02-10 Thread Wez Furlong
Hi Shane, Looks good to me. I will test it later this week, but it doesn't look like there will be any problems. --Wez. On Sun, 9 Feb 2003, Shane Caraveo wrote: The attached patch adds 2 optional parameters to proc_open(). The first, cwd, and the second is an array for executing with a

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

2003-02-10 Thread Wez Furlong
Hey Ilia, Lets also have either an enum or some real #define'd constants for the values used in the C code. eg: REGISTER_LONG_CONSTANT() and the code that checks for a number should both be using a symbolic constant rather than a hard-coded number. --Wez. On Mon, 10 Feb 2003, Ilia A. wrote:

[PHP-DEV] ChangeLog again

2003-02-09 Thread Wez Furlong
ChangeLog ChangeLog ChangeLog ChangeLog :) Anyone want to look into kicking the script and archiving the 2002 entries as a .gz ? --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: php4 . cant compile . ext/standard/var.c

2003-02-07 Thread Wez Furlong
Make sure you have the correct set of working files: For PHP 5: cvs co php5 For PHP 4.3-dev cvs co -r PHP_4_3 php4 Checking out php4 HEAD is not supported. --Wez. On Sat, 8 Feb 2003, Lukas Schroeder wrote: hi wez, i'm currently trying to compile cvs head. there are quite a lot

Re: [PHP-DEV] http streams can't be filtered?

2003-02-06 Thread Wez Furlong
It should not happen, and there is code in the http opener that *should* avoid this, because it has negative implications for including files via http. I will take a look when I have more time... --Wez. On Wed, 5 Feb 2003, Sara Golemon wrote: Wez, After our short discussion in IRC today I

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Wez Furlong
Hey, Wouldn't it be nice/more useful to generate RDF/RSS on a per-bug basis? Then you could just add the feed url to your favourite RSS client. If you make it do that, then I will take a look and commit, provided that there are no objections to this. --Wez. On Fri, 31 Jan 2003, Sara Golemon

[PHP-DEV] [PATCH] var_dump and friends dislike new style overload objects

2003-01-30 Thread Wez Furlong
The attached patch alters the var family of functions to be aware of the get_class_name handler for overloaded objects. It also checks that the object has a hash table for it's properties before attempting to access it. This patch is not 100% complete because it does not handle nested class

Re: [PHP-DEV] Compiling php4activescript

2003-01-27 Thread Wez Furlong
There are some additional libraries and tools that you need to be able to build the win32 version. The manual has more details here: http://www.php.net/manual/en/install.windows.php Please note that the ActiveScript SAPI is by no means ready for production use (I would call it pre-alpha), and

Re: [PHP-DEV] php_stream size

2003-01-25 Thread Wez Furlong
At the moment, what you are currently doing is one of the simplest ways of doing it portably, provided that the stream is seekable. The other way is to call php_stream_stat() which returns the size, ctime, mtime etc. of the stream, and can theoretically work on virtual filesystems and wrappers

Re: [PHP-DEV] PHP 5.0.0-dev with J2sdk1.4.1_01 on Linux

2003-01-23 Thread Wez Furlong
Because it is now a part of the rpc extension, which currently does not build under unix (but will do in the not too distant future). --Wez. On Thu, 23 Jan 2003, Seung Hwan Kang wrote: Is a Java extension removed or intensionally left over from PHP 5.0.0-dev? I have no error messge when I

RE: [PHP-DEV] PHP4 + PHP5

2003-01-14 Thread Wez Furlong
On Tue, 14 Jan 2003, Mike Robinson wrote: I'm assuming PHP5 will use _only_ ZE2 once it's forked? s/will/does/ s/once/now/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-QA] Test results [failed] PHP5 (ZE2) on Tru64

2003-01-13 Thread Wez Furlong
Hi Magnus, Please try changing file.c line 1485 so that it reads something like this: unsigned long len; int type; I would expect that to help reduce errors whenever the fscanf function is called (used by the expectf section in tests?). The other problem is within the url scanner in the

Re: [PHP-DEV] mailparse

2003-01-09 Thread Wez Furlong
We still haven't fully decided about how to document PECL extensions, and there is talk of some kind of grand unified documentation system to hold the PHP manual, PEAR/PECL manual and PHP Extension Authors manual. However, everyone has precious little time for this, so things are likely to stay

Re: [PHP-DEV] Terminal text objects (PHP CDK NCURSES)

2003-01-09 Thread Wez Furlong
This would be a nice thing to include in PECL (see http://pear.php.net). --Wez. On Wed, 8 Jan 2003, Nikolai Vladychevski wrote: Hello, I want to share the code (php-extension) I have included into php-4.2.2 to support CDK widgets

[PHP-DEV] Re: Stream filters, converters and i18n.

2003-01-09 Thread Wez Furlong
Derick has requested the ability to be able to specify an array parameter instead of/as well as a string. What I plan to implement is an additional (optional) filter operation that is given an opportunity to pre-process the zval and make it available to the underlying implementation.

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

2003-01-07 Thread Wez Furlong
With the current model, the concept is that you can use either the filter name or filter parameters to distinguish the ultimate behaviour. Yes this is a possible headache. I am thinking that two separate chains of filters (one for reading and one for writing) might make this situation a little

Re: [PHP-DEV] stream filter problem

2003-01-04 Thread Wez Furlong
the filter write functions should return the number of bytes of the input buffer that they *consumed*, not how many were written. (The read function should of course return the number read, but cannot exceed the maximum buffer size). However, there also seems to be a similar sounding problem with

[PHP-DEV] Re: Patch for #21330 - socket_select()

2003-01-02 Thread Wez Furlong
#21330 actually sounds completely bogus after having looked at the code... --Wez. PS: add diff -u to your .cvsrc On Thu, 2 Jan 2003 [EMAIL PROTECTED] wrote: This is the patch that fix the issue of socket_select that doesn't wait if value for timeval is 0. Tell me what you think. Regards.

Re: [PHP-DEV] Patch for #21330 - socket_select()

2003-01-02 Thread Wez Furlong
It's also broken as it will not allow for a null value to give an infinite wait period. --Wez. On Thu, 2 Jan 2003, Tularis wrote: if (sec != NULL || sec != 0) { convert_to_long_ex(sec); tv.tv_sec = Z_LVAL_P(sec); tv.tv_usec = usec; } else { tv.tv_sec = 0; tv.tv_usec

Re: [PHP-DEV] 4.3.0, RedHat 7.3:Fatal error: Nesting level too deep- recursive dependency? in Unknown on line 0, even with empty file

2003-01-02 Thread Wez Furlong
Make a backtrace and then we will have a clue about what is happening... --Wez. On Thu, 2 Jan 2003, Tobias Schlitt wrote: Hi everyone! Today i compiled 4.3.0 on my Laptop (Redhat 7.3). Compiling works fine. Running Scripts works (until now) fine. Except, that i'm getting the same error,

[PHP-DEV] PHP in 2003 (leading to PHP 5)

2003-01-01 Thread Wez Furlong
I hope you all had a joyous night last night and that it forms that start of a great New Year! Now, let's get our heads straight on what we are doing for 2003 :) You may remember (especially if you read Derick's Look Back) that I said something about building against ZE2 by default once we

[PHP-DEV] CVS mangled (netware/apachecore.imp, netware/bisonflexzend.bat)

2003-01-01 Thread Wez Furlong
% cvs -q up cvs server: nothing known about netware/apachecore.imp cvs server: nothing known about netware/bisonflexzend.bat I can't find any trace of these files in my checkout (or in the CVS files), so I presume that something has been munched on the server side? --Wez. -- PHP Development

[PHP-DEV] ChangeLog

2003-01-01 Thread Wez Furlong
Is there some magic that needs to be done to rotate the ChangeLog? By this I mean: gzip ChangeLog mv ChangeLog.gz ChangeLog2002.gz touch ChangeLog cvs add -kb ChangeLog2002.gz cvs ci -m rotate changelog ChangeLog ChangeLog2002.gz It seems the most recent entry in the log is from the 29th

Re: [PHP-DEV] Re: #21139 [Ctl]: zlib.output_compression + windowsfailure

2002-12-23 Thread Wez Furlong
This sounds like the same kind of problems we've encountered with PCRE mbstring and openSSL extensions on windows and their use from other modules. Isn't the solution as simple as changing the #ifdef to include COMPILE_DL_ZLIB in the checks, or is this another situation where the zlib extension

[PHP-DEV] Re: #21139 [Ctl]: zlib.output_compression + windows failure

2002-12-22 Thread Wez Furlong
This needs one of you output guys to resolve it. Andrei mentioned something about making the final release before 1st Jan, so if you can, please get your coding-butts in gear :) --Wez. On 22 Dec 2002 [EMAIL PROTECTED] wrote: ID: 21139 Updated by: [EMAIL PROTECTED]

Re: [PHP-DEV] Re: output buffering problem

2002-12-19 Thread Wez Furlong
Please ask these questions on the php-general list. --Wez. On Thu, 19 Dec 2002, electroteque wrote: sorry about the false alarm , if you go here u will see a working example http://galleries.dyndns.org:1023/progress.php i had to add both flush functions together to work , obviosuly flsuh

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-19 Thread Wez Furlong
Would this solve the problem? Index: main/main.c === RCS file: /repository/php4/main/main.c,v retrieving revision 1.520 diff -u -r1.520 main.c --- main/main.c 16 Dec 2002 15:43:52 - 1.520 +++ main/main.c 19 Dec 2002 13:06:45

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-19 Thread Wez Furlong
Actually, it does seem valid to me; streams based on FILE* are not registered in the persistent list, so does it make sense to have the associated resources registered as persistent resources when they will get cleaned up by the engine at request shutdown? --Wez. On Wed, 18 Dec 2002, Andi

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-19 Thread Wez Furlong
On Thu, 19 Dec 2002, Wez Furlong wrote: Actually, it does seem valid to me; streams based on FILE* are not registered in the persistent list, so does it make sense to have the associated resources registered as persistent resources when

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2002-12-19 Thread Wez Furlong
If my vote has enough Karma Power, then I'm +1 for this solution. --Wez. On Thu, 19 Dec 2002, Edin Kadribasic wrote: After having consulted with Andrei, Derick and others on irc here is a proposal for a compromise: On Unix: 1. Both cgi and cli are built as 'php' in their respective sapi

Re: [PHP-DEV] php.exe - php-cgi.exe

2002-12-11 Thread Wez Furlong
[imagine large quantities of quoted text here] On Wed, 11 Dec 2002, Edin Kadribasic wrote: So i am -1 on renaming CLI And +1 on keeing CGI as php-cgi and CLI as php marcus Just for the record: my vote is the same. aolme too/aol [imagine large quantities of quoted text here] -- PHP

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-09 Thread Wez Furlong
On Sun, 8 Dec 2002, Mike Robinson wrote: Every system on the planet that uses php.exe as their CGI executable, and I suggest there are quite a few, will have a broken setup with a stock install of php-4.3.0, because typing php-cli.exe at the command line is too long. And you expect putting

Re: [PHP-DEV] 4.3 when?

2002-12-09 Thread Wez Furlong
Because we are still finding and fixing bugs in the RCs. --Wez. On Mon, 9 Dec 2002, Andi Gutmans wrote: Now that still leave my original question about 4.3. Why the hell aren't we rolling it? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] 4.3 when?

2002-12-09 Thread Wez Furlong
limit crash --Wez. On Mon, 9 Dec 2002, Andi Gutmans wrote: Any idea how many more bugs are waiting to be addressed? Andi At 12:36 PM 12/9/2002 +, Wez Furlong wrote: Because we are still finding and fixing bugs in the RCs. --Wez. On Mon, 9 Dec 2002, Andi Gutmans wrote: Now

Re: [PHP-DEV] OpenSSL wrappers for PHP 4

2002-12-02 Thread Wez Furlong
Sounds great, and sounds like it should be part of ext/openssl and it's up-coming stream implementation (most of the code is in main/network.c ATM). I'd really appreciate your input on making most of your work use the new streams architecture. (which really means that most of those calls will go

Re: [PHP-DEV] Re: Modules/Extensions not in 4.3

2002-11-29 Thread Wez Furlong
IMO, the manual should include all of the maintstream PHP extensions. The reasoning is that if someone downloads the PHP manual, they expect to get the PHP manual and not have to hunt around for docs on extensions X, Y, Z. Remember that one of our goals is to move most of ext/* into PECL, but

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Wez Furlong
On Fri, 29 Nov 2002, Sara Golemon wrote: I'm not so much worried about the user in this case, a few explodes will keep them happy. I'm more worried about the behavior of parse_url being just plain lacking. mailto:[EMAIL PROTECTED]?subject=Bug+20308 should be entitled to everybit as much

[PHP-DEV] Re: Modules/Extensions not in 4.3

2002-11-29 Thread Wez Furlong
Hi Philip, On Fri, 29 Nov 2002, Philip Olson wrote: So mainstream is defined as which are bundled with the PHP4 source, whether it's in PECL or not? Does anyone know or have a list of what will go where and when? Is the install, configure, and use process different for PECL extensions?

Re: [PHP-DEV] PHP 5 - when?

2002-11-27 Thread Wez Furlong
Hi Piotr, The short answer is that it will be ready when it is ready :) We don't have a definite time frame for PHP 5 (we are not 100% sure what features it will contain), and probably won't have a definite time frame until we begin the release cycle (typically a month or more before we release

Re: [PHP-DEV] Concrete suggestion re: i18n messages

2002-11-26 Thread Wez Furlong
If I wanted localized error messages, then this would be the way to do it. Perhaps merging this with the php_error_docref might be slightly better. However, I'm personally -1000 on such things; there are many reasons, most of them have already been raised here, so I won't repeat them now, but

Re: [PHP-DEV] [PATCH 4.3.0] Win32 CoInitalize/CoUninitialize CallMove

2002-11-25 Thread Wez Furlong
+1 Makes very much sense (almost too much sense!) to me. --Wez. On Mon, 25 Nov 2002, Michael Sisolak wrote: While stess testing the recent threading fixes under the ISAPI module I was seeing a lot of instability in IIS after the testing finished. While the PHP pages would continue to load,

Re: [PHP-DEV] ZE2 and classes

2002-11-19 Thread Wez Furlong
php.net/get_defined_functions and php.net/get_class_methods not good enough for you? ;-) What's the long term aim? --Wez. On Tue, 19 Nov 2002, Marcus [iso-8859-1] Börger wrote: I have experimented with the code below. The main thing is to introduce a function that can return a list of all

Re: [PHP-DEV] Mailparse extension

2002-11-19 Thread Wez Furlong
Hi Mike, I'm ironing out a few nasty bugs; I'm aiming to have it stable either in time for 4.3 or very shortly afterwards. (It's not bundled with the core any longer - it's now in PECL) --Wez. On Tue, 19 Nov 2002, Mike Hall wrote: Is this going to be production stable in 4.3.0? Cheers,

Re: [PHP-DEV] getimagesize() broken in HEAD

2002-11-18 Thread Wez Furlong
I just merged some streams fixes back from the branch, so perhaps it was a streams problem after all? --Wez. On Mon, 18 Nov 2002, Marcus [iso-8859-1] Börger wrote: At 11:20 18.11.2002, Derick Rethans wrote: On Mon, 18 Nov 2002, Rasmus Lerdorf wrote: getimagesize() works ok in the 4.3

[PHP-DEV] RE: hebrew patch for jewish calendar

2002-11-18 Thread Wez Furlong
Hey Moshe, Could you resend your revised patch to Tal (and the list)? --Wez. smime.p7s Description: application/pkcs7-signature

Re: [PHP-DEV] XP?

2002-11-17 Thread Wez Furlong
Plus we were using IRC to bounce ideas off each other at the same time :) --Wez. On 11/17/02, Andrei Zmievski [EMAIL PROTECTED] wrote: Who says Xtreme Programming can't work over long distances.. :) iliaa Sat Nov 16 19:07:33 2002 EDT Modified files:

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-13 Thread Wez Furlong
On 11/13/02, Derick Rethans [EMAIL PROTECTED] wrote: On Wed, 13 Nov 2002, Marcus Börger wrote: At 04:11 13.11.2002, Jani Taskinen wrote: Since when have we started to use users as guinea-pigs for testing EXPERIMENTAL extensions without them even really knowing about

[PHP-DEV] Critical? Shutdown issue with nsapi (Bug #20274)

2002-11-12 Thread Wez Furlong
I'm a little concerned about #20274 (running out of file descriptors); I'm not sure of the cause, but I suspect that there is some kind of request shutdown issue with threaded servers. The PR implies that this is a problem with iPlanet under Solaris, but it really would be a good idea to make

[PHP-DEV] [RFC] php-cli: option to ignore php.ini

2002-11-11 Thread Wez Furlong
What are your opinions for having some option to prevent the loading/parsing of php.ini for the CLI version of PHP? -n No Ini File - skips parsing php.ini on startup At the moment, I'm using -c DOESNOTEXIST to achieve the same result, but this is a bit hacky. --Wez. -- PHP

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Wez Furlong
Hi Tony, What kind of things are you planning to do? proc_open seems ideal to extend for this purpose, and works on win32. --Wez. On 09/11/02, Tony Leake [EMAIL PROTECTED] wrote: The whole picture is that i want to control a child process completely from within php. A bit like popen or

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Wez Furlong
I see the known-good codeset conversion implementation as a *very* good reason to have mbstring enabled by default. (Just look at all the problems with iconv and recode on different systems out there). I agree that the magic features for lazy programmers (function overloading and transparent

Re: [PHP-DEV] CVS account request

2002-11-08 Thread Wez Furlong
Hello Sergey, PHP 4.3 will/does have SSL and TLS support integrated into the fopen and fsockopen functions. (see the online manual: http://php.net/fopen and http://php.net/fsockopen). The current implementation requires that the openssl extension is built-in to php (rather than shared), and does

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-07 Thread Wez Furlong
I agree with you that the codeset conversion functions should be there by default (iconv and recode seem to have patchy/variable support on different platforms; mbstring is reliable since we know exactly what is supported in there). I've been using the conversion functions of mbstring in

Re: [PHP-DEV] Please help document headers_sent()

2002-11-06 Thread Wez Furlong
Hi Philip, I think the idea is that you do this: if (headers_sent($file, $line)) { echo headers were sent by $file:$line; } Both $file and $line are optional. --Wez. On 06/11/02, Philip Olson [EMAIL PROTECTED] wrote: Hello- headers_sent() has two new parameters as of PHP 4.3.0, these

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

2002-11-05 Thread Wez Furlong
Hi Marcus, I'm assuming that it's a warning about result being uninitialized; if that is the case, lets just initialize it to zero in it's declaration. The cleanup code in errexit: inspects the first byte of tmp_line before attempting to use it; it might also be a good idea to initialize

Re: [PHP-DEV] [Sorta OT] Mystery zcontext?

2002-11-05 Thread Wez Furlong
Hi John, It's for some funky stuff that won't really come into it's own until version 5 of PHP. ATM, you can use stream_context_XXX family of functions to do: o Set notification callbacks. These can be used to implement progress bars for event driven applications. o Set parameters for the

Re: [PHP-DEV] ODBTP, a possible solution for MS-SQL and other databases

2002-11-03 Thread Wez Furlong
Hi Bob, I'm interested in this becoming more mainstream, although I personally dislike mssql; the only current alternative that works in a similar way is one of the packages that Dan mentioned (I forget which) - it was difficult to configure as it required quite a large amount of fiddling around

Re: [PHP-DEV] Image corruption when retrieving image files from MYSQL database

2002-11-03 Thread Wez Furlong
On 04/11/02, Darren McPhee [EMAIL PROTECTED] wrote: I have spent the last 3 days trying to figure this out. And will probably give up very soon. I have written 2 programs (which are very common PHP Then please spend the extra couple of minutes to read php.net/support.php and find the correct

Re: [PHP-DEV] Variable Functions?

2002-10-31 Thread Wez Furlong
Hi Dan, http://php.net/create_function, and see the ZE2 notes on __call/__get/__set handlers. --Wez. On 10/31/02, Dan Hardiker [EMAIL PROTECTED] wrote: Hi All, Just a thought, but while working reciently with a few ECMA scripting languages (eg: ActionScript in Flash MX), I uncovered the

Re: [PHP-DEV] hebrew patch for jewish calendar

2002-10-30 Thread Wez Furlong
Derick: pine can't handle uuencoded attachments :/ moshe: Your mua appears to be MS Outlook Express; you can avoid these strange problems with attachments by setting it to send base64 encoded MIME attachments instead of uuencoded attachments. As for the patch, can you explain in english what it

[PHP-DEV] Re: [PHP-CVS] Discuss on php-dev, not on php-cvs please

2002-10-29 Thread Wez Furlong
That would be ideal :) On Tue, 29 Oct 2002, Derick Rethans wrote: On Tue, 29 Oct 2002, Wez Furlong wrote: If you need to comment on a commit, can you please change the To/Cc line from php-cvs to php-dev. I think we can instruct the listmanager to set a Reply-To header instead, would

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
On 10/29/02, Marcus B?rger [EMAIL PROTECTED] wrote: -Use // instead of /* ... */ comments Why? #this test fails for me. Very weired... You changed the test. Why not ask me first about it failing? --Wez. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
... The length of the lyrics added by me was only to test whether or not that part of the script works. marcus At 15:25 29.10.2002, Wez Furlong wrote: On 10/29/02, Marcus B?rger [EMAIL PROTECTED] wrote: -Use // instead of /* ... */ comments Why? #this test fails for me. Very

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
On 10/29/02, Marcus Börger [EMAIL PROTECTED] wrote: This test fails with adding --INI-- output_buffering=0 output_handler= zlib.output_compression= implicit_flush=0 Works fine here. and even when removing the three calls to ob_xxx89 Can you email me the output? Also, could you strace it

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
OK, so how about a backtrace ? --Wez. On Tue, 29 Oct 2002, Marcus [iso-8859-1] Börger wrote: At 16:36 29.10.2002, Wez Furlong wrote: Also, could you strace it too? (just to be sure) old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x407d5000 read(3, ...naq

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
) At 19:02 29.10.2002, you wrote: OK, so how about a backtrace ? --Wez. On Tue, 29 Oct 2002, Marcus [iso-8859-1] Börger wrote: At 16:36 29.10.2002, Wez Furlong wrote: Also, could you strace it too? (just to be sure) old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main streams.c

2002-10-27 Thread Wez Furlong
Hey Ilia, Does this prevent opening of things like block and character special files? If yes, then let's change it to explicitly check for directories instead, as there are bound to be people out there that want to open things like /dev/hda1 (for example). --Wez. On 28/10/02, Ilia Alshanetsky

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-27 Thread Wez Furlong
On 28/10/02, Zeev Suraski [EMAIL PROTECTED] wrote: Thank you for the detailed explanation, I'm sure everybody understands it now. Let's go for the voting phase. I vote we keep PHP-CLI with implicit_flush on by default. +1 --Wez. -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] algebra code

2002-10-24 Thread Wez Furlong
Get a math text book that explains gaussian elimination, learn it, then ask your question on php-general. This list is for development of php itself, not writing programs with PHP. --Wez. On 10/24/02, Diana Castillo [EMAIL PROTECTED] wrote: does anyone know where I can get the code to solve

[PHP-DEV] Re: [PATCH] Make mb_convert_case() conform to Unicode Spec

2002-10-23 Thread Wez Furlong
Hi Moriyoshi, The code was taken from the ucdata package; I don't really know anything about the internals at this stage. It is probably best to talk to the ucdata guys - I don't have the URL to hand, but I'm sure you can find them using google. --Wez. On Thu, 24 Oct 2002, Moriyoshi Koizumi

Re: [PHP-DEV] Re: [PATCH] Make mb_convert_case() conform to UnicodeSpec

2002-10-23 Thread Wez Furlong
itself only offers character conversion facilities, not string conversion ones. Is it our job to discuss how to implement those string conversion functions? If you think so, I'll commit it because I might be one of those who know the right way to handle it. Moriyoshi Wez Furlong [EMAIL

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
Hi Tony, There's not much we can tell you about this unless you post the rest of the lines of that function. Perhaps you did not include php.h ? Note: always prefer this: read(fd, buf, sizeof(buf)); to this: read(fd, buf, 1024); The former is immune to buffer overruns if you change the

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
On 10/20/02, Tony Leake [EMAIL PROTECTED] wrote: and now I'm trying to write functions that will read and write from the pipe. So far I have this, it isn't finished as you will see. PHP_FUNCTION(pipe_read) { pipe_r_le_struct *st_pipe_r; zval *read; zval * res; char

  1   2   3   4   5   6   >