Re: [PHP-DEV] Thread Reading

2002-09-20 Thread Hartmut Holzgraefe
[EMAIL PROTECTED] wrote: > I *do* think that line numbers being linked like lxr.php.net is a good idea > and is a really easy thing to code. +1's? However, turning it on based on > linking to a numbered link isn't a great idea as links with # are much more > common than people using ?HIGHLIGHT_F

[PHP-DEV] PHP_SELF variable in cgi mode - patch proposition

2002-09-20 Thread Piotr Klaban
I have seen the same problem reported repeatedly on bug tracking system: in php-cgi mode PHP_SELF is copied from PATH_INFO -> in standard cgi mode it is useless (for example bug report see http://bugs.php.net/bug.php?id=18942&edit=1) ... and all the bug reports are , mostly because of no user

Re: [PHP-DEV] Thread Reading

2002-09-20 Thread Zeev Suraski
I'll try to find some time to look at it. I need to re-familiarize myself with the output buffering code at some point anyway... At 07:57 20/09/2002, Yasuo Ohgaki wrote: >Zeev Suraski wrote: >>At 12:27 19/09/2002, Yasuo Ohgaki wrote: >> >>>Dan Hardiker wrote: >>> We are dealing with *idiot

Re: [PHP-DEV] PHP_SELF variable in cgi mode - patch proposition

2002-09-20 Thread Arkadiusz Góralski
> I have seen the same problem reported repeatedly on bug tracking system: > in php-cgi mode PHP_SELF is copied from PATH_INFO -> in standard cgi mode > it is useless (for example bug report see > http://bugs.php.net/bug.php?id=18942&edit=1) You can always use $argv[0] as described here: http:/

[PHP-DEV] help, C property get/set object overloading

2002-09-20 Thread Sam Liddicott
swig wraps C++ objects as zend overloaded objects, the property getters and setters fall back to storing things in the Z_OBJPROP_P(property_reference->object) hash but I'm not doing it properly and I can't work out what I'm doing wrong. The propget functions are generated like this: static pval

Re: [PHP-DEV] PHP_SELF variable in cgi mode - patch proposition

2002-09-20 Thread Piotr Klaban
On Fri, Sep 20, 2002 at 11:24:43AM +0200, Arkadiusz Góralski wrote: > > I have seen the same problem reported repeatedly on bug tracking system: > > in php-cgi mode PHP_SELF is copied from PATH_INFO -> in standard cgi mode > > it is useless (for example bug report see > > http://bugs.php.net/bug

Re: [PHP-DEV] PHP Apache2Filter SAPI segfaults on startup

2002-09-20 Thread Andrei Zmievski
Please file it as a Bug. On Fri, 20 Sep 2002, Sebastian Bergmann wrote: > Environment: Apache 2 and PHP 4 built as Debug_TS from current CVS on > Win32. Same combination also segfaults on Linux 2.4.19. > > This segfault is most likely caused by a change in the SAPI startup > code. > > p

Re: [PHP-DEV] PHP Apache2Filter SAPI segfaults on startup

2002-09-20 Thread Sebastian Bergmann
Andrei Zmievski wrote: > Please file it as a Bug. Bug #19523 it is. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List

RE: [PHP-DEV] ini question

2002-09-20 Thread David Viner
Here is my modified php_init_handler from mod_php4.c static void php_init_handler(server_rec *s, pool *p) { fprintf(stderr,"mod_php4.c: php_init_handler: starting to run\n"); register_cleanup(p, NULL, (void (*)(void *))apache_php_module_shutdown_wrapper, (void (*)(void *))php_modu

[PHP-DEV] unexpected for-loop operation

2002-09-20 Thread Vlad Krupin
I know there is a better way to do that, and this code is silly, but still... Try running these two loops in PHP 4.2.3. for($i = 'A'; $i <= 'Y'; $i++){ echo "$i "; } for($i = 'A'; $i <= 'Z'; $i++){ echo "$i "; } Notice the difference in output. Is this the expected result? Vlad --

[PHP-DEV] mbstring functions in 4.2.3

2002-09-20 Thread Erica Douglass
Hi! I'm making a PHP package that will be distributed to potentially hundreds of people. I based the package off 4.2.3, since that's the latest version from PHP.Net. However, I have encountered a nasty bug with the mbstring-enc-trans extension as described here: http://bugs.php.net/bug.php?id=195

Re: [PHP-DEV] unexpected for-loop operation

2002-09-20 Thread Sascha Cunz
This is exactly, what the code should do; in Zend/zend_operators.c there is an special function for this to do (increment_string), so i assume this is the expected result. Sascha > I know there is a better way to do that, and this code is silly, but > still... > Try running these two loops in

RE: [PHP-DEV] ini question

2002-09-20 Thread David Viner
thanks... i got this working properly. dave -Original Message- From: David Viner [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 9:05 AM To: Php-Dev@lists. php. net Subject: RE: [PHP-DEV] ini question Here is my modified php_init_handler from mod_php4.c static void php_ini

Re: [PHP-DEV] PHP Apache2Filter SAPI segfaults on startup

2002-09-20 Thread Zeev Suraski
Fixed At 17:07 20/09/2002, Sebastian Bergmann wrote: >Andrei Zmievski wrote: > > Please file it as a Bug. > > Bug #19523 it is. > >-- > Sebastian Bergmann > http://sebastian-bergmann.de/ http://phpOpenTracker.de/ > > Did I help you? Consider a gift: http://wishlist.sebasti

Re: [PHP-DEV] mbstring functions in 4.2.3

2002-09-20 Thread Wez Furlong
Hi Erica, Personally, I would roll my own tarball/package based on the now fixed code in the 4.2 branch of CVS. However, as I mentioned in your original PR, there is a bug that affects file_exists on some systems; AFAIK, this has yet to be resolved which I why I suggested that you ask here, and

[PHP-DEV] Binary Safety, Sockets and Raw sockets

2002-09-20 Thread Hans Zaunere
4.2.3 on FreeBSD 4.6.2 (--enable-cli,--enable-sockets,etc) I've been taking a look at the socket_* functions in PHP, and specifically using raw sockets. I've started out with ICMP, and I can form the ICMP header (more or less) and send it out with an insufficient TTL; and as expected I get