RE: [PHP-DEV] a way to fix the import issue

2007-10-05 Thread Dmitry Stogov
Hi Gregory, It seems, your bug report and patches are right. I'll look into them more careful little bit later. Thank you very much. Dmitry. -Original Message- From: Gregory Beaver [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 6:08 AM To: Dmitry Stogov Cc: 'Stanislav

[PHP-DEV] Patch for bug# 41822

2007-10-05 Thread Rob Thompson
Here is a patch for bug 41822. The expand_filepath() function will not work in Solaris if a non-root user attempts to read a file under a directory with only (--x) permissions. Currently expand_path() returns NULL and no FD is opened, although the file is readable. This patch adds a last-ditch

Re: [PHP-DEV] Patch for bug# 41822

2007-10-05 Thread Antony Dovgal
On 05.10.2007 11:09, Rob Thompson wrote: Here is a patch for bug 41822. The expand_filepath() function will not work in Solaris if a non-root user attempts to read a file under a directory with only (--x) permissions. Currently expand_path() returns NULL and no FD is opened, although the

Re: [PHP-DEV] substr/array_slice in []

2007-10-05 Thread Derick Rethans
On Thu, 4 Oct 2007, Larry Garfield wrote: On Tuesday 02 October 2007, Alexey Zakhlestin wrote: On 10/1/07, Martin Alterisio [EMAIL PROTECTED] wrote: Sorry to bother, I have a few questions on this matter. How will this impact on the SPL ArrayAccess and related interfaces and objects?

[PHP-DEV] Patch for bug 42637

2007-10-05 Thread Bill Moran
I have added information on how I fixed #42637 to the ticket: http://bugs.php.net/bug.php?id=42637 It's a one-line fix. I'd be interested in others testing this in their environment and a developer reviewing it. It'd be nice to see it checked in for 5.2.5 -- Bill Moran Collaborative Fusion

[PHP-DEV] PHP 5.3 todo wiki update

2007-10-05 Thread Lukas Kahwe Smith
Hi, I updated the 5.3 todo list [1] yesterday evening. I also just spotted a minor mistake. I put the visibility patch under todo items, where it should have gone under future releases. We should also revisit the 5.2 todo list [2] and see if the items there are not yet done and if they

Re: [PHP-DEV] PHP 5.3 todo wiki update

2007-10-05 Thread Nuno Lopes
No, no and no! The gcc 4 -fvisibility patch wasn't rejected. It's a no-op and although it is only useful for gcc 4 users, it brings many benefits for them! So please keep that in the PHP 5.3 TODO. Nuno - Original Message - Hi, I updated the 5.3 todo list [1] yesterday evening. I

[PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread laurent jouanneau
(Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: ?php $username = $_GET['username']; echo Welcome back, $username\n; ? With default .ini settings, this program does exactly what the programmer wrote:

Re: [PHP-DEV] Patch for bug# 41822

2007-10-05 Thread Rob Thompson
Hi Antony, Antony Dovgal wrote: Rob, I believe you're looking into wrong place. You should be patching virtual_file_ex() in TSRM/tsrm_virtual_cwd.c, the root of all evils is there as this function is used by expand_filepath() and in all other places. Ok, originally was going to try

[PHP-DEV] snaps.php.net, 5.3

2007-10-05 Thread Alexey Zakhlestin
snaps.php.net doesn't have 5.3 yet. will it appear there? -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
laurent jouanneau: (Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: ?php $username = $_GET['username']; echo Welcome back, $username\n; ? With default .ini settings, this program

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread M. Sokolewicz
(Wietse Venema) wrote: laurent jouanneau: (Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: ?php $username = $_GET['username']; echo Welcome back, $username\n; ? With default .ini settings, this

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
M. Sokolewicz: (Wietse Venema) wrote: laurent jouanneau: (Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: ?php $username = $_GET['username']; echo Welcome back, $username\n; ? With

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Rasmus Lerdorf
Wietse Venema wrote: M. Sokolewicz: (Wietse Venema) wrote: laurent jouanneau: (Wietse Venema) wrote: To give an idea of the functionality, consider the following program with an obvious HTML injection bug: ?php $username = $_GET['username']; echo Welcome back, $username\n;

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not HTML, then I know that applying HTML-style restrictions is not

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Rasmus Lerdorf
Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not HTML, then I know that applying HTML-style

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not HTML, then I know

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Rasmus Lerdorf
Wietse Venema wrote: Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not HTML, then I

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Stut
Wietse Venema wrote: Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not HTML, then I

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Rasmus Lerdorf
Stut wrote: Wietse Venema wrote: Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is not

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Stut
Rasmus Lerdorf wrote: Stut wrote: Wietse Venema wrote: Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the

Re: [PHP-DEV] snaps.php.net, 5.3

2007-10-05 Thread Johannes Schlüter
Alexey, On Fri, 2007-10-05 at 19:36 +0400, Alexey Zakhlestin wrote: snaps.php.net doesn't have 5.3 yet. will it appear there? We know of the need and will get snaps one of the following days - once Edin configured all the pieces for yet another branch. Thanks for your patience. :-) johannes

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Rasmus Lerdorf: I don't think it's unreasonable to require scripts outputting content other than HTML to include a line that modifies the default behaviour. Surely the benefits far outweigh that cost. That's already there. They set the content-type. The problem becomes when they set it

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Stut: That's already there. They set the content-type. The problem becomes when they set it vs. when output goes out. It's also very common to turn on output buffering and buffer a bunch of stuff and then set the content-type just before flushing the buffer. Maybe it's enough for the

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Wietse Venema: Rasmus Lerdorf: Wietse Venema wrote: Rasmus Lerdorf: Consider very common (abbreviated) code like this: $user_data = $_REQUEST['data']; switch($output_format) { Question: where is the output format feature documented? Once I know the output format is

Re: [PHP-DEV] CVS Account Request: davidw

2007-10-05 Thread Derick Rethans
Hello Rasmus, could you please approve this account? regards, Derick On Fri, 7 Sep 2007, Yiduo (David) Wang wrote: Implementing and maintaining the reference cycle garbage collector (GSoC '07) for the Zend engine. -- Derick Rethans http://derickrethans.nl | http://ez.no |

[PHP-DEV] CVS Account Request: walter

2007-10-05 Thread Walter Hop
Developing PEAR Mail_MIME package. Suggested by [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] get_namespace()

2007-10-05 Thread Stanislav Malyshev
Not likely, since get_class already contains namespace. Michael Gauthier wrote: With PHP 5.3 will there be a get_namespace($object) function equivalent to get_class($object)? -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Greg Beaver
(Wietse Venema) wrote: Rasmus Lerdorf: I don't think it's unreasonable to require scripts outputting content other than HTML to include a line that modifies the default behaviour. Surely the benefits far outweigh that cost. That's already there. They set the content-type. The problem

Re: [PHP-DEV] substr/array_slice in []

2007-10-05 Thread Stanislav Malyshev
So it's okay to discuss implementation of esoteric features like class posing, but something as basic as a string/array slice operation still gets a knee-jerk reaction? Double standards my friends, double standards.. It's OK to discuss anything about PHP here, I guess. And if you like me to

[PHP-DEV] Re: RE : [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists()

2007-10-05 Thread Stanislav Malyshev
IMO, the point, here, is that, if the requested class starts with 'PEAR2', by convention, this name space is reserved and cannot be resolved by another handler. So, it is legitimate to want the PEAR2 Then loader should be able to tell the engine that it shouldn't try another handler. --

Re: [PHP-DEV] Re: PHP taint support: first results

2007-10-05 Thread Wietse Venema
Greg Beaver: [ Charset ISO-8859-1 unsupported, converting... ] (Wietse Venema) wrote: Rasmus Lerdorf: I don't think it's unreasonable to require scripts outputting content other than HTML to include a line that modifies the default behaviour. Surely the benefits far outweigh that cost.