[PHP-DEV] how to debug a php extension...

2002-07-16 Thread Ron Lange
hi, in which way I could debug my extension (builtin, apachemodule)? unfortunately I get segmentation faults of the forked apache proc, and I can only guess where it is. It's in a particular place, where I set up a socket and two fds. I don't use php_streams. Any hints? Regards Ron -- PHP Deve

Re: [PHP-DEV] how to debug a php extension...

2002-07-16 Thread David Eriksson
On Tue, 16 Jul 2002, Ron Lange wrote: > hi, > in which way I could debug my extension (builtin, apachemodule)? > unfortunately I get segmentation faults of the forked apache proc, and I can > only guess where it is. It's in a particular place, where I set up a socket > and two fds. I don't use

RE: [PHP-DEV] how to debug a php extension...

2002-07-16 Thread Joseph Tate
Which platform are you on? Linux? Look for 'How to generate a backtrace' on the php.net website, as David posted. Windows? Limit the number of active server processes to 1, then using MSDEV, attach to the running apache process. (It'll help if both apache and your extension are built in debug

[PHP-DEV] Variable expansion in user-space

2002-07-16 Thread David Brown
Hi guys: I've looked through the documentation and didn't see anything like this; please do let me know if this has been implemented/discussed previously. I'm looking for a fast mechanism to do 'user-space' string expansion. That is, given a key/value set $a and a string $b, i'd like for every o

[PHP-DEV] Release plans for 4.2.2 / 4.3

2002-07-16 Thread Robinson, Mike
Title: Release plans for 4.2.2 / 4.3 Are there any tentative release plans for 4.2.2 or 4.3? Mike Robinson IT/Developer - Torstar Media Group Television Phone: 416.945.8786 Fax: 416.869.4566 Email: [EMAIL PROTECTED] To find out more about what we can do for you, please visit us at:

Re: [PHP-DEV] Release plans for 4.2.2 / 4.3

2002-07-16 Thread derick
On Tue, 16 Jul 2002, Robinson, Mike wrote: > Are there any tentative release plans for 4.2.2 or 4.3? I have a plan for 4.2.2, will elaborate tonight. :) Derick --- Did I help you? http://www.derickrethans.nl/link.php?ur

[PHP-DEV] possible dos attack

2002-07-16 Thread Dan Stromberg
We have a bunch of apache servers here with php compiled in. They keep dying. I think they're all tending to die at the same time. The servers on ports 8080 and 443 are fine; it's only the port 80 apaches that are dying. I did a backtrace with gdb, and I get thousands of these: #60961 0xef7d46

Re: [PHP-DEV] possible dos attack

2002-07-16 Thread Adam Voigt
What version of Apache and PHP are you running? Are you connecting to a Microsoft SQL server or a Sybase Server (I ask because of the reference to php_sybase_db, and since both would most likely make reference to that.) Is there a pattern to the crashing? (Heavy database activity?) If you are usin

Re: [PHP-DEV] how to debug a php extension...

2002-07-16 Thread Ron Lange
Hi David, hi Joseph, thanks a lot, I have a very helpful backtrace now. Regards Ron David Eriksson wrote: > On Tue, 16 Jul 2002, Ron Lange wrote: > >> hi, >> in which way I could debug my extension (builtin, apachemodule)? >> unfortunately I get segmentation faults of the forked apache proc, a

[PHP-DEV] CVS Account Request: ctrlsoft

2002-07-16 Thread Jelmer Vernooij
Maintainance of PEAR/PECL SMB module and possibly of other pear stuff as well -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] variables_order too powerful

2002-07-16 Thread Philip Olson
In this bug report: variables_order affects existence of php predefined variables * http://bugs.php.net/16155 The following tentative plan was made by Zeev: (a) Decouple variables_order from the $_* / $HTTP_*_VARS completely. (b) Make it possible to prevent $_ENV and $_SERVER fro

[PHP-DEV] possible dos attack

2002-07-16 Thread Dan Stromberg
I sent this to php.dev and it didn't come through, so I'm sending it again to the mailing list this time. Sorry if this is a repeat. We have a bunch of apache servers here with php compiled in. A bunch of them have died in two different rounds, both rounds being on the same weekend. The server

[PHP-DEV] open_basedir and safe_mode_exec_dir

2002-07-16 Thread Christian Stocker
Hi I prefer the php.ini option open_basedir much more over safe_mode to provide virtual hosting for some clients of mine, but to have a little more security, I additionally need to turn off some function with disable_functions (exec, system, shell_exec and popen come to mind). But it would be ver

[PHP-DEV] relative xpath queries

2002-07-16 Thread Dan Allen
XPath is crippled without the ability to do relative xpath queries. The interface is already provided by the libxml2 engine, it is just a matter of adding the option to xpath_eval(). If you are working recursively in an xml document (which you are always doing) and you need to run an xpath query

Re: [PHP-DEV] relative xpath queries

2002-07-16 Thread Garland foster
If this gets attention I'd add another request: Please make the nodeset an array of REFERENCES to dom nodes, so we wan use Xpath to locate a node and then we can change it using DOM functions. It will make a sensible difference to implement, for example, Xupdate or modifications based on Xpath exp

Re: [PHP-DEV] relative xpath queries

2002-07-16 Thread Dan Allen
Garland foster ([EMAIL PROTECTED]) wrote: > If this gets attention I'd add another request: > Please make the nodeset an array of REFERENCES to dom nodes, so we > wan use Xpath to locate a node and then we can change it using DOM > functions. > It will make a sensible difference to implement, for

[PHP-DEV] Re: open_basedir and safe_mode_exec_dir

2002-07-16 Thread Yasuo Ohgaki
Christian Stocker wrote: > another little thingie: the description to open_basedir in the distributed > php.ini is between all the safe_mode config, therfore maybe a lot of > people don't know, that one can use this whithout safe_mode enabled. > I agree. The directive name should be "safe_mode_o

[PHP-DEV] Re: open_basedir and safe_mode_exec_dir

2002-07-16 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: > Christian Stocker wrote: > >> another little thingie: the description to open_basedir in the >> distributed >> php.ini is between all the safe_mode config, therfore maybe a lot of >> people don't know, that one can use this whithout safe_mode enabled. >> > > I agree. The d

[PHP-DEV] Re: open_basedir and safe_mode_exec_dir

2002-07-16 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: > Yasuo Ohgaki wrote: > >> Christian Stocker wrote: >> >>> another little thingie: the description to open_basedir in the >>> distributed >>> php.ini is between all the safe_mode config, therfore maybe a lot of >>> people don't know, that one can use this whithout safe_mode e

[PHP-DEV] Re: open_basedir and safe_mode_exec_dir

2002-07-16 Thread Yasuo Ohgaki
> Is there reason why these functions don't check safe_mode > and open_basedir? > > I don't have much time to test, so I didn't committed this > patch... > Oops. Wrong patch sent. Newer patch attached. -- Yasuo Ohgaki ? file.c.patch Index: file.c