[RFC][VOTE] Constructor behaviour of internal classes

From: Date: Sun, 15 Mar 2015 16:09:07 +0000
Subject: [RFC][VOTE] Constructor behaviour of internal classes
Groups: php.internals 
Request: Send a blank email to internals+get-84844@lists.php.net to get a copy of this message
Hi List, The 'Constructor behaviour of internal classes' RFC is now in voting. Please note, it's the coding standard that is being voted on. If anyone thinks I've implemented the changes in a way that is less awesome then there is no reason the changes couldn't be improved. Additionally, while writing the change I noticed some things that were already present in the code, that are outside the scope of the RFC but ought to be fixed for the release of PHP 7. * Multiple examples of a generic Exception being thrown rather than a specific exception being thrown. * Code generating an error notice and throwing an exception. It should be one or the other, not both. * The text of exceptions in Intl not always being as informative as the error message, which could be improved. But as I said, the vote is on whether the standard behaviour of either returning a working instance or throwing an exception, is the standard behaviour we want in PHP. cheers Dan Ack

« previous php.internals (#84844) next »