« first day (4432 days earlier)      last day (507 days later) » 

1:05 AM
Glad that you clarified the best way to handle __set for asymmetric visibility rfc. Now it's not just a write-limitation that errors (how I perceived you intended it and also how readonly is right now) but more of a full fledged asymmetric visibility.
 
 
1 hour later…
2:24 AM
Thought about it a bit more and I still think an error might be simpler for now.
It's not at all clear what $obj->intProp++ should do and how will this be different that $obj->intProp += 1.
And, also, I am not completely convinced that __set() is really needed for a real use case that exists right now except for the aparent consistency. I am worried that it might be used more that it should and the user land code would just get more complex to understand than it really needs to.
 
3:08 AM
Also $obj->arayProp[] = 'x' should probably stay a error as well as $ref = &$obj->prop;
 
 
2 hours later…
5:21 AM
@AlexP using __get and __set to provide poor man’s set accessor/hook (ie a public property that has checks on set operations) is a common pattern.
Avis allows the boilerplate __get to be dropped and the property becomes a regular one for gets.
Pretty much most scenarios that property accessors/hooks is meant to provide, __set/__get can provide now, it’s just “uglier” and less obvious. I’m in favour of the hooks rfc (comments above notwithstanding) but making current usable behaviour “unsupported” when it’s not hard to support it is a shitty deal
:
 
 
2 hours later…
7:47 AM
hello guys, I'm trying to open a popup instead of new tab
the popup works, but my code still open new tab along with the popup
is there something wrong here?
echo "<td><a href='/cloudpass/viewpass.php?id=".$row['ID']."' class='btn btn-warning btn-sm' onclick='pop_up(this)'>View Password</a></td>";
this is the function:

function pop_up(url){
window.open(url,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=1076,height=768,directories=no,location=no')
}
 
 
7 hours later…
2:37 PM
You have to pass event itself to JS function
function pop_up(this, e) {
e.preventDefault()//which prevents browser's default behavior
//rest of JS code
}
 
3:19 PM
class Point { }
define("Point", "Point");
$p = new(Point, 3);
Parse error :(
Hm
 
3:52 PM
morns
 
 
2 hours later…
6:12 PM
jellow
@mega6382 playing any games lately?
 
 
3 hours later…
9:23 PM
Should $p = new "Point" be valid? Now you have to wrap the string in (), like $p = new ("Point");
 
 
2 hours later…
11:47 PM
@OlleHärstedt previously: $point = "Point"; $p = new $point; -- ("Point")
also previously (and now): $p2 = new $p; -- no clue about stringable.
 

« first day (4432 days earlier)      last day (507 days later) »