[PHP-DEV] Re: New construct discussion Summary

2004-07-12 Thread Bert Slagter
Marc Richards wrote: 3) So this leaves a function call which begs two questions: What do we call it, and what is the function syntax. (a) What do we call it We have a function that pretty much serves the same purpose: makeset($var, 'default'). The name was born because this function was made to

[PHP-DEV] Re: PHP 5.0 crash on long php script with over 1000 lines

2004-07-09 Thread Bert Slagter
Gunnar Von Boehn wrote: Normally this PHP and Apache build runs fine. I noticed that all long scripts (over 1000 lines) will kill the Apache/PHP build. I verified this with a very simple test script "; $i++ print "$i"; ...[1000 more lines like the above].. ?> Script with 1000 or less lines run fi

[PHP-DEV] Re: Memory manager

2004-07-09 Thread Bert Slagter
Andi Gutmans wrote: As I'd like to roll 5.0.0 by the end of the week, can developers please speak up if they have anything critical they are working on? Andi Still heading for end of this week? Bert -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

[PHP-DEV] Re: keyword arguments?

2004-06-23 Thread Bert Slagter
Even after reading your message twice, I can't think of an example where this would be useful. Obviously, I don't understand your intention. Could you give an example of a construction that is made possible by this feature (and thus would otherwise be impossible)? Bert Daniel Crookston wrote: I

Re: [PHP-DEV] The open letter to Derick Rethans

2004-06-16 Thread Bert Slagter
Stanislav Malyshev wrote: > I understand that you are fully confident that you code would always work. Well, I'm not quite sure of this. Almost EVERY new piece of code Alexander posted on php.internals was followed by one or more revisions within one or two days! For me, this means that the ch

Re: [PHP-DEV] The open letter to Derick Rethans

2004-06-15 Thread Bert Slagter
Thomas Goyne wrote: As a user, I personally see placing new features over making old features work better a large mistake. Perhaps that was necessary back in the days of PHP3, but its been a very long time since I've run into simply not being able to do something. Quite often, however, I've

Re: [PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Bert Slagter
Derick Rethans wrote: On Wed, 9 Jun 2004, Stephan Schmidt wrote: Yes, that is correct. No, it is not. 'copying' a variable copies the structure to contain the variable, but not the data, but does NOT make a reference as that's a different concept. You are right that the data associated with a vari

[PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-09 Thread Bert Slagter
Sara Golemon wrote: Every "variable" in PHP is a pair. > > [cut] $foo = 1; /*$foo (label) >1 (value) (is_ref=0, refcount=1) */ $bar = &$foo; /* $foo (label) -->1 (value) */ /* $bar (label) ---/ is_ref=1, refcount=2 */ Hope that helps. -Sara Thanks fo

Re: [PHP-DEV] PHP5 RC3

2004-06-07 Thread Bert Slagter
WinXP, Apache 1.3.29, PHP 5 CVS Snap (PHP Version 5.0.0RC3RC2, Built On: Jun 07, 2004 06:30 GMT): Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host 'a' (11001) in d:\htdocs_php5\z.php on line 3 No further problems. Bert Andi Gutmans wrote: I can't reproduce and I want

Re: [PHP-DEV] Use of 'self' in static function in subclass

2004-06-01 Thread Bert Slagter
Ferdinand Beyer wrote: He should define an abstract method Foo::Baz() here. This is a minimal testcase, in my real life situation there indeed is a 'abstract static function Baz();' in Class Foo. But indeed, then a "Fatal error: Cannot call abstract method Foo::Baz() in.." arises.. Bert -- PHP I

[PHP-DEV] Use of 'self' in static function in subclass

2004-06-01 Thread Bert Slagter
Hi All, I have a class and a subclass, both with a static method: class Foo2 extends Foo { static function Baz() { echo 'Baz'; } } Foo2::Bar(); ?> In this case I expect to find 'Baz' on my screen, but I get the following: "Fatal error: Call to undefined met

Re: [PHP-DEV] [patch] re-invoking default error handler

2004-05-28 Thread Bert Slagter
Bert Slagter wrote: Now I add a custom errorhandler: --- function myErrorHandler($errno, $errstr, $errfile, $errline) {print "We've got a $errno on line $errline in $errfile!"; } set_error_handler('myErrorHandler'); error_reporting(0); Hm, i tried ma

Re: [PHP-DEV] [patch] re-invoking default error handler

2004-05-28 Thread Bert Slagter
Derick Rethans wrote: On Fri, 28 May 2004, Bert Slagter wrote: > E_STRICT can not be handled you say, can you give a small example script on that? regards, Derick Of course :) --- foo = 0; class Foo { var $baz; function bar() { } } class Foo2 exte

Re: [PHP-DEV] [patch] re-invoking default error handler

2004-05-27 Thread Bert Slagter
Sara Golemon wrote: This just means replacing the first line of that patch with: if (Z_TYPE_P(retval) != IS_NULL && !zend_is_true(retval)) { This would be fine with me. What do we all thing about feasibility of this patch going into PHP 5? +0 No great harm in doing it, but for myself if I'm go

Re: [PHP-DEV] Extending internal classes like mysqli

2004-05-25 Thread Bert Slagter
there any chance this will get better soon? I heard on the PHP Conference in Amsterdam that both PHP 5 and MySQL 4.1 are expected to be final somewhere this summer, so I'd expect some improvement in this extension soon ;) Bert Bert Slagter wrote: Hi Marcus, Thanks for your clear answer :). What

Re: [PHP-DEV] Extending internal classes like mysqli

2004-05-21 Thread Bert Slagter
thread_id isn't available for example. Is this intended behaviour? Bert Slagter -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Extending internal classes like mysqli

2004-05-21 Thread Bert Slagter
be able to just do: class foo extends mysqli { } $foo = new foo(); Right now this doesn't work - the variable $foo->thread_id isn't available for example. Is this intended behaviour? Bert Slagter -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php