Re: towards a 5.3 release

From: Date: Thu, 24 Jul 2008 19:40:06 +0000
Subject: Re: towards a 5.3 release
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-39280@lists.php.net to get a copy of this message
Hi!
b.php: <?php namespace Foo; class A {
    function __construct() {throw new Exception('hi');}
Here in your proposal exhaustive autoload happens for all cases where you do not actually override Exception in Foo.
<?php include 'a.php'; include 'b.php'; try { $a = new A; } catch (Foo::Exception $e) { echo "caught\n"; } ?> throws a Foo::Exception and echoes "caught", demonstrating the importance of load order as well.
You could do use Foo::Exception in b.php too, to solve it.
Stas, your response is quite frustrating to this problem and fits a pattern. It seems the default response is always "no" or "that's not a real problem" and is almost always condescending. It makes it extremely
No, there's no "default response". Just in this case it happens that your proposal introduces significant problem - performance hit on some innocent construct without any indication of it happening. And the solution for it that you propose is not better than the original state of affairs - doing "use" solves both cases, and if not doing "use" then your case has more problems. It has nothing to do with me or you - it has to do with how things work in the engine.
difficult to have an intelligent debate with you. If you don't think something is a real problem, perhaps a better default response is "why
I think it is a problem, however I do not think this solution is going to make things better. I am sorry if it looked like condescending to you, it was not my intent. However, the conclusion still stays - I think as proposed, this solution introduces more problems than solves. I would be happy to find a solution that is better - and I am looking for one - but right not it isn't good enough. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#39280) next »