Re: [PHP-DEV] Programming question

2001-08-03 Thread George Schlossnagle
On a related note, placing null-bytes in the middle of strings (for example in the names of the so-called lambda_functions generated from create_function()) seems like a pretty questionable practice. - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc:

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

2001-08-06 Thread George Schlossnagle
In a few words: For a webserver: ban dl() For generic scripting: keep dl() What's really the point of protecting people from their stupidity. If you're going to keep it in the generic scripting engine (which I think has lots of value), why not keep it in the webserver engine as well. There

Re: [PHP-DEV] Programming question

2001-08-07 Thread George Schlossnagle
that works with these function names should only be using mem*() functions anyway, they're quicker and they're binary safe. Zeev At 10:22 02/08/2001, George Schlossnagle wrote: It seem sto me that there are ways of accomplishing this that allow for this without breaking compatibility

Re: [PHP-DEV] AW: Re[3]: [Zend Engine 2] RFD: call backtrace

2001-08-13 Thread George Schlossnagle
The APD debugger was designed specifically to do this sort f debugging/profiling by writing trace files to a specified dir. http://apc.communityconnect.com/sources/apd-cvs.tar.gz On Monday, August 13, 2001, at 06:47 PM, Harald Radi wrote: However, I think that even a simple dump will be a

Re: [PHP-DEV] Crash in var_dump and print_r

2001-08-26 Thread George Schlossnagle
If NULL's a valid zval*, then both of thise routines need to be fixed to handle null pointers. Here's some patches: --- zend.c.orig Sun Aug 26 11:14:28 2001 +++ zend.c Sun Aug 26 11:20:22 2001 @@ -199,6 +199,10 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval

Re: [PHP-DEV] Crash in var_dump and print_r

2001-08-26 Thread George Schlossnagle
p.s. casual inspection suggest that having NULL zval pointers in HashTables may break alot of places. On Sunday, August 26, 2001, at 11:31 AM, George Schlossnagle wrote: If NULL's a valid zval*, then both of thise routines need to be fixed to handle null pointers. Here's some patches

Re: [PHP-DEV] Crash in var_dump and print_r

2001-08-26 Thread George Schlossnagle
Sounds fair to me. On Sunday, August 26, 2001, at 11:51 AM, Andi Gutmans wrote: At 11:45 AM 8/26/2001 -0400, George Schlossnagle wrote: Ahh... that makes much more sense. Should there be any protection though from populating a hash with NULL values, or is this solely the responsibility

[PHP-DEV] contributing extensions?

2001-08-27 Thread George Schlossnagle
Hi, I was interested in what the process of contributiing extensions to php is. I'm a author/maintainer of a couple existing and soon-to-be php extensions and was curious about how to get them evaluated for inclusion as part of the existing 'ext' extension structure and just what the

Re: [PHP-DEV] contributing extensions?

2001-08-27 Thread George Schlossnagle
On Mon, 27 Aug 2001, George Schlossnagle wrote: Hi, I was interested in what the process of contributiing extensions to php is. I'm a author/maintainer of a couple existing and soon-to-be php extensions and was curious about how to get them evaluated for inclusion as part of the existing 'ext

Re: [PHP-DEV] contributing extensions?

2001-08-28 Thread George Schlossnagle
I have a php interface to the spread group communication toolkit client api. Hard to say how wide it's audience would be, but it's very useful for creating distributed applications (it was written to facilitate some distributed logging and distributed filesystem caching needs). Code

Re: [PHP-DEV] contributing extensions?

2001-08-28 Thread George Schlossnagle
If you think it would have a significant audience (i.e., more than you :) then we can add it in. Makes sense, I guess it's usefulness is what's up for debate. Dan Cowgill and I have a tracing/profiling/debugging extension which we would be quite interested in having included in php. Code

Re: [PHP-DEV] Re: Detecting multiple execution of the script. (trace log?)

