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:

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Rasmus Lerdorf
e doing so someone has to volunteer to track how it is working currently so we have a sense of whether it works at all and under which circumstances it falls over. Blindly enabling what may or may not be a shaky solution on something as important as php-dev is a very bad idea. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-03-10 Thread Rasmus Lerdorf
n't hide them. > > Could you fix this? Why in the world are you posting this to php-dev? That is a matter for [EMAIL PROTECTED] and has nothing to do with the PHP project. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-03-10 Thread Rasmus Lerdorf
n't override it. If you are unlucky enough to be speaking a language for which the PHP documentation is crappy, but you still want to set your accept-language to that language for use on other sites, then you are out of luck on php.net. -Rasmus -- PHP Development Mailing List <htt

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 w

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

2003-03-04 Thread Rasmus Lerdorf
r equal to zero). Note than when use integer is in scope, ``%'' give you direct access to the modulus operator as implemented by your C compiler. This operator is not as well defined for negative operands, but it will execute faster. -Rasmus -- PHP Development Mailing List <

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

2003-03-04 Thread Rasmus Lerdorf
think you also have to expect -27%7 to return -6. -Rasmus On Tue, 4 Mar 2003, George Schlossnagle wrote: > Interesting. > > I don't know what the ISO standard say, but mathematically a a % b will > always return you an integer 0 <= a%b < b (since there are no negative

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

2003-03-03 Thread Rasmus Lerdorf
for a modulus() function which leans the other way? -Rasmus On Mon, 4 Mar 2003 [EMAIL PROTECTED] wrote: > ID: 22527 > Updated by: [EMAIL PROTECTED] > Reported By: jaypedhskr at aol dot com > -Status: Open > +Status: Bogus > Bug Typ

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

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

2003-03-02 Thread Rasmus Lerdorf
y touched GPC data. I never noticed it also did it to the environment and I'd consider that to be a bug. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Rasmus Lerdorf
ystem call. Reducing system calls gives you a lot more bang for the buck than optimizing elsewhere. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-02-28 Thread Rasmus Lerdorf
> followed via php-cvs? You can't really, but at least their extensions won't compile in future PHP versions and they will be forced to go and address the issue as opposed to continuing to propogate extensions that aren't 64-bit friendly. If we could force a compiler warning/er

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

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
ically set is_interactive to false for the language scanner as well? I did this here and the ioctl syscalls that come from the isatty() calls in the lexer dropped away speeding things up nicely. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: ht

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
_language_scanner.c:5193 #7 0x20401814 in zendlex (zendlval=0x9fbfd76c) at /homes/rasmus/php4/Zend/zend_compile.c:2459 #8 0x203f38e8 in zendparse () at /home/y/share/bison.simple:432 #9 0x203f6685 in compile_file (file_handle=0x9fbff758, type=2) at /homes/rasmus/php4/Zend/zend_language_s

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

2003-02-25 Thread Rasmus Lerdorf
s actually mesurably faster to do manual multiple include prevention with a PHP-level flag. The _once stuff was added distinctly to prevent that kind of ugly code, but we stuffed it up. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-02-24 Thread Rasmus Lerdorf
second one: #0 0x202e6c0f in lseek () from /usr/lib/libc.so.4 #1 0x203ef154 in php_stdiop_seek (stream=0xd640c, offset=0, whence=0, newoffset=0x9fbfdcbc) at /homes/rasmus/php4/main/streams.c:1493 #2 0x203ef868 in _php_stream_cast (stream=0xd640c, castas=-1073741824, ret=0x9fbfdcf0, show_

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
eliminate that one getcwd() call that was also in 4.2, perhaps we can get back to being on par. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] extra realpath() found

