Re: [PHP-DEV] sqlite temp directory

2004-09-05 Thread Derick Rethans
On Sun, 5 Sep 2004, Michael Spector wrote: > It looks like libsqlite uses global variable 'sqlite_temp_directory' > for storing the path to temporary directory. It would be very useful, > if there was a PHP.ini entry named like: "sqlite.temp_directory" setting this > variable, since there are case

[PHP-DEV] Re: unserialize() data from untrusted source

2004-09-05 Thread Sara Golemon
> Have a situation where I want to unserialize a string received from an > untrusted source over HTTP (a Javascript client in this case). For > basic types this is no concern but when it comes to objects, would be > nice to be able to restrict the class of object to a member of a known > list, to p

Re: [PHP-DEV] unserialize() data from untrusted source

2004-09-05 Thread Markus Fischer
Jason Garber wrote: This is an interesting point you bring up. When we have large registration processes or similar multi-page forms, we write our data array to a hidden field using. base64_encode(serialize($aData)) and read it in with unserialize(base64_decode($_POST['aData']))

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_0) /ext/standard incomplete_class.c

2004-09-05 Thread Sebastian Bergmann
Marcus Boerger wrote: well i didn't want to write a book here. Who really wants to do that anyhow :) To be honest i only named __autoload() here because it is the biggest change from 4 to 5 in this area. Honestly I do not see the point of unserialize_callback_func in PHP 5. It may have been use

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Andi Gutmans wrote: > Yeah I know non-pic doesn't work on all platforms but I gathered that > -prefer-non-pic only uses PIC on platforms where non-PIC dso's aren't > supported. I guess I'm wrong and we do need better autoconf checks. I am not sure what -prefer-non-pic does on a

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Andi Gutmans
At 04:25 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Andi Gutmans wrote: > At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: > >On Sun, 5 Sep 2004, Russ Garrett wrote: > > > APC doesn't seem to work at all as a DSO, I'll try it statically later. > > > >I run it on thousands of serv

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Andi Gutmans wrote: > At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: > >On Sun, 5 Sep 2004, Russ Garrett wrote: > > > APC doesn't seem to work at all as a DSO, I'll try it statically later. > > > >I run it on thousands of servers as a DSO. What are you seeing that would > >m

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Andi Gutmans
At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Russ Garrett wrote: > APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? Also, if you are running PHP as a DSO a

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Russ Garrett
Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Russ Garrett wrote: APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? I didn't really want to hang around with the site offline to find ou

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? Also, if you are running PHP as a DSO and pushing your CPU you might want to compile it

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_0) /ext/standard incomplete_class.c

2004-09-05 Thread Marcus Boerger
Hello Sebastian, well i didn't want to write a book here. To be honest i only named __autoload() here because it is the biggest change from 4 to 5 in this area. And if it comes to me we would reduce this whole thing to a few words instead. But i didn't want to change everything here. marcus Su

[PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Russ Garrett
Thanks for all the prompt responses, most appreciated. Firstly I forgot to add in a fairly crucial subdomain to my hits estimate (I'm half asleep today). It's closer to 2 million dynamic hits per day, all added in, which make my numbers a little more reasonable... I doubt the spiralling-crash th

Re: [PHP-DEV] unserialize() data from untrusted source

2004-09-05 Thread Harry Fuecks
On Sun, 5 Sep 2004 15:33:28 -0400, Jason Garber <[EMAIL PROTECTED]> wrote: > This is an interesting point you bring up. When we have large > registration processes or similar multi-page forms, we write our > data array to a hidden field using. > > base64_encode(serialize($aData)) > >

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Zeev Suraski
Is your server really unusable w/o a compiled code cache? Of not, try to remove it and see if the problem persists. One of the problems of most opcode caches is that a crash bug in PHP or one of its modules can end up resulting in a full server crash. I have to say though that it doesn't look

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > This machine serves around 500,000 hits daily, and 99% of them are > PHP-parsed. By the way, that is not a lot of hits. Less than 6 requests per second. I tend to get worried when my servers can't do at least 80-100 requests/second. And you certainly sho

Re: [PHP-DEV] Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > The only third-party module we're using is Turck mmcache - removing it > is kind of difficult since running without any cache brings the machine > to its knees :). But you should be able to trivially replace it with pecl/apc as the peformance of the two a

[PHP-DEV] Really odd PHP problem

2004-09-05 Thread Russ Garrett
OK, first of all I apologise for not posting this in the "right place", but this is an unreproducable bug (the worst kind...), and I need some educated guesses as to what is causing it. This thing has me at my wits' end... The situation is this: Apache on our main dynamic web server keeps on s

[PHP-DEV] Re: cvs: php-src(PHP_5_0) /ext/standard incomplete_class.c

2004-09-05 Thread Sebastian Bergmann
Marcus Boerger wrote: "The script tried to execute a method or " \ "access a property of an incomplete object. " \ - "Please ensure that the class definition %s of the object " \ + "Please ensure that the class definition \"%s\" of the object " \ "you are trying to operate on was loaded _bef

Re: [PHP-DEV] unserialize() data from untrusted source

2004-09-05 Thread Jason Garber
Hello Harry, This is an interesting point you bring up. When we have large registration processes or similar multi-page forms, we write our data array to a hidden field using. base64_encode(serialize($aData)) and read it in with unserialize(base64_decode($_POST['aData'])) pa

Re: [PHP-DEV] Directoryiterator / preg_match behavior

2004-09-05 Thread Curt Zirzow
* Thus wrote Andi Gutmans: > At 03:46 AM 9/4/2004 +, Curt Zirzow wrote: > > > >What are the possibilities of thrown E_STRICT or E_WARNING, since > >the object gets lost? Or should this simply be a documented > >behaviour? If possible, any pointers where to consider applying them > >at? > > Di

[PHP-DEV] here are Corey’s e-mail trade secrets

2004-09-05 Thread theeb basheer
Hi, It's not often that I am surprised by something I see online. And it's even more rare that I stumble upon a book that causes me to literally stop what I am doing and write a letter to everyone I know. But I just discovered that Corey Rudl -- probably one of the best-known and most well-res

[PHP-DEV] tool to increase your web site’s profitability

2004-09-05 Thread theeb basheer
Dear Friend, Would you be excited if I told that YOU COULD EARN $3,500 EVERY DAY from a web site that gets only 100 visitors a day... and sells a product that costs less than $150? You could be earning over $100,000 every month! This isn't hype. And this certainly is no joke! It's rare that I a

[PHP-DEV] This is awesome

2004-09-05 Thread theeb basheer
Hi, If you have been marketing on the Internet for any length of time, chances are you have heard of Corey Rudl. Corey is one of the most successful REAL-LIFE Internet marketing experts online today. As one of my mentors, I have learned more about the hard- hitting Internet marketing strategie

[PHP-DEV] unserialize() data from untrusted source

2004-09-05 Thread Harry Fuecks
Hi All, Have a situation where I want to unserialize a string received from an untrusted source over HTTP (a Javascript client in this case). For basic types this is no concern but when it comes to objects, would be nice to be able to restrict the class of object to a member of a known list, to pr

[PHP-DEV] sqlite temp directory

2004-09-05 Thread Michael Spector
Hi, It looks like libsqlite uses global variable 'sqlite_temp_directory' for storing the path to temporary directory. It would be very useful, if there was a PHP.ini entry named like: "sqlite.temp_directory" setting this variable, since there are cases where user environment doesn't allow to every