Re: [PHP-DEV] compiling PHP_4_3

2003-03-12 Thread Rasmus Lerdorf
Did you actually check out version 4.3? cvs co -r PHP_4_3 php4 Check your CVS/Entries file. You should see the branch name after each file. -Rasmus On Thu, 13 Mar 2003, Corne' Cornelius wrote: > Hi, > > I compiled CLI version of PHP_4_3 this morning and it gave the following: > > php4/main/

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Rasmus Lerdorf
> > We don't lose anything by giving the first two items some > > time to prove their usefullness. On the other hand, it is > > very likely that we will lose useful input, if we implement > > the third item prematurely. > > I disagree. Anyone here can handle replying because we alr

Re: [PHP-DEV] PHP Lists not hiding email address

2003-03-10 Thread Rasmus Lerdorf
On Tue, 11 Mar 2003, Ryan wrote: > Hi, > > I'm getting a lot of spam leading from some of the pages on > zend.com/lists/php-dev/ > > The bug edit pages hide the email address. But the static archives like > http://www.zend.com/lists/php-dev/200110/msg02161.html > don't hide them. > > Could you

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

2003-03-10 Thread Rasmus Lerdorf
> What browser denies you from setting this accept-language thing? > You do have control over it, and it is far more general then > having a cookie in the browser. Which is also not that flexible, > as we would probably only store one language code. Gabor, the problem is that you can't override it

Re: [PHP-DEV] CVS access

2003-03-10 Thread Rasmus Lerdorf
Unless I am missing something, I don't see how this stuff belongs in PHP CVS at all. Could you explain why you think this needs to be in the core language CVS? -Rasmus On Mon, 10 Mar 2003, [iso-8859-2] Ján Šuňavec wrote: > I need CVS access into PHP CVS repository. I have project with code > na

Re: [PHP-DEV] Re: #22527 [Opn->Bgs]: Modulus returned negative value

2003-03-04 Thread Rasmus Lerdorf
On Tue, 4 Mar 2003, Sascha Schumann wrote: > > Well, Perl can lean the other way as well actually. Try this: > > Is there some documentation why the default is as it is? All I could find was this description of the Perl modulus operator: Binary ``%'' computes the modulus of two numbers.

Re: [PHP-DEV] Re: #22527 [Opn->Bgs]: Modulus returned negative value

2003-03-04 Thread Rasmus Lerdorf
> numbers in canonical representation of Z/bZ). I guess perl/python/tcl > ddecided to adhere to the mathematical definition. > > > On Tuesday, March 4, 2003, at 02:37 AM, Rasmus Lerdorf wrote: > > > This is actually an interesting question. Should we be truncating

[PHP-DEV] Re: #22527 [Opn->Bgs]: Modulus returned negative value

2003-03-03 Thread Rasmus Lerdorf
This is actually an interesting question. Should we be truncating towards zero? I'd say yes, but then I tested Perl, Python and Tcl, and they all say that -27 % 7 is 1 which means they truncate towards negative infinity. Too late to change at this point in the game, but perhaps it calls for a mo

