Re: [PHP-DEV] new feature - with()

2007-10-10 Thread Stut
how many source files I have that contain long sections where each line contains multiple references to the same object. -Stut -- http://stut.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] new feature - with()

2007-10-10 Thread Stut
Rasmus Lerdorf wrote: Stut wrote: It may not be clear to some people, but there are many things in the every language that aren't necessarily obvious and I don't think that's a reason not to implement something. I think that is one of the strongest reasons not to implement something actually

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

2007-10-05 Thread Stut
outputting content other than HTML to include a line that modifies the default behaviour. Surely the benefits far outweigh that cost. -Stut -- http://stut.net/ -- 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 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

Re: [PHP-DEV] RE : Namespaces and __autoload()

2007-09-12 Thread Stut
looking for interface or class. Both are possible. This would need to come from the user implementation of __autoload through naming conventions or a lookup table. PHP does not get involved with resolving a type to a filename, and rightly so. -Stut -- http://stut.net/ -- PHP Internals - PHP

[PHP-DEV] Re: RE : [PHP-DEV] RE : Namespaces and __autoload()

2007-09-12 Thread Stut
LAUPRETRE François (P) wrote: From: Stut [mailto:[EMAIL PROTECTED] This would need to come from the user implementation of __autoload through naming conventions or a lookup table. PHP does not get involved with resolving a type to a filename, and rightly so. The question is not to have PHP

Re: [PHP-DEV] buildconf and the generated configure script for PHP6 is faulty [the fix].

2007-09-04 Thread Stut
idiotic attitude I've ever come across. -Stut BuildSmart wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 4, 2007, at 09:02:23, Hartmut Holzgraefe wrote: Dear Mr BuildSmart BuildSmart wrote: SInce I didn't consider it a bug but rather a minor error of importance, just out

[PHP-DEV] Addslashes still recommended for DB input

2007-08-21 Thread Stut
addslashes() on each input element you wish to send to a database. As far as I was aware addslashes is inadequate for this purpose. Should this not point people to use database-specific escaping functions rather than addslashes? -Stut -- http://stut.net/ -- PHP Internals - PHP Runtime

Re: [PHP-DEV] RIP PHP 4?

2007-07-11 Thread Stut
is that it's slower. I'd be interested in any material you have to back up that statement. -Stut -- http://stut.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: documentation of php5ts.dll and .NET wrapper

2007-06-19 Thread Stut
, it just looks right (parameters are separated by a comma not a space). Because those macros may be defined as empty, meaning you'd be trying to compile... php_myextension_globals_ctor(myextension_globals , ); ...which the compiler is not gonna like at all. -Stut -- http://stut.net/ -- PHP

Re: [PHP-DEV] Creating a class in a php extension

2007-06-19 Thread Stut
an extension. Is there any documentation on this? If not, can someone point me in the right direction? Buy the book: Extending and Embedding PHP by Sara Goleman. It covers classes and a whole lot more. Required reading for anyone developing PHP extensions. -Stut -- http://stut.net/ -- PHP

[PHP-DEV] Session security

2007-05-29 Thread Stut
Hi all, Just wanted to get your opinion on a discussion currently going on on the general list. Why does the PHP session extension not use something like the user agent to validate that a session ID has not been hijacked? Or is this something that just hasn't been implemented yet? -Stut

Re: [PHP-DEV] Session security

2007-05-29 Thread Stut
, but that's really a secondary goal ;) Cheers. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Session security

2007-05-29 Thread Stut
of my question. The answer seems to be that you can't do it reliably. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Session security

2007-05-29 Thread Stut
Robert Cummings wrote: On Tue, 2007-05-29 at 21:11 +0100, Stut wrote: Rasmus Lerdorf wrote: Stanislav Malyshev wrote: The session store is just a session store. It is not a login/authentication mechanism and thus doesn't have any of the protections you might want to add to that. Therefore

Re: [PHP-DEV] PHP 6 Preview

2007-05-19 Thread Stut
correctly and against the right category/project. At least then you can get an accurate picture from the bug list. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-14 Thread Stut
; ? What a mess!... I agree, but I do like the ?= tag. Personally I would like to see short tags dropped but retain support for ?= as it makes templates a lot easier to read, i.e. ?=$var? against ?php print $var; ?. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: [PHP-DEV] dropping asp_tags in HEAD

2007-04-12 Thread Stut
. Yeah, one setting in php.ini against any number of tags in any number of scripts. Now that's what I call a reasoned argument. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mail() logging for PHP

2006-12-14 Thread Stut
that I don't think that's too much information for a mail header, and it's exactly what would be needed. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mail() logging for PHP

2006-12-13 Thread Stut
be better to have an option that would provide the domain name and the filename relative to the site root (if available). Also, I'm assuming this is configurable via php_flag in an Apache configuration file? -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] mail() logging for PHP

2006-12-13 Thread Stut
Ilia Alshanetsky wrote: On 13-Dec-06, at 5:12 PM, Stut wrote: Ilia Alshanetsky wrote: Is there any interest in adding support for logging of mail() calls and/or adding options that allow identification of who sent the e-mail. I've wrote a quick patch that enables this functionality via two

Re: [PHP-DEV] SimpleXML: A bug or just an annoyance?

2006-11-13 Thread Stut
it much, but I believe you need to cast attributes coming out of SimpleXML, in this case probably to an int. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RE : Re: __autoloading and functions

2006-10-02 Thread Stut
they have achieved using that attitude I would think twice before criticising it. Bit of a ramble, sorry about that. Hopefully this won't be taken as a flame, just a response from an outside observer. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] Re: Building C++ extensions

2006-09-26 Thread Stut
your book, but this couldn't wait until it arrives. Thanks again. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Building C++ extensions

2006-09-25 Thread Stut
) PHP_REQUIRE_CXX() fi I had expected the PHP_REQUIRE_CXX() macro to trigger a change to the link command, but it does not seem to have done anything beyond influencing what is used to compile the extension itself. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: [PHP-DEV] auto_globals_jit breaks $_SERVER var