2003-02-23 Thread Rasmus Lerdorf
add the path to the included_files list at that point instead? Let me know if you feel like playing with it, otherwise I will. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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
se(4)= 0 <0.10> munmap(0x402ba000, 4096)= 0 <0.13> I don't understand that ioctl() there, but otherwise it looks fine. In 4.3 we have: _llseek(4, 0, [0], SEEK_CUR)= 0 <0.09> lseek(4, 0, SEEK_SET) = 0 <0.09> brk(0) = 0x81a8000 <0.08> brk(0x81a9000) = 0x81a9000 <0.11> ioctl(4, SNDCTL_TMR_TIMEBASE, 0xbfffd190) = -1 ENOTTY (Inappropriate ioctl for device) <0.09> brk(0) = 0x81a9000 <0.07> brk(0x81aa000) = 0x81aa000 <0.09> read(4, "\n\n read(4, "", 4096) = 0 <0.08> read(4, "", 8192) = 0 <0.09> ioctl(4, SNDCTL_TMR_TIMEBASE, 0xbfffc150) = -1 ENOTTY (Inappropriate ioctl for device) <0.08> close(4)= 0 <0.10> munmap(0x402ba000, 4096)= 0 <0.14> I really don't understand the SEEK_CUR there. We're seeking forward 0 bytes from the current location followed directly by a SEEK_SET back to 0? Is this streams overhead or something? Wez? >From there on the requests are similar. The alarm(0) calls right after alarm(300) could probably be skipped in both cases. Anyway, I will go after all these extra lstat/fstat calls and fix that, but I would appreciate some help with the setitimer() and weird seeking stuff. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
d allocation a > number of small objects with the same size should generate less brk's then > allocating small ones first and then large one). The script I tested was simply: Hopefully executing this should not have caused a big change in memory usage between 4.2 and 4.3. -

[PHP-DEV] Performance degradation

2003-02-23 Thread Rasmus Lerdorf
e call is a bit odd. In 4.2: write(1, "X-Powered-By: PHP/4.2.4-dev", 27X-Powered-By: PHP/4.2.4-dev) = 27 <0.09> write(1, "\r\n", 2 write(1, "Content-type: text/html", 23Content-type: text/html) = 23 <0.08> write(1, "\r\n", 2 write(1, "\r\n

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

2003-02-21 Thread Rasmus Lerdorf
); fclose(). Now, as Sascha said, if file_put_contents() was actually smart and was able to atomically create a file with the given contents and handle common error conditions intelligently, then I am all for it. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

2003-01-28 Thread Rasmus Lerdorf
de those things for the extra 40-50 req/sec this is likely to give me. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-25 Thread Rasmus Lerdorf
gt; always work. Perhaps make it configurable because on Linux there already is a dcache right in the kernel which is likely to be faster than anything we can do. As far as I know, Linux is the only OS with such a kernel-level cache. -Rasmus -- PHP Development Mailing List <http:

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

2003-01-25 Thread Rasmus Lerdorf
ong. I'm not quite sure of the semantics of readlink(). You are right. Somehow I had it in my head that readlink() would catch any part of the path being a link. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-25 Thread Rasmus Lerdorf
And if open_basedir is also enabled you might as well go for a coffee while you wait through some 80+ syscalls for every include. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-25 Thread Rasmus Lerdorf
() as well. Or, the really straightforward dumbass solution, have some hint we can pass along that tells the parser to treat what follows as a canonical filename. include "\001/home/rasmus/foo/u2.inc"; A bit too hacky I guess. Perhaps something like: include_canonical "/home/rasmus/fo

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

2003-01-25 Thread Rasmus Lerdorf
l case. 100,000 realpath() calls on Linux on file /home/rasmus/foo/u2.inc: real0m1.286s user0m0.190s sys 0m1.030s 100,000 stat() calls on Linux on file /home/rasmus/foo/u2.inc: real0m0.421s user0m0.070s sys 0m0.290s The deeper the directory hierachy, the larger the differ

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

2003-01-24 Thread Rasmus Lerdorf
this just a It doesn't eliminate it at all, no. These checks are still done even on accelerated includes in both zend cache and ioncube. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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
uld be done in a single stat where we grab the device number and inode. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-24 Thread Rasmus Lerdorf
t; > What OS are you running on? Are you running over NFS? FreeBSD and no. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-24 Thread Rasmus Lerdorf
that stuff, but I think it is also something we should look at in general for PHP. 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 s

[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/r

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

2003-01-23 Thread Rasmus Lerdorf
ith that is playing with fire. I believe we can get work done on php-dev, especially if people can hold back on replying to trolls. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-23 Thread Rasmus Lerdorf
that was completely bogus myself and argued against it. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-23 Thread Rasmus Lerdorf
you it is pure speculation and you can add or subtract 6 months to/from the answer you get. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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 <http://www.php.net/> To unsubscribe, vis

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

2003-01-15 Thread Rasmus Lerdorf
dered a new feature that I really can't wait for PHP 5 for. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
back to you. Shopping carts that ask for your name and phone number, or half of php.net's own stuff. Stick a bit of javascript in your phone number and watch. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
en on every request on the busiest site in the world; it needs to be written in C. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] request data filter

2003-01-15 Thread Rasmus Lerdorf
t has already been registered by mbstring's treat_data/post_handler hooks. That's a big mess! -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] variables_order annoyance

2003-01-14 Thread Rasmus Lerdorf
dering priority and superglobal array population. Before register_globals it made sense to just have one setting for this as you couldn't have one without the other, but today it doesn't make sense anymore. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] variables_order annoyance