[PHP-DEV] Re: [PHP] 'make' PHP4.3.1 returns the use of function`tempnam' isdangerous --- WHY?

2003-03-02 Thread Rasmus Lerdorf
> When I tried to 'make' PHP-4.3.1, it returns warning message and died. I am > using RH8.0 + Apache 2.0.44 It didn't die, that is simply the end of the build. Warnings aren't fatal. (Please do not cc all the lists) -Rasmus -- PHP Development Mailing List To unsubscri

Re: [PHP-DEV] magic_quotes on the environment?

2003-03-02 Thread Rasmus Lerdorf
> I'm not convinced that escaping environment data is the correct thing to > do in the first place, and I would like to change php to not escape env > vars if magic_quotes_gpc is on. Any opinions on this? This changed somewhere along the line then. Originally magic quotes only touched GPC dat

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Rasmus Lerdorf
> Analyzing PHP's routines a bit, it seems that the slowest part of a > "generic" request is populating the special arrays, $_ENV, $_GET, etc. Do you have any profiling evidence of this? Everything I have looked at points squarely at the parts of PHP that requires a system call. Reducing syste

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-28 Thread Rasmus Lerdorf
On Fri, 28 Feb 2003, Andi Gutmans wrote: > At 04:50 PM 2/28/2003 +0100, Sascha Schumann wrote: > > I think that simply adding OnUpdateLong and deprecating > > OnUpdateInt is fine while retaining its current semantics. I > > just don't see any value in changing the meaning of > > O

Re: [PHP-DEV] New extension: netfilter

2003-02-27 Thread Rasmus Lerdorf
On Fri, 28 Feb 2003, Corne' Cornelius wrote: > Can i code a netfilter extension for PHP or don't you guys see the need > for it ? > It could result in some great firewall frontends in PHP Go for it. Assuming the netfilter library is not under the GPL. LGPL is fine. -Rasmus -- PHP Development

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

2003-02-26 Thread Rasmus Lerdorf
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 > >speed it up a tiny little bit. Speeding up the ini scanner might be > >important for th

[PHP-DEV] Flex never-interactive mode

2003-02-26 Thread Rasmus Lerdorf
I think we can add "%option never-interactive" to the ini-scanner lexer to speed it up a tiny little bit. Speeding up the ini scanner might be important for the folks running the cgi version. More importantly, to me anyway, when we know we are not interactive, should we not programmatically set i

Re: [PHP-DEV] Re: Announcement: Next generation ext_skel

2003-02-25 Thread Rasmus Lerdorf
The current one does, so it better... On Wed, 19 Feb 2003, l0t3k wrote: > Hartmut, > will this also generate zend_parse_parameters calls based on prototype ? > > l0t3k > "Hartmut Holzgraefe" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > i've just added the first working

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

2003-02-25 Thread Rasmus Lerdorf
> I'm sure we can eliminate those seeks. Are there any other areas in the > streams code that you can see that could do with a syscall tune-up? Ok, found two more. In _php_stream_fopen() we fstat() the script to be opened: realpath = expand_filepath(filename, NULL TSRMLS_CC); fp = fop

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

2003-02-25 Thread Rasmus Lerdorf
> Admittedly, when opening the file for the first time, we do not need to > seek - so we can avoid it by passing a flag (OR'd with the REPORT_ERRORS > flag). > > I'm sure we can eliminate those seeks. Are there any other areas in the > streams code that you can see that could do with a syscall tu

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

2003-02-24 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Wez Furlong wrote: > 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. (

Re: [PHP-DEV] patch for binary-safe strip_tags()

2003-02-24 Thread Rasmus Lerdorf
Looks fine to me. On Tue, 25 Feb 2003, Moriyoshi Koizumi wrote: > Hi, > > Attached is the patch for binary-safe strip_tags(). > Although it doesn't appear to be harmful anyhow, I think it needs > review since it modifies rather sensitive part. > > Any objections? > > Moriyoshi > > -- PH

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

2003-02-23 Thread Rasmus Lerdorf
> Have you been testing PHP_4_3 from CVS or the actual 4.3.0 release? > You might find the situation slightly better using the latest (I tidied > up some seek related issues the other day). The straces are from PHP_4_3 HEAD as of this morning. I thought originally that these issues were just a ha

[PHP-DEV] extra realpath() found

2003-02-23 Thread Rasmus Lerdorf
Hey Sander, you fixed a problem back in July where you introduced a second realpath() call into the main execute_script() function. I understand what you were trying to achieve, but realpath() is way way too expensive to toss around like that, especially since we already do the realpath on the fop

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Shane Caraveo wrote: > Rasmus Lerdorf wrote: > > So, I am just starting out down the path to figure out why PHP 4.3 has > > gotten so much slower than 4.2. "strace -c" provides the first clue. A > > straight "./configure --enable-inlin

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

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Jim Jagielski wrote: > Rasmus Lerdorf wrote: > > > > Even in 4.2, I think we can optimize it. Assuming chdir() doesn't return > > an error, we shouldn't need that second getpwd() call since we just did > > the chdir() and we should know

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

2003-02-23 Thread Rasmus Lerdorf
A little bit harder to get clean output on this one. The numbers in the <>'s are the times for the system call. Here is a 4.2 hello world request: accept(24, {sin_family=AF_INET, sin_port=htons(57198), sin_addr=inet_addr("10.0.1.254")}}, [16]) = 3 <4.035087> rt_sigaction(SIGUSR1, {SIG_IGN}, {0x

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Stanislav Malyshev wrote: > RL>> So, obviously these opens don't really affect the module version > RL>> since they only happen on startup, but they still don't seem right. > RL>> I understand ./php-cgi.ini, but .//php-cgi.ini and .//php.ini? > RL>> Looks like a missing check

[PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
So, I am just starting out down the path to figure out why PHP 4.3 has gotten so much slower than 4.2. "strace -c" provides the first clue. A straight "./configure --enable-inline-optimization && make" command-line build for 4.2, 4.3 and 5.0 run on a simple hello world script reveals that we have

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

2003-02-21 Thread Rasmus Lerdorf
On Fri, 21 Feb 2003, Ilia A. wrote: > On February 21, 2003 09:38 am, Sascha Schumann wrote: > > > implode) and fclose. However, IMO this wrapper is very useful since it > > > simplifies commonly used code a great deal and even makes it slightly > > > faster since the wrapper is in C rather then in

Re: [PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Greg Donald wrote: > On Tue, 18 Feb 2003, Bruce Miller wrote: > > >Will PHP allow multiple-thread execution? > > PHP4 does not have thread support. Well, except for pear/PECL/threads, of course. -Rasmus -- PHP Development Mailing List To unsubscribe

Re: [PHP-DEV] [PATCH] Apache 2.0 Handler module

2003-02-11 Thread Rasmus Lerdorf
You guys have CVS access, and thus you make the call on what gets accepted or not. There is no higher power here, you guys know the Apache2 stuff better than most. You only start getting pushback if you start changing existing code that might break stuff. -Rasmus On Tue, 11 Feb 2003, Ian Hol

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-28 Thread Rasmus Lerdorf
> Don't you have any FreeBSD kernel hackers in Y!? You could probably > convince/bully one of them to fix it, that's what we always do with ours > here ;-) Turns out that one of the problems is that the standard 0x80 way of doing a syscall is rather slow on the P4 chip. P3 and Athlon chips are

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Rasmus Lerdorf
> I think the best solution to this problem, without breaking functionality, > is to use a cache for realpath() in virtual_file_ex(). > This should solve the performance problems and not effect BC at all. As > TSRM always passes a full path to the realpath() call there, it should > always work.

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Rasmus Lerdorf
> >Another idea would be to try to streamline the normal case for an absolute > >pathname. How about doing a readlink() on it. If that tells us that it > >is a link, then we know there is something funky and we can do a realpath, > >otherwise we just assume it is canonical assuming there are no .

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Rasmus Lerdorf
> The question here is whether it's worthwhile to optimize for > the case where you have 30+ includes per page. Is it that > common? In my particular case just 2 or 3 includes puts me over the top actually. stat() is amazingly slow on freebsd and having 3 includes of files in a dir

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Rasmus Lerdorf
> That said, we could possibly have a fast mode and use fstat() to get some > device information on the open file. I am worried about functionality > though. I'm not sure it's worth breaking. Yes, fstat() is fast. And perhaps it isn't worth breaking functionality across the board, but in my pa

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Rasmus Lerdorf
> Weird. That was totally contrary to the way I remember it working. In > trying to figure out why I remembered incorrectly, I realized the > reason why you (in general) want to resolve the path to a canonical > path is that you can seriously break include_once and require_once if > you dont.

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
> Eliminating realpath for fully qualified paths make sense to me. > > But... don't you Y! guys use php-a? Shouldn't this hide that overhead > completely from you by completely eliminating all the stats on a > require/include after the initial compilation? Or is this just a It doesn't elimi

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
On Sat, 25 Jan 2003, Andi Gutmans wrote: > At 04:32 PM 1/24/2003 -0800, Rasmus Lerdorf wrote: > > > I can't really think of any way of getting around this. include_once() and > > > require_once() are basic language constructs and they require this. > > > &

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
> I can't really think of any way of getting around this. include_once() and > require_once() are basic language constructs and they require this. Well, they require us to be able to uniquely identify a file, they do not necessarily require us to know the canonical filename. This could be done

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
> >As for numbers, I basically doubled the req/sec rate of a box by > >eliminating a bunch of system calls caused by include_path and > >open_basedir stat'ing, so in my particular situation here eliminating as > >many syscalls as I can is having a direct effect. > > What OS are you running on? Are

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
On Sat, 25 Jan 2003, Sascha Schumann wrote: > > files list. It's handy and nice to normalize the path here, but it is > > really really expensive! > > ..only on systems with ultra slow syscall setup procedures > (e.g. Solaris) or lack of directory cache. > > > Due to our current impleme

[PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Rasmus Lerdorf
Take this script: So, a simple include with an absolute pathname to avoid any include_path searching and all safe_mode and open_basedir checking turned off. The latter of course being an absolute killer. We still need a lot of system calls to handle this include: getcwd("/home/rasmus", 40

Re: [PHP-DEV] roadmap of PHP - where? PHP 5 - when?

2003-01-23 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, Zeev Suraski wrote: > Ok, I can't be bothered to fight a mailing list that was supposed to trim > down endless discussions. I'm not the one that asked for the list, but I > definitely supported it, as unlike most of the members on this list, I > remember the pre-v4 days, and

RE: [PHP-DEV] roadmap of PHP - where? PHP 5 - when?

2003-01-23 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, John Coggeshall wrote: > The reason I ask is that Shane Caraveo and I were working on the thread > saftey issue, but we couldn't talk about it because we weren't invited > to the PHP5-DEV list I had nothing to do with that limited php5 list. I thought that was completely bog

Re: [PHP-DEV] roadmap of PHP - where? PHP 5 - when?

2003-01-23 Thread Rasmus Lerdorf
> I would like to know in advance when PHP 5 will be released. So would we. We have no idea. Sometime in the next 4-18 months. How's that? > Can I find a sort of "roadmap" somewhere? We are well past the roadmap and into the TODO stage now. Our trusted secretary, Sebastian, has been maint

Re: [PHP-DEV] request data filter

2003-01-16 Thread Rasmus Lerdorf
>I cannot agree more. There is only so much you can do outside >the PHP (as I do in mod_security). I've finished the code. I'll run it through its paces here and commit it soon. -Rasmus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/un

Re: [PHP-DEV] 4.3.1 (was: [PHP-CVS] cvs: php4(PHP_4_3) /main SAPI.h)

2003-01-15 Thread Rasmus Lerdorf
> > Who said that we're not going to release a 4.3.1 or 4.3.n? I'm just not > > favoring new code going into the PHP_4_3 branch, but only bugfixes. I'd > > like to see new functionality going into HEAD, for PHP 5. > > You might favor that, but I don't pretend that PHP 5.x will > become use

Re: [PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
> You could have your custom C extension be called as one of the hooks. I suppose I could munge with the apache tables directly in a hook before the data is read by the standard treat_data hook, although for post data I am not sure I have any way to get in there before the ap_get_client_block() ca

Re: [PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
On Wed, 15 Jan 2003, George Schlossnagle wrote: > You consider running the apache_hooks code? This should be simple > there. You mean do the filtering straight from a PHP script that gets called from a hook? That's a lot of looping through a bunch of arrays. This has to happen on every requ

[PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
In trying to implement a security policy I need to pass all user-supplied data (GET/POST/Cookie) through a filter function which implements this security. This isn't all that hard to implement as an extension through new 4.3 treat_data and post_handler hooks, however it gets messy when you throw m

Re: [PHP-DEV] variables_order annoyance

2003-01-14 Thread Rasmus Lerdorf
> Check out this bug report: > > http://bugs.php.net/16155 Ah thanks, that's where I remember the discussion from. I do disagree with one part: (c) It shouldn't be possible to prevent $_GET, $_POST, $_COOKIE, and $_FILES from being populated. Why in the world not? I explicitly ne

[PHP-DEV] variables_order annoyance

2003-01-13 Thread Rasmus Lerdorf
Guys, I think this was brought up before, and I somehow had the impression that we fixed it, but we didn't. Currently if variables_order does not contain a certain type then that type will not be populated in the $_FOO superglobal. So, if you set variables_order = "GP" because you only want Get a

RE: [PHP-DEV] Re: [PHP-WIN] PHP 4.3.0 no gif support?

2003-01-06 Thread Rasmus Lerdorf
ribasic [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 05, 2003 5:59 PM > To: Brian Weil; Rasmus Lerdorf > Cc: PHP developer list > Subject: Re: [PHP-DEV] Re: [PHP-WIN] PHP 4.3.0 no gif support? > > > Hello, > > Read-only GIF support has now been enabled in the windows v

Re: [PHP-DEV] new database extension

2003-01-03 Thread Rasmus Lerdorf
All the extensions are under ext/ Those two specifically are ext/pgsql and ext/oci8 On Fri, 3 Jan 2003, Chandler, Jacob R wrote: > I want to write a new extension specific to the MIMER database > (www.mimer.com). This will be similar to the extensions for PostgreSQL, > Oracle, etc. and will allo

[PHP-DEV] Re: [PHP-WIN] PHP 4.3.0 no gif support?

2003-01-03 Thread Rasmus Lerdorf
Hrm.. Whoever built the Windows binary didn't define HAVE_GD_GIF_READ I guess. Or perhaps it should go into main/config.w32.h.in assuming we are always going to build the windows binary against the bundled gd library. -Rasmus On Fri, 3 Jan 2003, Zac Barton wrote: > hi all, i thought php 4.3 wa

Re: [PHP-DEV] ZE2 + php 4.4.0

2003-01-03 Thread Rasmus Lerdorf
If it was stable we would release it. So no, stick with the released code. -Rasmus On Fri, 3 Jan 2003, Tularis wrote: > would this combination be considered 'stable enough' to use (win32) in a > small test environement? Or should I just use ZE1 + php4.3 > > > -- > PHP Development Mailing List <

Re: [PHP-DEV] Update: Quoting behaviour exposed

2002-12-28 Thread Rasmus Lerdorf
Sascha, we need to give you something constructive to work on... -Rasmus (top-posted with lots of quoted text just for you) On Sat, 28 Dec 2002, Sascha Schumann wrote: > After looking at a few messages again, I noticed that my > script also considered signatures (personal and the mailing

Re: [PHP-DEV] option to start in PHP mode

2002-12-27 Thread Rasmus Lerdorf
We do already have -r, but I haven't changed my mind on this one either. Why introduce 2 different kinds of PHP files? On Fri, 27 Dec 2002, Andi Gutmans wrote: > I don't think it's beneficial to PHP to have two modes especially as the > cli more you're talking about would support ?> followed by a

[PHP-DEV] Re: [PHP] XML-Presentationsystem from the Conf2002

2002-12-27 Thread Rasmus Lerdorf
Check it out of cvs. It is in the pres2 directory. On Fri, 27 Dec 2002, Tobias Schlitt wrote: > Hi folks! > > I saw the nice-looking presentationsystem, written in PHP and using XML, on > the PHP-Conference this year. I liked that very much and think it's must for > every PHP-related presentatio

Re: [PHP-DEV] $scalar{index} syntax

2002-12-10 Thread Rasmus Lerdorf
You mean $string{2} ? That's the more correct way to do $string[2] to make it clear that it is a character offset. This has been supported for years and will not go away. -Rasmus On Tue, 10 Dec 2002, Brad Bulger wrote: > > trying to fix bugs in some PEAR code, i noticed the person used a way >

Re: [PHP-DEV] Java extension fixes

2002-11-24 Thread Rasmus Lerdorf
Not that I know much about JVM's, but your patches look reasonable to me. Go to php.net/php-cvs.php and fill in the little form to get a CVS account and you can commit these changes yourself. -Rasmus On Mon, 25 Nov 2002, Tony J. White wrote: > > I'm made a stability fix to the PHP Java extension

Re: [PHP-DEV] Patch for gd.c

2002-11-22 Thread Rasmus Lerdorf
I have committed this, sort of anyway. I moved the check up as there is really no reason to go through and even try to do the deallocate on a truecolour image. -Rasmus On Sat, 23 Nov 2002, Moriyoshi Koizumi wrote: > Hi, > > This tiny patch prevents the warnings when applying imagecolordeallocat

Re: [PHP-DEV] apache_hooks

2002-11-19 Thread Rasmus Lerdorf
Apache_hooks is an Apache 1.3 SAPI module which lets you execute PHP code at every stage of the Apache request handling cycle instead of just the content handling hook that the normal apache sapi module uses. It was a super experimental thing I put together ages ago that George and Lukas have now

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

2002-11-18 Thread Rasmus Lerdorf
, Marcus Börger wrote: > Fixed. > Are you on a online book or where does the image come from? > > marcus > > At 16:23 18.11.2002, Rasmus Lerdorf wrote: > >Try grabbing this image: lerdorf.com/serverside.png > >And do a getimagesize() on it. I am getting a negative value fo

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

2002-11-18 Thread Rasmus Lerdorf
Try grabbing this image: lerdorf.com/serverside.png And do a getimagesize() on it. I am getting a negative value for the width. -Rasmus On Mon, 18 Nov 2002, Marcus Börger wrote: > At 11:20 18.11.2002, Derick Rethans wrote: > >On Mon, 18 Nov 2002, Rasmus Lerdorf wrote: > > >

[PHP-DEV] getimagesize() broken in HEAD

2002-11-18 Thread Rasmus Lerdorf
getimagesize() works ok in the 4.3 branch, but in HEAD it is returning weird data. streams problem? too tired to track it down right now. -Rasmus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] error handling

2002-11-18 Thread Rasmus Lerdorf
Well, I certainly don't want errors handled this way for my web apps. And you would be hard pressed to find 2 people on this list that agree exactly how to do it which is why PHP provides you with the tools to do it any way you want. -Rasmus On Mon, 18 Nov 2002, Mattia wrote: > I think in a mod

Re: [PHP-DEV] Re: #20461 [Opn->Bgs]: Unable to access $PHP_AUTH_USERor $PHP_AUTH_PW

2002-11-17 Thread Rasmus Lerdorf
> > But why do you assume that the documentation was right and the code was > > wrong and not the other way around? > > Because it was working like documented before. (When the documentation > was written). Anyway, not sure what to do with this one... I don't have the energy to do a cvs check, but

Re: [PHP-DEV] Re: #20461 [Opn->Bgs]: Unable to access $PHP_AUTH_USERor $PHP_AUTH_PW

2002-11-17 Thread Rasmus Lerdorf
On Mon, 18 Nov 2002, Derick Rethans wrote: > On Sun, 17 Nov 2002, Rasmus Lerdorf wrote: > > > I'm still not overly convinced that this isn't a restriction that should > > only kick in when safe_mode or open_basedir is active. This change is > > going to

[PHP-DEV] Re: #20461 [Opn->Bgs]: Unable to access $PHP_AUTH_USER or $PHP_AUTH_PW

2002-11-17 Thread Rasmus Lerdorf
I'm still not overly convinced that this isn't a restriction that should only kick in when safe_mode or open_basedir is active. This change is going to break working code and it is not a security fix on non-shared servers. -Rasmus On 18 Nov 2002 [EMAIL PROTECTED] wrote: > ID: 204

Re: [PHP-DEV] PHP and Threading

2002-11-15 Thread Rasmus Lerdorf
Nope, that is unlikely to happen. The way to do this correctly is with a socket_select() anyway. -Rasmus On Thu, 14 Nov 2002, Arjen Brouwer wrote: > Hi, > > I was wondering, is PHP in future going to support threading? This would be > a very nice feature. > I'am currently working on this projec

[PHP-DEV] Re: #20441 [Opn->Bgs]: PHP_AUTH_USER isn't set

2002-11-15 Thread Rasmus Lerdorf
That's not true. At least the "From the beginning of time" part. This used to be a restriction, then it was lost, now it is back. You can go scour cvs for the exact versions affected. I am personally not entirely happy about this change either. It is definitely a security issue for shared serv

Re: [PHP-DEV] strpos() suggestion

2002-11-13 Thread Rasmus Lerdorf
The reason the functions are the way they are is because they directly mirror the underlying C functions. strrpos() calls strrchr() directly. But yes, some sort of new php_memnstr() based string searcher could probably be written. -Rasmus On 13 Nov 2002, Monte Ohrt wrote: > Hi, > > I had a litt

[PHP-DEV] #20374 [NEW]: Performance enhancment for php_mysql_do_connect. (fwd)

2002-11-11 Thread Rasmus Lerdorf
Seems like a good idea to me. Any volunteers? Zak? -- Forwarded message -- Date: 11 Nov 2002 23:45:38 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: #20374 [NEW]: Performance enhancment for php_mysql_do_connect. From: [EMAIL PROTECTED] Operating system:

RE: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-11 Thread Rasmus Lerdorf
Linux On Mon, 11 Nov 2002, Dave Viner wrote: > is that on win32? or linux ? > > -Original Message- > From: Rasmus Lerdorf [mailto:rasmus@;php.net] > Sent: Friday, November 08, 2002 5:01 PM > To: Dave Viner > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] bis

Re: [PHP-DEV] Re: apache_hooks

2002-11-10 Thread Rasmus Lerdorf
se to ifdef > the changes in main and create a new SAPI module for this. I bend to > the majority though. :) > > > On Sunday, November 3, 2002, at 03:49 AM, Rasmus Lerdorf wrote: > > > Well, since 99% of the code is the same, I'd be worried about people > > remembe

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Rasmus Lerdorf
Hrm.. Ok, actually Hartmut changed this recently. See: http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u It works when you turn on always_populate_raw_post_data, right? -Rasmus On Sun, 10 Nov 2002, Kjartan Mannes wrote: > Using telnet and raw http > > REQU

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Rasmus Lerdorf
Yes, it has to be a POST request for there to be post data and $HTTP_RAW_POST_DATA is populated if the mime type of the data is unrecoginized or if always_populate_raw_post_data is on. On Sat, 9 Nov 2002, Kjartan Mannes wrote: > Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote: > >

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Rasmus Lerdorf
Yup, you will need to FREE_ZVAL() it On 9 Nov 2002, Tony Leake wrote: > > Hi, > > I am getting the following output from a php script that calls an > extension I am writing (I have compiled the extension with > --enable-debug) > > > /home/phpcvs/php4_head/ext/pipe/pipe.c(245) : Freeing 0x0822568

Re: [PHP-DEV] bison error [was: PHP 4.3.0]

2002-11-08 Thread Rasmus Lerdorf
I'm not seeing any problems with bison-1.75 here. On Fri, 8 Nov 2002, Dave Viner wrote: > here's the message i posted to [EMAIL PROTECTED] for more help in the bison > problem. > > http://www.geocrawler.com/lists/3/GNU/350/0/10107563/ > > I'm not good enough with bison to understand why it produc

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-08 Thread Rasmus Lerdorf
Do you think strlen() is actually called that often? And isn't it a relatively quick function as it is? Just seems like you are optimizing a function that isn't actually called that often and when it is called having a 25% speedup on a function that takes a tiny fraction of the overall execution

Re: [PHP-DEV] CVS Account Request: mrioux

2002-11-05 Thread Rasmus Lerdorf
libsmbclient is gpl'ed, correct? We cannot accept extensions that are written specifically against a single GPL'ed library. Sorry. -Rasmus On 5 Nov 2002, Martial Rioux wrote: > Hi, > I Request CVS account to contribute a new extension base on smbclient from SAMBA. >This extension is actualy l

Re: [PHP-DEV] MySQL UDF that runs PHP

2002-11-05 Thread Rasmus Lerdorf
Cool - will play with it a bit here. On Tue, 5 Nov 2002, David Sklar wrote: > Based on Edin Kadribasic's PHP "embed" SAPI module, I wrote a MySQL UDF that > interprets PHP. You can get it here: > > --> http://www.sklar.com/myphp-0.1.tar.gz > > I'd be curious for any comments or suggestions folks

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

2002-11-03 Thread Rasmus Lerdorf
> So far 3 people have shown interest in ODBTP, however, it is the weekend. I > am currently working on packaging it in a tar.gz file. If the response is > low I will only release it to those who have shown an interest, and if it > becomes higher than I will release it to the list. It is very im

[PHP-DEV] Re: apache_hooks

2002-11-03 Thread Rasmus Lerdorf
> > George > > On Saturday, November 2, 2002, at 05:58 PM, Rasmus Lerdorf wrote: > > > What do you think would be the best way to make the apache_hooks code > > more > > accessible to people? A tarball with the relevant files that overwrites > > the standard

[PHP-DEV] apache_hooks

2002-11-02 Thread Rasmus Lerdorf
What do you think would be the best way to make the apache_hooks code more accessible to people? A tarball with the relevant files that overwrites the standard files, or perhaps it is time to #ifdef it into the main branch? -Rasmus -- PHP Development Mailing List To unsub

Re: [PHP-DEV] Console Behavior

2002-10-31 Thread Rasmus Lerdorf
the manual seems to suggest this > is the way to use it: > > #!/usr/local/php_4.2.3/bin/php -q > > error_reporting(E_ALL); > > echo "\n\nAttach code? > "; > > flush(); > > $f = fopen("php://stdin","r"); > $data = fread($f,5); >

Re: [PHP-DEV] Console Behavior

2002-10-31 Thread Rasmus Lerdorf
flush() On 31 Oct 2002, Adam Voigt wrote: > Is this normal? > I have: > > #!/usr/local/php_4.2.3/bin/php -q > > error_reporting(E_ALL); > > echo "\n\nAttach code? > "; > > $f = fopen("php://stdin","r"); > $data = fread($f,5); > fclose($f); > > echo "\n\n$data\n\n"; > > ?> > > And it refuses to e

RE: [PHP-DEV] php/ext/xslt and TSRM

2002-10-30 Thread Rasmus Lerdorf
Well, in the threaded case you avoid a rather expensive ts_resource_ex() function call, so what you gain is performance. Functionality should be the same. -Rasmus On Wed, 30 Oct 2002, David Viner wrote: > perhaps i'm a bit slow... what is the gain by moving the TSRMLS_FETCH() from > functions t

Re: [PHP-DEV] Re: cvs: php4 / Makefile.global

2002-10-30 Thread Rasmus Lerdorf
> This is just another example why we should use certain ini. > I think we agreed to use certain php.ini, such as php.ini-test. > Not setting one by one. There was no such agreement. In fact, for proper testing each test should explicitly define which ini settings it depends on so that we can tes

Re: [PHP-DEV] Karma for php4 and bcompiler

2002-10-29 Thread Rasmus Lerdorf
I'll add the pear karma once I figure out which of his 2 cvs accounts he uses. On Wed, 30 Oct 2002, Alan Knowles wrote: > Ernani helped out with bcompiler - so karma on that is ok. > > I think for php4 you will have to send patches to php-dev for the time > being. until they get used to you :) >

Re: [PHP-DEV] Re: Forked ext/gd by default

2002-10-21 Thread Rasmus Lerdorf
Whoa, pigs are flying over the skating rink in hell. Anybody have some time to go over this and sync things up? On Mon, 21 Oct 2002, Peter Neuman wrote: > Hello, > > "Andrei Zmievski" <[EMAIL PROTECTED]>: > > I think we should use forked version of gd library by default for 4.3.0. > > From what

Re: [PHP-DEV] php_value vs. php_admin_value

2002-10-21 Thread Rasmus Lerdorf
admin directives can only be used in the httpd.conf file. Non-admins can be used in both httpd.conf and .htaccess. ie. directives that end-users should not be able to change themselves should be admin ones. -Rasmus On Mon, 21 Oct 2002, Jani Taskinen wrote: > > Can someone explain what the

Re: [PHP-DEV] Idea to extend language: Explicitly setting variablescope inside user defined function (longer)

2002-10-20 Thread Rasmus Lerdorf
How in the world do you know that "code will run faster" ? Implementing your suggestion would take quite a lot of changes to the internals of PHP. Instead of just a global and a current symbol table, we would now need basically an unlimited number of symbol tables and every variable lookup would

Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-20 Thread Rasmus Lerdorf
As in any Apache mod_auth module. On Sun, 20 Oct 2002, Martin Jansen wrote: > On Sat Oct 19, 2002 at 11:0608AM -0700, Rasmus Lerdorf wrote: > > You probably have an external auth module operating on the same request. > > I don't think so. Could you perhaps be a bit more ver

Re: [PHP-DEV] PHP_AUTH_(USER|PW) not set

2002-10-19 Thread Rasmus Lerdorf
You probably have an external auth module operating on the same request. On Sat, 19 Oct 2002, Martin Jansen wrote: > The following script fails with the todays snapshot and with PHP > 4.3.0-pre1: > > if (!isset($PHP_AUTH_USER)) { > header("WWW-Authenticate: Basic realm=\"Foobar\""); > he

Re: [PHP-DEV] duplicate string, no dupe, ?

2002-10-18 Thread Rasmus Lerdorf
On Fri, 18 Oct 2002, Rasmus Lerdorf wrote: > I'm trying to optimize some code for an *extremely* busy site. This site > has a bunch of data in shared memory to make it available across all the > httpd's. I need to provide this data in the form of arrays to user-space > PH

[PHP-DEV] duplicate string, no dupe, ?

2002-10-18 Thread Rasmus Lerdorf
I'm trying to optimize some code for an *extremely* busy site. This site has a bunch of data in shared memory to make it available across all the httpd's. I need to provide this data in the form of arrays to user-space PHP through an extension obviously. Rather trivial to do, but my problem is t

Re: [PHP-DEV] short_open_tag

2002-10-18 Thread Rasmus Lerdorf
On Fri, 18 Oct 2002, Andi Gutmans wrote: > At 01:09 AM 10/18/2002 +0200, Zeev Suraski wrote: > >At 18:49 17/10/2002, Rasmus Lerdorf wrote: > >> has whitespace. > > > >And I personally think it's a bit pushing it. How likely is it for > >someone to have

Re: [PHP-DEV] short_open_tag

2002-10-18 Thread Rasmus Lerdorf
> On Thu, Oct 17, 2002 at 09:43:02AM -0700, Rasmus Lerdorf wrote: > > My main worry with such a hack would be breaking a script like this: > > > >> function xml() { > > echo "Hello World"; > > } > > ?> > > ... &g

  1   2   3   4   5   6   7   8   9   >