Re: [PHP-DEV] CAPTCHA program on CVS account request?

2007-06-18 Thread Jason Sweat
On 6/18/07, Hannes Magnusson <[EMAIL PROTECTED]> wrote: Hi On 6/18/07, Gwynne Raskind <[EMAIL PROTECTED]> wrote: > On Jun 18, 2007, at 4:01 PM, Tijnema wrote: > > Hello, > > > > I see that there is a lot of spam coming to this list through the CVS > > account request form, I think it would be go

Re: [PHP-DEV] Method inheritance and parent classes

2006-08-04 Thread Jason Sweat
On 8/4/06, Christian Weiske <[EMAIL PROTECTED]> wrote: I suggest changing the behavior of php to never call methods of classes that are added by subclasses, only own ones or inherited ones. Thus rendering the entire Template Method design pattern useless? http://home.earthlink.net/~huston2/dp/

Re: [PHP-DEV] Date flamewar summary

2006-07-19 Thread Jason Sweat
On 7/19/06, Alan Knowles <[EMAIL PROTECTED]> wrote: +1 for adding the namespace patch in :) - oh well I can always dream... Regards Alan +1 dreamer ( and +1 annoying de-lurker voting because he thinks it is american idol ;) Regards, Jason http://blog.casey-sweat.us/ -- PHP Internals - PHP Ru

Re: [PHP-DEV] why is '01' == '1.'?

2005-12-15 Thread Jason Sweat
On 12/14/05, Greg Beaver <[EMAIL PROTECTED]> wrote: > In this case, a string is explicitly being compared to a string, and yet > both are being converted to an int prior to comparison. I can > understand that implicit type conversion is needed when comparing > strings to ints, but this can be dang

Re: [PHP-DEV] Re: namespace separator poll, update

2005-11-27 Thread Jason Sweat
On 11/27/05, Sara Golemon <[EMAIL PROTECTED]> wrote: > > Other possibilities: > ** Double-Star+2 > ;;Double-Semicolon +2 > >>> Reverse Heredoc Operator -1 > ?? Double Question -1 > > -Sara I think we should use a non breaking space ( \xA0 ) as the separator, after all namespace class-

Re: [PHP-DEV] $ref =& $this;

2005-10-03 Thread Jason Sweat
On 10/3/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Dmitry, > > that IS NOT proper code and it wasn't in php 4 either, it was only a > workaround that is no longer needed. Had the php 4 design been correct in > the first place that wouldn't have been allowed in 4 either. Since BC is not

Re: [PHP-DEV] unable to create class from constant

2005-09-19 Thread Jason Sweat
On 9/19/05, Xuefer <[EMAIL PROTECTED]> wrote: > wrong list. :) My question was not "how do I work around this?". I included that in my original post. My question was "why is it like this?" which I thought was more germane to the internals list. An unquoted string would have to first be thought

[PHP-DEV] unable to create class from constant

2005-09-19 Thread Jason Sweat
I ran across this today and it surprised me: $ php -r 'define("X", "stdClass"); $x = new X; var_dump($x);'; Fatal error: Cannot instantiate non-existent class: x in Command line code on line 1 I tested on php 4.4.0, 4.3.8 and 5.0.3, with the result that all versions exhibit the same behavior. C

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-14 Thread Jason Sweat
On 8/14/05, George Schlossnagle <[EMAIL PROTECTED]> wrote: > > On Aug 14, 2005, at 3:37 PM, Jani Taskinen wrote: > > > On Sun, 14 Aug 2005, Ilia Alshanetsky wrote: > > > > > >> If apc comes bundled then it includes apc_store() and apc_fetch() > >> this > >> is pretty much $_MEMORY with a few twea

Re: [PHP-DEV] Re: SOAP SSL support doesn't work when allow_url_fopen is turned off

2005-07-28 Thread Jason Sweat
On 7/28/05, Sean Coates <[EMAIL PROTECTED]> wrote: > >> That won't work, eval() is not a function... > > > > Ah yes, you're right... I guess we do need another INI setting. > > Or constructs-that-look-like-functions could be governed by > disable_functions (eval, echo).. that would cause other pro

Re: [PHP-DEV] Is it possible to add changes to 4.x version?

2005-06-21 Thread Jason Sweat
On 6/21/05, Derick Rethans <[EMAIL PROTECTED]> wrote: > > 4.4 version is a stable bug-fix branch too? > > Yes, it's just named to 4.4 because a backward incompatible change in > PHP was put in to get rid of the reference related bugs. > I thought it was renamed so Ilia could hand the release coo

Re: [PHP-DEV] Re: new overloading feature?

2005-05-10 Thread Jason Sweat
On 5/10/05, Markus Fischer <[EMAIL PROTECTED]> wrote: > When the class is named SomeLongNameBecauseWedontHaveNamespaces and I > define a SELF_EXPLAINING_CONSTANT_NUMBER_ONE I've to write > SomeLongNameBecauseWedontHaveNamespaces::SELF_EXPLAINING_CONSTANT_NUMBER_ONE > to access it from within the cl

Re: [PHP-DEV] Re: make new return a reference to existent object

2005-05-09 Thread Jason Sweat
On 5/9/05, Sara Golemon <[EMAIL PROTECTED]> wrote: > > I would like (for code cleanliness purposes) to make 'new' > > return a reference to an already created object under certain > > circumstances without using a factory, is it possible? > > > * Sara whispers "old" into the conversation and runs a

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Jason Sweat
On Wed, 23 Mar 2005 09:01:09 +0800, Christopher Kings-Lynne <[EMAIL PROTECTED]> wrote: > Hi Dan, > > What I mean is, will PDO happily parse this PostgreSQL statement and > substitute the two variables correctly? > > SELECT '?', ? from "?" where ? = $_$?$_$; Oracle has bound variables, but you ca

Re: [PHP-DEV] referencing Superglobals with variable variables inside functions

2005-01-31 Thread Jason Sweat
On Mon, 31 Jan 2005 19:27:31 +0100, Michael Virnstein <[EMAIL PROTECTED]> wrote: > Atm it isn't possible to use a construct like $var = ${'_GET'}; inside a > function or method. Will this behaviour change in future versions of > PHP? I think it is somehow odd and inconsistent to not be able to use

Re: [PHP-DEV] bit of an odd bug

2005-01-04 Thread Jason Sweat
On Tue, 04 Jan 2005 02:59:22 +, Gareth Ardron <[EMAIL PROTECTED]> wrote: > Ok, I'm in need of a sanity check here. > > step one: > $input = "foo"; > $scanning_class = "clamav"; > $result = $scanning_class::scanBuffer($input); > now this fails with a "Parse error: parse error, unexpected > T_PA

[PHP-DEV] debug_backtrace and static methods.

2004-11-14 Thread Jason Sweat
I am not sure if this should be considered a bug. If it should be, I would be happy to report it. I did a search for debug_backtrace and static and found no hits in the bug database. If you call a static method from inside of another classes method, debug_backtrace reports the calls as being a me