I personally like the idea by Denis Portnov with the magic constant __VALUE__
which goes along with other magic constants documented here
http://www.php.net/manual/en/language.constants.predefined.php
But the advantage of the type hinting in the setter when we use set($value)
should be
Hi,
typehinting should definitely be available for this feature. But I have
another question. Why not go more consistent with the rest of the
language? I have mentioned this previously as the first proposal comes
up on the list. In my opinion the AS3 getter and setter
2012/10/9 Christian Kaps christian.k...@mohiva.com
Hi,
typehinting should definitely be available for this feature. But I have
another question. Why not go more consistent with the rest of the language?
I have mentioned this previously as the first proposal comes up on the
list. In my
Christian, I think a majority of your concerns are all for none.
From top to bottom:
- Extra indention: This is definitely a bias and is only moderately
relevant while documenting this feature.
- You *can* declare a public getter and private setter, or vice versa, or
whatever you want. This is
On Tue, Oct 9, 2012 at 12:59 AM, Tjerk Anne Meesters datib...@php.net wrote:
On Tue, Oct 9, 2012 at 12:14 AM, Nicolai Scheer sc...@planetavent.dewrote:
Hi!
We switched from php 5.3.10 to 5.3.17 this weekend and stumbled upon a
behaviour of stream_get_line that is most likely a bug and breaks
Hi,
I've managed to pinpoint the issue inside the code itself and attached a
patch for 5.4.4 (I can make one for trunk as well, but at the time of
writing I worked with what I had).
The bug manifests itself when delimiter size 1 AND the file pointer falls
in between a delimiter after filling
On Tue, Oct 9, 2012 at 5:10 AM, Tjerk Anne Meesters datib...@php.net wrote:
Hi,
I've managed to pinpoint the issue inside the code itself and attached a
patch for 5.4.4 (I can make one for trunk as well, but at the time of
writing I worked with what I had).
The bug manifests itself when
Hi!
Just read the comments for Bug #47584: WSDL error in soapClient causes
Fatal Error.
If a SoapClient is created and the WSDL can not be found, an Exception
is thrown:
?php
try
{
$x = new SoapClient( non-existent.wsdl, array( exceptions = 1 ) );
}
catch ( Exception $e )
{
echo
On Thu, Oct 4, 2012 at 9:45 AM, Derick Rethans der...@php.net wrote:
On Sun, 30 Sep 2012, Stas Malyshev wrote:
I was looking into generators topic and I couldn't find answer to this
question: how generators are supposed to interact with PHP tools, such
as debuggers, profilers, etc.?
On Tue, 9 Oct 2012, Nikita Popov wrote:
On Thu, Oct 4, 2012 at 9:45 AM, Derick Rethans der...@php.net wrote:
On Sun, 30 Sep 2012, Stas Malyshev wrote:
I was looking into generators topic and I couldn't find answer to
this question: how generators are supposed to interact with PHP
On Mon, Oct 8, 2012 at 1:52 PM, Clint Priest cpri...@zerocue.com wrote:
It's been a while since I posted any updates about this, a few individuals
have been asking about it privately and wanting me to get it out the door for
PHP 5.5 release. It's come a long way since the last time I posted
Hi,
On Tue, Oct 9, 2012 at 3:01 PM, Nikita Popov nikita@gmail.com wrote:
On Mon, Oct 8, 2012 at 1:52 PM, Clint Priest cpri...@zerocue.com wrote:
It's been a while since I posted any updates about this, a few individuals
have been asking about it privately and wanting me to get it out the
What concerns me with the current implementation is that it leaks many
implementation details, in particular the fact that the accessors are
implemented as *real* __getXYZ methods and automatic implementations
also use *real* $__XYZ properties.
Further to this, take the following example.
Is there a reason why we cannot implement this using PHP's already widely used
function syntax:
class TimePeriod {
private $Seconds = 3600;
public $Hours {
public function get() { return $this-Seconds / 3600; }
private function set($value) { $this-Seconds = $value; }
RFC Document: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented
public $property {
set { $this-property = ($this-property*2)+$value }
get;
}
How do I reference the property being set from within the function? The way
I have done it in the example will cause recursion? How can I
This looks great, and essentially has everything I had hoped for!
My only remaining comment is on the read-only and write-only keywords...
this seems really superfluous and strange to me - the syntax (using a
hyphenated keyword) and the feature itself, is way off the grid as compared
to other
On Mon, 2012-10-08 at 11:52 +, Clint Priest wrote:
It's been a while since I posted any updates about this, a few individuals
have been asking about it privately and wanting me to get it out the door for
PHP 5.5 release. It's come a long way since the last time I posted about it.
RFC
I think Leigh brings up some important flaws to in the current RFC. What
Leigh is asking for does not appear to be possible, and in my opinion, it
should be.
I also agree with Rasmus, to a certain extent.
By putting only a getter/setter, the developer essentially sets the
property as read or
On 09/10/12 19:20, Jazzer Dane wrote:
- If we ever get return type hinting/checks then we needn't consider how
the syntax has to look From what I know, this isn't planned for PHP 5.5
and any proposals for it have been largely ignored. Return type hinting
won't help when setting either, although
Wow, I'm surprised by all the talk about this RFC this time around. I posted
this numerous times in the past trying to elicit feedback and got little to
none, so I took the time to write it as I thought it should be written. Some
of these things will take considerable effort to
20 matches
Mail list logo