2001-09-02 Thread George Schlossnagle
Check out APD (http://apc.communityconnect.com/apd-cvs.tar.gz). It does what you're looking for as an engine extension. George On Sunday, September 2, 2001, at 09:53 PM, Yasuo Ohgaki wrote: Yasuo Ohgaki wrote: Is it feasible to add trace log option that enables logging function/class

Re: [PHP-DEV] Re: Detecting multiple execution of the script. (trace log?)

2001-09-03 Thread George Schlossnagle
Ooops. http://apc.communityconnect.com/sources/apd-cvs.tar.gz :) George On Monday, September 3, 2001, at 07:15 AM, Yasuo Ohgaki wrote: George Schlossnagle wrote: Check out APD (http://apc.communityconnect.com/apd-cvs.tar.gz). It does what you're looking for as an engine extension

Re: [PHP-DEV] Re: The rand() can of worms

2001-09-05 Thread George Schlossnagle
I really dislike the way you are handling with this issue: first silently agree, I keep seeing this thrown around. 'Silent approval' is an interesting concept. How do you distinguish it from 'silent disapproval'? Are you sure you didn't make an assumption about the way people felt? (We

Re: [PHP-DEV] Woah

2001-09-08 Thread George Schlossnagle
Benchmarking the execution time for a single function call by making a page and request it via b is a pretty flawed method. While it may show that a single aliased call to gettext() doesn't change the execution time of a script by much, it does not say anything about the relative times for

[PHP-DEV] Re: Performance

2001-09-09 Thread George Schlossnagle
Again, I believe that's exactly the point Cris was making - running a million executions of a code block is not something which happens in real life. In practice, chances are the speed loss will be negligible in most real world situations. I've seen code where people do things like write their

Re: [PHP-DEV] Documenting Zend (was: zend_parse_parameters)

2001-09-09 Thread George Schlossnagle
On Sunday, September 9, 2001, at 05:45 PM, Zeev Suraski wrote: At 00:26 10-09-01, Wez Furlong wrote: Zeev Suraski [mailto:[EMAIL PROTECTED]] wrote: At 14:44 09-09-01, Jani Taskinen wrote: If ZE was properly documented, people didn't have to rely on only the sources. By the way, your

Re: [PHP-DEV] Woah

2001-09-10 Thread George Schlossnagle
Here's a functional alias_function call which duplicates a functions entry in the global function table (ripped from APD with minor mods). PHP_FUNCTION(alias_function) { zval **z_orig_fname, **z_new_fname; zend_function *func, *dummy_func; if( ZEND_NUM_ARGS() != 2 ||

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] namespaces ambiguity

2001-09-30 Thread George Schlossnagle
The point is that while those are both valid $test?FOO:BAR:BARBARA is ambiguous in that it could refer to either of those. On Sunday, September 30, 2001, at 10:25 PM, Dean Hall wrote: - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Dean Hall [EMAIL PROTECTED] Cc:

Re: [PHP-DEV] Possibility of moving bugs to another list?

2001-10-02 Thread George Schlossnagle
On Tue, 02 Oct 2001, Rasmus Lerdorf wrote: i joined this group to read about php-development, not about bugs. The two are joined at the hip. Well said. -Andrei I agree. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DEV] Server-Wide Persistent objects in PHP?

