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
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
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
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
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
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]
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
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
% 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
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
#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.
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
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,
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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:
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).
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)
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)
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
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
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
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%
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
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
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
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
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
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
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
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()
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
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
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
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
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
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
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
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
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
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
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
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
501 - 557 of 557 matches
Mail list logo