2003-01-13 Thread Rasmus Lerdorf
u only want Get and Post data in your $_REQUEST array, perhaps, and you have register_globals off, then $_COOKIE, $_ENV, $_SERVER will not be populated. This is a pain in the ass! The two concepts should be separate. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To uns

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

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

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 a

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

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

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

Re: [PHP-DEV] apache_hooks

2002-11-19 Thread Rasmus Lerdorf
cleaned up/rewritten to be much more efficient and complete. -Rasmus On Tue, 19 Nov 2002, Stanislav Malyshev wrote: > What is apache_hooks SAPI module? It looks like it produces errors in > my build... And no docs there. What's that? > > -- > Stanislav Malyshev, Zend Produc

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

2002-11-18 Thread Rasmus Lerdorf
It is one I created for a presentation. Just about to give a tutorial at Apachecon here in Vegas and the slide with this image on it was broken because of this bug. I swear that my 100-slide PHP talk is one of the best regression test cases we have for PHP. ;) -Rasmus On Mon, 18 Nov 2002

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 <http://www.php.net/> 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 th

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

2002-11-17 Thread Rasmus Lerdorf
e energy to do a cvs check, but I remember adding this restriction years ago (php2 days) and then removing it (by commenting out the check) ages ago as well. I'm not sure PHP4 ever had this check turned on (the commented out check was ported to php4), so the documentation has not reflected realit

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

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 curre

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

2002-11-15 Thread Rasmus Lerdorf
ssue for shared server environments, and as such perhaps the restriction should only be triggered when safe-mode is on. -Rasmus On Fri, 15 Nov 2002, Edin Kadribasic wrote: > Well actually you could. From the beginning of time up to 4.3.0. I > expect to see a lot of bug reports similar

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

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

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Rasmus Lerdorf
ote: > > is $HTTP_RAW_POST_DATA only filled if REQUEST_TYPE is set to POST? > > even if 'always_populate_raw_post_data = On'? does anyone have a short > > info on this? rasmus maybe? > > I to would like know when $HTTP_RAW_POST_DATA is supposed to be set. I > rece

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
execution time isn't going to be noticeable. I wouldn't be against perhaps opcoding some functions, just not sure strlen() would be my first candidate. -Rasmus On Fri, 8 Nov 2002, Andrei Zmievski wrote: > I've made a small patch that turns strlen() into a statement executed

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 e

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
em, you are going to get traction. People will start contributing patches and probably extensions for other scripting languages. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[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 <http://www.php.net/&

Re: [PHP-DEV] Console Behavior

2002-10-31 Thread Rasmus Lerdorf
Running your code here gives me: 8:27am thinkpad:~> ./foo Attach code? > 12345 12345 8:27am thinkpad:~> Seems to work fine. -Rasmus On 31 Oct 2002, Adam Voigt wrote: > Now I have this, same behavior as before, maybe I'm using the flush > function incorrectly but

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 >

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

2002-10-30 Thread Rasmus Lerdorf
at we can test for bugs caused by unintended ini setting side-effects. By limiting all tests to run with a known ini environment we are not performing a real-world test. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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 wh

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

2002-10-20 Thread Rasmus Lerdorf
okup would become more complex. Ergo it would slow things down. -Rasmus On Mon, 21 Oct 2002, NTPT wrote: > Hi. > I have some idea and suggestion how to extend PHP language a bit in some > way. That may probably lead to increasing of php flexibility, allow more > modular coding to be

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
set it to be an array but provide my own DTOR function which will not free these pointers? -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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