2001-11-26 Thread George Schlossnagle
If you use a caching extension like APC (http://apc.communityconnect.com) or Zend Cache/Accelerator you get 1 and 2 below. APC at least implements basically what your looking for, I thnk. - Original Message - From: Yermo M. Lamers [EMAIL PROTECTED] To: Markus Fischer [EMAIL PROTECTED]

Re: [PHP-DEV] Re: Shootout

2001-12-29 Thread George Schlossnagle
Sucks when you need to use a proprietary extension to a language to make it benchmark well. George On Saturday, December 29, 2001, at 12:27 PM, Zeev Suraski wrote: Taking that code and coupling the Zend Optimizer, PHP and Perl were approximately the same speed (Perl was 8% faster, but that

Re: [PHP-DEV] Re: Shootout

2001-12-29 Thread George Schlossnagle
So? Anybody worth their salt as a programmer would consider the Zend Optimizer if they needed to speed up their production website. Not if they can't afford the (old) Zend Accelerator pricing and it didn't have a trial option and are using a free alternative which is

Re: [PHP-DEV] NEW PHP standalone compiler (was Re: [PHP-DEV] Here we try again)

2002-01-30 Thread George Schlossnagle
, e-mail: [EMAIL PROTECTED] // George Schlossnagle // 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] NEW PHP standalone compiler (was Re: [PHP-DEV] Here we try again)

2002-01-30 Thread George Schlossnagle
Hello, George Schlossnagle wrote: APC supports compiled code in the fashion I think you're looking for. There's a README.compiler in the distribution tar ball. I know, I use APC in MMAP mode and I noticed that it outputs PHP compiled code for each script to disk. That is precisely what

Re: [PHP-DEV] NEW PHP standalone compiler (was Re: [PHP-DEV] Here we try again)

2002-02-01 Thread George Schlossnagle
. Anyway, as I said I have been getting a lot of support to provide a free PHP compiler/optimizer/cache/encoder. So, this will not go forward for the lack of will and contributed work. That's great news. Keep up the good work, Manuel Lemos // George Schlossnagle // 1024D/1100A5A0  1370

Re: [PHP-DEV] Re: [Apc-cache] Re: [PHP-DEV] NEW PHP standalone compiler (was Re: [PHP-DEV] Here we try again)

2002-02-01 Thread George Schlossnagle
Well, George Schlossnagle already proposed to submit APC and other useful extensions for inclusion in PHP. http://news.php.net/article.php?group=php.devarticle=64437 At the time, it was not done because Zeev said it would be necessary to add a directory in PHP tree for extensions

Re: [PHP-DEV] [PROPOSAL] defense against session takeovers

2002-02-01 Thread George Schlossnagle
-mail: [EMAIL PROTECTED] // George Schlossnagle // Director of Operations // Community Connect, Inc. // 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP-DEV] Bug #15390: Persistent OCI8 Connections Get Poisoned

2002-02-05 Thread George Schlossnagle
php?id=15390r=oldversion Not developer issue: > http://bugs.php.net/fix.php?id=15390r=support Expected behavior: > http://bugs.php.net/fix.php?id=15390r=notwrong Not enough info: > http://bugs.php.net/fix.php?id=15390r=notenoughinfo > > > -- > PHP Development Mailing List http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-13 Thread George Schlossnagle
Development Mailing List http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 301.343.6422 (e) [EMAIL PROTECTED] // 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

Re: [PHP-DEV] code profiler

2002-06-25 Thread George Schlossnagle
APD (http://apd.communityconnect.com/) is a php code profiler. On Tuesday, June 25, 2002, at 10:26 AM, Tit Black Petric wrote: ok this may be a bit offtopic, but here goes i am searching for a PHP code profiler, something to measure key components of the PHP scripts, tracking how many

Re: [PHP-DEV] extension modules

2002-07-02 Thread George Schlossnagle
://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit

Re: [PHP-DEV] extension modules

2002-07-02 Thread George Schlossnagle
Actually, if you run configure with --with-sqlanywhere=shared, that directive should be added to config.h On Tuesday, July 2, 2002, at 03:42 PM, Torsten Curdt wrote: On Tuesday 02 July 2002 21:31, George Schlossnagle wrote: You need to do a ZEND_GET_MODULE(modulename); in yor extension

Re: [PHP-DEV] Patch to add profiling support to PHP at the PHP level

2002-07-28 Thread George Schlossnagle
symbol table is affected by function calls, so I strduped the function name and file name across the function call to make sure nothing bad would happen to them. While it works fine, that information is probably preserved somewhere already so the strdups could be removed. // George Schlossnagle

Re: [PHP-DEV] trans-sid warning?

2002-08-19 Thread George Schlossnagle
On Monday, August 19, 2002, at 07:56 PM, Rasmus Lerdorf wrote: To conclude: Don't trade useful features for pseudo security. Removing this feature just increases the feeling of having a 'secure' site and decreases the desire to protect oneself by activating

Re: [PHP-DEV] trans-sid warning?

2002-08-19 Thread George Schlossnagle
://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP

Re: [PHP-DEV] trans-sid warning?

2002-08-20 Thread George Schlossnagle
Dan Hardiker wrote: It is also very conceivable that a person would send a link to a java applet or any other kind of wrapper (PHP or other CGI actually would be able to establish the connection on the server side always sending the same user agent string and sending back the data from your

[PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
Here's an incremental patch on Lukas' patch which tries to address a couple issues: o The startup sequence has been changed to allow for post-data to make it through if any hooks before full post-data is read are called o works under register_globals Off ($request is now available in the

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
All of this work was off HEAD. Should a new_apache_hooks branch be tagged? Rasmus Lerdorf wrote: I say commit it. This stuff is very experimental as it is and lives in its own branch. You are not going to destabilize anything. (I just made sure you had enough karma for the commit) -Rasmus

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
, 26 Aug 2002, George Schlossnagle wrote: All of this work was off HEAD. Should a new_apache_hooks branch be tagged? Rasmus Lerdorf wrote: I say commit it. This stuff is very experimental as it is and lives in its own branch. You are not going to destabilize anything. (I just made sure you

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
If you want to pull everything into the apche_hooks branch, I can do that as well. But if we do that, it would probably wise to update everything in that branch to HEAD. George Schlossnagle wrote: I haven't committed anything yet. It seems like the benefit of starting with a fresh copy

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
Ok, this has all been added to the apache_hooks branch, which is now up-to-date. George Schlossnagle wrote: If you want to pull everything into the apche_hooks branch, I can do that as well. But if we do that, it would probably wise to update everything in that branch to HEAD. George

[PHP-DEV] adding persistent toggle to zend_stack implementation

2002-08-27 Thread George Schlossnagle
Hi, I'd like to use the zend_stack stuff for stacked handlers in the new apache_hooks sapi stuff, but right now, it emalloc's everything, which is unacceptable for my usage. I could write my own stack implementation just for the sapi stuf, but thats seems less productive than making

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-27 Thread George Schlossnagle
A little update on all of this. I changed the way that the handlers are created in the apache config from php_value uri_handler /tmp/foo.php to phpUriHandler /tmp/foo.php and logically separated them from the ini structure. This eliminates some unnecessary work that was being done before and

Re: [PHP-DEV] Re: cgi and mod_php

2002-08-28 Thread George Schlossnagle
Daniel Lorch wrote: hi, Yes, it would look like this: 1. ./configure appropiate stuff 2. make 3. make clean 4. goto 1 - Sascha So we do not have the possibility to build all three without make clean in one go. I would very much appreciate that since it would make

Re: [PHP-DEV] Re: cgi and mod_php

2002-08-28 Thread George Schlossnagle
It sure does seem to, doesn't it. ;) Mike Hall wrote: I'm sure PHP 4.3.0 builds the CLI as well as any other SAPI you specify, doesn't it? - Original Message - From: George Schlossnagle [EMAIL PROTECTED] To: Daniel Lorch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED

[PHP-DEV] anyone care to poke holes in the apache_hooks stuff

2002-08-30 Thread George Schlossnagle
The apache_hooks stuff is about at the stage where people poking holes/finding bugs/making suggestions would be very beneficial. Any feedback would be appreciated. // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL

Re: [PHP-DEV] anyone care to poke holes in the apache_hooks stuff

2002-08-30 Thread George Schlossnagle
interesting, but it's kind of difficult start playing with it without any pointers. Could you give us some hints/usage tips on how to get started? Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle

[PHP-DEV] dl() question

2002-09-18 Thread George Schlossnagle
the on-the-fly-generated module) seems only to read from there. Is there a good reason for taht, and if not, would a patch to allow dl() to take absolute paths be looked upon favorably? George // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c

Re: [PHP-DEV] php/embed

2002-09-28 Thread George Schlossnagle
install part working. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread George Schlossnagle
// George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] Segfaults in Zend

2002-10-14 Thread George Schlossnagle
Can you give the source for that function and the arguments it's being passed/context it is used in? Jan Schneider wrote: Zitat von Yasuo Ohgaki [EMAIL PROTECTED]: 0x4055778f in _efree (ptr=0x83476e4) at /home/jan/software/php4/Zend/zend_alloc.c:229 229

Re: [PHP-DEV] Feature ./ correction to design flaw request

2002-10-14 Thread George Schlossnagle
One reason would be to allow for a product like APD to do JIT swapping of executors to enable tracing on demand. I imagine you could come up with a clever way of letting Zend (En|De)coder be used for oly prticular clients in a large vhosting operation as well (although I don't really know

Re: [PHP-DEV] Feature ./ correction to design flaw request

2002-10-14 Thread George Schlossnagle
As I just told Nick in private mail, I personally like my bubble. It has nice translucent walls, keeps me dry when it's wet, and warm when it's cold. All talk of bubbles aside though it seems like there are potential applications for this. Andi Gutmans wrote: At 09:49 PM 10/14/2002 +0100,

Re: [PHP-DEV] Xerces?

2002-10-16 Thread George Schlossnagle
://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e

Re: [PHP-DEV] RFC: CLI behave like SH or PERL/RUBY/PYTHON?

2002-10-23 Thread George Schlossnagle
// George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

Re: [PHP-DEV] RFC: CLI behave like SH or PERL/RUBY/PYTHON?

2002-10-23 Thread George Schlossnagle
, but it seems it's not. Which one you prefer CLI behave like SH or PERL/RUBY/PYTHON -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http

Re: [PHP-DEV] RFC: CLI behave like SH or PERL/RUBY/PYTHON?

2002-10-23 Thread George Schlossnagle
That statement about character devices being line bufffered isn't quite true, but otherwise I would say +0. Line buffering stdout and unbuffering stderr seems to be the default of most languages. On Wednesday, October 23, 2002, at 02:45 AM, Yasuo Ohgaki wrote: George Schlossnagle wrote

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-27 Thread George Schlossnagle
That was +1 for changing it to off. :) On Sunday, October 27, 2002, at 09:37 PM, George Schlossnagle wrote: +1 unless it is set as an INI_ANY, then +0. George On Sunday, October 27, 2002, at 09:05 PM, Zeev Suraski wrote: Thank you for the detailed explanation, I'm sure everybody understands

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-27 Thread George Schlossnagle
Indeed it appears to be... +0 then. :) On Monday, October 28, 2002, at 07:44 AM, Zeev Suraski wrote: At 18:37 27/10/2002, George Schlossnagle wrote: +1 unless it is set as an INI_ANY, then +0. It's already INI_ANY... -- PHP Development Mailing List http://www.php.net/ To unsubscribe

[PHP-DEV] Re: apache_hooks

2002-11-03 Thread George Schlossnagle
? -Rasmus // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

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

2002-11-09 Thread George Schlossnagle
://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- PHP Development Mailing

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

2002-11-09 Thread George Schlossnagle
Hehe. I should attach the patch, eh? On Saturday, November 9, 2002, at 09:15 PM, George Schlossnagle wrote: Here's the patch that Dan and I put together for the optimizer we talked about at the conference. It basically provides a defaulted-to-null function pointer that is the default

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

2002-11-10 Thread George Schlossnagle
Funny, it's in the message my mua said it sent (the 2nd time). How is this? It's also in pear/PECL/optimizer/zend.patch On Sunday, November 10, 2002, at 06:11 AM, Derick Rethans wrote: On Sat, 9 Nov 2002, George Schlossnagle wrote: Hehe. I should attach the patch, eh? Yes, you

[PHP-DEV] ZEND_ADD_STRING patch

2002-11-10 Thread George Schlossnagle
For those who came to Dan my or Derick's talk at the Int. PHP Conference, we both covered the bad inefficiency in the parser that results in strings with variables in them being tokenized on whitespace. This results in a huge number of unnecessary opcodes in strings. Attached (hopefully, as

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-10 Thread George Schlossnagle
On Sunday, November 10, 2002, at 05:06 PM, George Schlossnagle wrote: For those who came to Dan my or Derick's talk at the Int. PHP Conference, we both covered the bad inefficiency in the parser that results in strings with variables in them being tokenized on whitespace. This results

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-10 Thread George Schlossnagle
); On Sunday, November 10, 2002, at 06:05 PM, Paul Nicholson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's the list, I don't think they allow attachmentsdo you have web space you could upload to? On Sunday 10 November 2002 05:16 pm, Derick Rethans wrote: On Sun, 10 Nov 2002, George

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-10 Thread George Schlossnagle
05:16 pm, Derick Rethans wrote: On Sun, 10 Nov 2002, George Schlossnagle wrote: For those who came to Dan my or Derick's talk at the Int. PHP Conference, we both covered the bad inefficiency in the parser that results in strings with variables in them being tokenized on whitespace. This results

[PHP-DEV] Re: apache_hooks

2002-11-10 Thread George Schlossnagle
wrote: Well, since 99% of the code is the same, I'd be worried about people remembering to merge fixes across. At least if it is ifdef'ed people see the code. But yes, I agree, that's not pretty either. -R On Sun, 3 Nov 2002, George Schlossnagle wrote: Either way works for me

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-10 Thread George Schlossnagle
, George Schlossnagle wrote: that would be my debugging from my 'clean' cvs copy. :) You don't want that. Sorry. Here's a better patch: Index: zend_language_scanner.l === RCS file: /repository/Zend/zend_language_scanner.l,v retrieving

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-11 Thread George Schlossnagle
that. I'll check it out this evening as I have to go now. Andi At 01:48 AM 11/11/2002 -0500, George Schlossnagle wrote: Unless I misunderstand the way this works, it's not a problem that it returns a T_STRING, only possibly that it does so inside a BACKQUOTES. Function names and constants

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-11 Thread George Schlossnagle
At 03:06 AM 11/11/2002 -0500, George Schlossnagle wrote: The patch I submitted included BACKQUOTES in the token matching as well. I'm not convinced that is bad, but I will try to thoroughly test it tomorrow, and if it's broken, I'll just case it for and heredocs. George On Monday, November 11

Re: [PHP-DEV] Re: apache_hooks

2002-11-12 Thread George Schlossnagle
So I will take this course of action after 4.3.0 is branched. Any objections? George On Sunday, November 10, 2002, at 09:40 PM, Rasmus Lerdorf wrote: Hrm.. That's not a bad idea. An ApacheHooks SAPI module sounds like the right approach to me. -R On Sun, 10 Nov 2002, George Schlossnagle

[PHP-DEV] [RFC] adding sapi_module_struct.pretty_name to $_SERVER

2002-11-12 Thread George Schlossnagle
How do people feel about adding the pretty name as $_SERVER['SAPI']? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-12 Thread George Schlossnagle
Hi Andi, The last patch I submitted was broken as well. Following that, I had the bright idea to run the prospective changes through the unit-tester to ensure correct performance. Here's a patch which achieves that. It does not work for heredocs (i.e. they are tokenized as before, but

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-15 Thread George Schlossnagle
George Schlossnagle wrote: I'm a tool. I sent the wrong patch to the list. Thanks to Andrei for pointing it out. Here is the _right_ patch (finally). diff -u -3 -r1.53 zend_language_scanner.l --- zend_language_scanner.l8 Nov 2002 13:40:54 -1.53 +++ zend_language_scanner.l15

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-15 Thread George Schlossnagle
Andi Gutmans wrote: Try it out and let me know how the results are. Also *please* send diffs also as attachments so that when people apply them we won't get bad whitespace in our sources. php-dev seems to eat my attachments -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-15 Thread George Schlossnagle
Much sexier indeed. There are some flaws with it: o Tokenizes heredocs on whitespace o Doesn't count lines correctly for debug (since strings now have newlines in them) Here's a revised patch to yours that fixes those (heredocs are tokenized on newlines - I think that is best case) Andi

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-16 Thread George Schlossnagle
. Is there a reason why? I'm sticking that in this patch again, in case you merged my last change by hand and missed that accidentally. On Friday, November 15, 2002, at 06:48 PM, George Schlossnagle wrote: Much sexier indeed. There are some flaws with it: o Tokenizes heredocs

Re: [PHP-DEV] ZEND_ADD_STRING patch

2002-11-16 Thread George Schlossnagle
Here's the patch. Looks like everything but the heredoc part is in cvs now. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Capturing headers with output buffering?

2002-11-24 Thread George Schlossnagle
What are you trying to accomplish? On Sunday, November 24, 2002, at 05:40 PM, David Brown wrote: Hi: Architecturally speaking, is there any simple way to modify an sapi backend to return HTTP headers through the output buffering mechanism? As far as I can tell, headers are managed seperately

Re: [PHP-DEV] Capturing headers with output buffering?

2002-11-24 Thread George Schlossnagle
just wrap header() with a user-space function, but that would prevent a lot of scripts from running as-is. Bad idea? Maybe. There's also the matter of getting it to parse POST/GET without completely reinventing the wheel... - Dave On Sun, Nov 24, 2002 at 05:57:33PM -0500, George Schlossnagle

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
I'm not really arguing for or against this, but since when did speaking english become a corollary of being intelligent? And even if we accept the rather ridiculous hypotheis that all php developers can comprehend english, what if they don't want to, or are more confident using their native

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
Is your claim that db2 has no international error messages? It does, or did last I checked. Or was it that SQLServer doesn't either (it does as well). On Monday, November 25, 2002, at 08:24 PM, Ilia A. wrote: On November 25, 2002 08:15 pm, Maxim Maletsky wrote: On Tue, 26 Nov 2002 00:30:55

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
as an example for the one PHP has. -- Maxim Maletsky [EMAIL PROTECTED] On Mon, 25 Nov 2002 20:44:03 -0500 George Schlossnagle [EMAIL PROTECTED] wrote: Is your claim that db2 has no international error messages? It does, or did last I checked. Or was it that SQLServer doesn't either (it does as well

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
Oh, I'm sorry, I didn't realize you were going off-topic to pick at parts of Maxim's argument. My mistake. George On Monday, November 25, 2002, at 08:52 PM, Ilia A. wrote: On November 25, 2002 08:44 pm, George Schlossnagle wrote: Is your claim that db2 has no international error messages

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
By the way, could you please advise by how much I will need to increase the power of my server(s) to maintain the same level of performance? Why would this need to kill your performance if you're not throwing errors? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
actually printing errors, a slight overhead seems acceptable (to me, ymmv) On Monday, November 25, 2002, at 10:27 PM, Ilia A. wrote: On November 25, 2002 09:59 pm, George Schlossnagle wrote: By the way, could you please advise by how much I will need to increase the power of my server(s

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
On Monday, November 25, 2002, at 10:43 PM, Ilia A. wrote: On November 25, 2002 10:30 pm, George Schlossnagle wrote: There is no proposed patch to affect all these changes. There are fine ways to print errors that don't necessitate having them loaded at run time. They could be in a dbm file

Re: [PHP-DEV] [PATCH] Redirect on Error

2002-11-25 Thread George Schlossnagle
On Monday, November 25, 2002, at 11:29 PM, Ilia A. wrote: On November 25, 2002 10:57 pm, George Schlossnagle wrote: On Monday, November 25, 2002, at 10:43 PM, Ilia A. wrote: On November 25, 2002 10:30 pm, George Schlossnagle wrote: There is no proposed patch to affect all these changes

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
debug_backtrace was backported into ze1. 4.3 will sstill use ze1. George Phil Dier wrote: On Wed, 27 Nov 2002 15:41:25 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: On Wed, 27 Nov 2002, Miham KEREKES wrote: Hi! I'm new to this list, I want to know if there is any function which

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
I'll do it, if you want. Andi Gutmans wrote: At 07:23 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Andi Gutmans wrote: At 03:41 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Miham KEREKES wrote: debug_backtrace() will be available in PHP 4.3.0 and

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
PM 11/27/2002 -0500, George Schlossnagle wrote: Is there a concensus on how arguments should be printed out? I'm shooting right now for a 'cluck' style backtrave class::function() called at file:line Perhaps class::function() called at file:line Arguments: print_r(args) ?? Andi

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
Ok... but that looks nasty when you are passed an array or an object. Andi Gutmans wrote: At 03:13 PM 11/27/2002 -0500, George Schlossnagle wrote: Hmmm any hints on how to get the variable name out of the stack? The code in debug_backtrace seems to only extract the value. There's

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
Here's first shot at a patch. The output it generates is ugly as sin if you use objects though. I though about flattening them out, but that gets long and nasty (and requires specialized print functions which while easy seem to be of marginal use elsewhere.) George Index:

Re: [PHP-DEV] call_stack

2002-11-27 Thread George Schlossnagle
And here is a version which flattens the calling args onto a single line (similar to sebastians usersapce script). Longer, but a bit prettier output. Index: Zend/zend.c === RCS file: /repository/Zend/zend.c,v retrieving revision

Re: [PHP-DEV] Reusing PHP string value pointers

2002-11-28 Thread George Schlossnagle
Or use the overload extension in ZE1. The real question is why you really need/want to do this. George On Thursday, November 28, 2002, at 04:37 PM, l0t3k wrote: if you have the option of using ZE2, make the thing an object and use the property get/set handlers to take care of things for

Re: [PHP-DEV] C++ extensions and ext_skel

2002-11-28 Thread George Schlossnagle
I concur, that would be cool. Patches should be against HEAD. George On Thursday, November 28, 2002, at 05:33 PM, Shane Caraveo wrote: I think that would be quite cool, save me from having to do it manualy. Shane J Smith wrote: A couple of times a month, I get questions about from people

Re: [PHP-DEV] Zend fast cache

2002-11-30 Thread George Schlossnagle
How does searching the freelist work in this? How is this faster than say a 3-level page table implementation? That said, I do think that if we can get very fast code to pre-allocate zval's it would be a good idea (hopefully we could get more than 5% increase). I already have an idea for how I

Re: [PHP-DEV] Zend fast cache

2002-11-30 Thread George Schlossnagle
The problem I see with an array approach from an api perspective is simply when a bucket is free'd, in order to have efficient memory usage, we'd need a second level array scan for every ALLOC_ZVAL(). Perhaps a linked list would be a better choice for this, as we can just be smart about bucket

  1   2   >