2006-08-15 Thread Stut
all the superglobals are empty. Turning off auto_globals_jit fixes it, as does disabling the Zend Platform. Dunno if that helps you or not. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] config.w32 quirk

2006-08-14 Thread Stut
. This change will require the ARG_ to start a the begining of the line. No need for such a requirement. I don't know whether the JS regex is PCRE or not, but I believe something like this will solve that issue... re = new RegExp(^\s*(ARG_(ENABLE|WITH)\([^;]+\);), gm); -Stut -- PHP Internals

Re: [PHP-DEV] New Installer for PHP 5.2

2006-07-24 Thread Stut
and configure others if needed. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] Typo in phpize.in

2006-07-23 Thread Stut
I've just started developing a new extension, checked out the latest source and found this snafu. I assume it's a typo. -Stut Index: phpize.in === RCS file: /repository/php-src/scripts/phpize.in,v retrieving revision 1.32 diff -u -u

Re: [PHP-DEV] PEAR::Date broken (Was: [PHP-CVS] cvs: php-src(PHP_5_2) /ext/date php_date.c php_date.h)

2006-07-18 Thread Stut
not experienced enough to know the implementation implications. It would certainly need an INI flag to enable/disable it but I would suggest that it be enabled by default. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Shared hashtable

2006-05-03 Thread Stut
extension using MODULE_GLOBALS the results of which suggest that these variables are per process. I'm just looking for some confirmation that shared memory is the way to go before I jump down that particular black hole. TIA. -Stut -- PHP Internals - PHP Runtime Development Mailing List

[PHP-DEV] Fatal error 'Unable to read from thread kernel pipe' when using mail function

2005-12-17 Thread Stut
and Postfix. Cheers. -Stut -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Fatal error 'Unable to read from thread kernel pipe' when using mail function

2005-12-17 Thread Stut
, but I can use system and passthru without any issues. I'm fairly certain it's not related to Apache2. -Stut On 17/12/05, Jani Taskinen [EMAIL PROTECTED] wrote: You need to use the prefork MPM within Apache2. Rebuilding apache like that propably wont make any difference. And you

Re: [PHP-DEV] Fatal error 'Unable to read from thread kernel pipe' when using mail function

2005-12-17 Thread Stut
As far as I can tell it is using the prefork MPM since I believe this is the default option for building it with the FreeBSD port. How can I tell for sure? Thanks. -Stut On 17/12/05, Jani Taskinen [EMAIL PROTECTED] wrote: You need to use the prefork MPM within Apache2. Rebuilding