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

[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: #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] 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

[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,

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

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] 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-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] 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] 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] 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] 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

[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] 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

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

[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

[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

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:

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] 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-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] 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] 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] 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] 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] 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-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] 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] 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()

[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] 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

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] 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] 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] 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-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] 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

<    1   2   3   4   5   6