« first day (2022 days earlier)      last day (2925 days later) » 

7:01 PM
Btw, has anyone every used WorldRemit?
 
Depends on what they mean by exp(2*x) is that meant to be 2^x you think?
 
e^2x
?
 
Friends. I am still struggling with something that is probably really basic. Please can someone help me: stackoverflow.com/questions/36943598/…
 
@Sara $$/**/{} MUAHAHAHAHA
 
:p
ugh
Okay, maybe this needs to be in the parser somewhere...
 
7:05 PM
This is why we all love PHP so much :D
 
Yeah... "love" :p
 
s/love/hate
 
I'm half tempted to change the token into $% or something
 
Anonymous
@NikiC speak for yourself :)
 
HackLang doesn't have this problem because it disallows variable variables
 
7:12 PM
@Sara But HHVM has this problem, right?
 
@NikiC No, because |> is only enabled in Hack mode
 
@Sara I recommend €€
@Sara Ah, I see
 
hahaha
$> doesn't seem entirely unreasonable, actually
hrmmm, wait...
Hack does allow variable variables in non-strict code...
wtf
 
I HAVE RETURNED!!! MUAHAHAHAHAHAAAAA!!!
 
Okay, how do they resolve this then
 
7:14 PM
@cv-pls Ugh, not that guy again
 
Hah, they don't.
$$ just takes over and $${'foo'} style expressions can't kick in
 
huh
 
Who is @cv-pls is it another Jeeves' test account?
 
I was so certain that HHVM does not allow null $this
 
Oh, no wait... they can, just not the whitespace/commenty versions...
<ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE,ST_VAR_OFFSET>"$$"/[^a-zA-Z_\x7f-\xff${] {
 
7:16 PM
Must have confused this with something
 
I missed the ${ at the end there :p
Surprise, it's exactly the rule I had (before adding the whitespace case
 
@Saitama It's my general sock-puppet account for testing random things on SO. It was originally supposed to be a bot I think, but it was so long ago that I can't remember
 
I see....
 
Why does this only return one row? When there's 76 rows in the DB.
for($i=1; $i < 41; $i++) {
$row = mysqli_fetch_assoc($result3);
echo '<p>' . $row['user'] . '</p>';
}
 
@Sara Is there some case where HHVM forbids $this to be null or did I hallucinate this entirely?
 
7:21 PM
@NikiC I think (not sure) that HHVM allows foo::instanceMethod(); and you get a null $this
I honestly can't recall
 
Okay, then I must've just imagined it
 
I feel like I'm headed down a rabbit hole trying to make $$ work, so fuck it. $> it is then.
 
@Sara eh
Just ignore the issue
It's not like anybody will try that anyway :D
 
Yes, but it is a legit BC break
Maybe I'll just note it in the RFC and wait for someone to complain
 
$$ is pronounced bling-bling?
 
7:27 PM
If you're going to run a sweepstakes on that, I'll take 15 seconds
 
0010 0100 0010 0100
 
Maybe that's what I should call the token: T_BLING_BLING
 
Ekn
Good evenings
 
What would $$ do, as a operator
\o Ekin
 
@Sara totally!
 
7:32 PM
Curious to try out @HipHopVM's new Pipe Operator? https://docs.hhvm.com/hack/operators/pipe-operator Try it out in PHP7: https://github.com/sgolemon/php-src/tree/pipe.operator Coming soon to an RFC.
 
ah
thanks at first it reminded me of scalas _
 
!!urban dolla, dolla, bill ya'll
 
whatchoo talkin bout willis
 
Who made the Jeeves config file in yaml??? :-(
 
or.. it is abit like the _ in scala?
 
7:42 PM
That is the sound of no-one caring about Scala, in case you were wondering
5
 
7:54 PM
Night!
 
cool - still light at 9pm....
 
it's great until you wake up from a nap and it takes you a while to figure out which 9:00 it is
 
yah - I'm ill, feel asleep yesterday at 7pm, woke at about 5am. Still light.
 
ping @bwoebi?
 
Did you say ping bob?
 
8:10 PM
Yes, if he's about
Although generally, has anyone had issues with DNS lookups failing for seemingly no reason in amphp?
8.8.8.8 is sporadically giving me back DNS responses with a trailing 0x20 byte on the end
Which is causing libdns to explode because it considers the message malformed (which it is)
But because the length of the record can be determined ahead of time I'm just wondering if it might be worth removing the check for trailing data, or at least making it configurable
/cc @rdlowrey ^
/cc @kelunik
I'm now wondering if my router is doing some weird proxying and mangling the packets or something
because I feel like someone would have noticed this before now
 
@Sara: T_דולר כפול
@Sara: Hack 3.13 allows variable variables ; this is a bug, and will be fixed
3
3.12 doesn't, 3.14 won't :)
probably broken by introducing the pipe operator - previous problem was '$foo' from '$$foo' contains invalid characters
yep, fix is up - pipe operator effectively made $$ a T_VARVAR in the typechecker parser, but the validation is only applied to T_VAR
 
8:28 PM
hahahaha
That's funny
 
Little surprised this wasn't caught by the normal tests - we found it from the docs site tests
 
Greeting!!
 
Ekn
Funny its gonna be 3.14
 
Php how to remove/delete tag with specific string in QueryPath? See Question :: stackoverflow.com/questions/36946793/…
 
@Ekn fwiw, there was a PHP 3.0.14
Note quite as cool, but.... eh
 
Ekn
8:33 PM
Heh :)
 
Hello everyone.
 
We missed our April 1st opportunity to update to HHVM 6 :(
 
@FredEmmott We made PHP6 jokes last year anyway
 
someone's PR broke stuff because they had an emoji in the summary :p
 
8:38 PM
I tried something like:

$r= p($path,'user')->find("urls>link")->
filter("link:contains('<link> www.weblink-4.com</link>')");
print "<h1>".$r."</h1>";.... Still no Success ... http://stackoverflow.com/questions/36946793/php-how-to-remove-delete-tag-with-specific-string-in-querypath
 
Why on earth would that have broken anything?
Emoji is just high-octet garbage as far as the parser's concerned
or quoted-printable garbage, anyway
 
1. hg 'sometimes' messes up stuff
2. emoji aren't in the BMP. They dont' fit in the utf8 mysql field type
 
@DaveRandom we have sporadic issues on a server running crawlers every 10 minutes, but don't know whether that's related. /CC @bwoebi
Also, we aren't using 8.8.8.8 as default anymore, just on Windows
 
2. needed a load of tables alterintg to utf8mb4
 
"My PR report: We are an immature company who gleefully puts piles of poo in our PR reports!"
 
8:40 PM
@UniversalGrasp no idea wtf querypath is, but it's pretty easy with the dom and xpath ideone.com/DwWjHn
 
IIRC it was bacon
 
@kelunik Using the OS default on *nix?
 
@Ghedipunk "See attached"
 
Yup
 
How to filter the tag that has a certain string in PHP? .... stackoverflow.com/questions/36946793/…
@PaulCrovella thx.... let me try that
 
8:41 PM
@FredEmmott because MySQL utf8 isn't utf8
 
yup.
 
@UniversalGrasp "This should be simple but turning to be rather very stressful." ... Welcome to the world of parsing data from text.
 
1. hg export's behavior for 'C' locale is supposed to be to convert to US-ASCII, but it doesn't consistently do it, and it usually ends up actually preserving UTF-8
but it didn't here.
by comparison, git's behavior is just "oh, here's some bytes" :p
 
facepalm.gif
But okay, that makes sense.
 
Still having the worst time trying to get my wordpress portfolio items to display differently when they have a 'sold' tag. Would I use the has_tag() function? And where? stackoverflow.com/questions/36943598/…
 
8:44 PM
Yay for hg being locale aware.... I guess
 
@Ghedipunk.... hehehe.... Banging the head on everything I see... i.e Keybord, Wall, Door... etc... lol
 
@Ghedipunk use the right tools for the right text and it's not so bad
 
@PaulCrovella You sound just like my carpenter who told me that I should use more tools than just my hammer.
 
try a sawzall, they're fun
 
8:47 PM
I suspect it should go here somewhere prnt.sc/aydsj7
 
I used a thing kinda like that for demolition.. but it was metal and 4 feet long
 
@PaulCrovella....
I tried::::::
-----------
$path = "path/to/xmlFile.xml";

$dom = new DOMDocument();
$dom->load($path);

$xpath = new DOMXPath($dom);

foreach($xpath->query('//item[contains(., "www.weblink-4.com")]') as $node) {
$node->parentNode->removeChild($node);
}

echo $dom->saveXML($path);/// This line reports an ERROR:::......... Catchable fatal error: Argument 1 passed to DOMDocument::saveXML() must be an instance of DOMNode, string given, called in ... Any Idea?.. http://stackoverflow.com/questions/36946793/php-how-to-remove-delete-tag-with-specific-string-in-querypath
 
@UniversalGrasp please use something like gist or pastbin instead of pasting large chunks of code in here
 
@kelunik github.com/DaveRandom/LibDNS/releases/tag/v1.1.0 see if that helps (you'll need to set it to true for it to have any effect)
 
@PaulCrovella .... Noted.... (Just an effect of heavily banging the Head)... Thx!!
 
8:52 PM
@UniversalGrasp Also, it's considered bad manners to cross-post from SO questions without waiting at least 24 hours. You waited 20 minutes. If you need your answer urgently, then both SO and chat are bad places to ask, you should be finding someone in person.
 
@UniversalGrasp and read the docs for the methods you're using saveXML doesn't take a file path, if you want to write directly back to a file use save
 
@Ghedipunk... Am the only Programmer in the whole Village... Heard to get someone.. This is kinda very urgent thats why
****Hard
 
"This is kinda very urgent" urgent for who?
 
Chat is a bad place to inspect long lines of code anyways. Really, if your question doesn't get closed for being a duplicate (which is good news, because you'll be directed to questions that have already had this answered), then you'll get a good answer shortly, and if you don't get an answer in 24 hours, you can put a bounty on the question.
 
@PaulCrovella ... Thanks Works... Now how do i Accept you answer?? :)
 
8:56 PM
@UniversalGrasp you can write it up and self-answer your own question, then accept that
 
@PaulCrovella You deserve to earn some "Privileges" I guess
 
nah, my next privilege is seeing deleted trash - I'd rather be spared that anyway
 
@PaulCrovella You're pretty good. You should flex your php muscle on something a bit more advanced like my thing though. :)
 
SO is depressing enough as is
 
@PaulCrovella ... Hehe.. Cool then, I owe you a beer though!
 
9:00 PM
@kelunik something weird going on chat.stackoverflow.com/transcript/message/30257652#30257652 as well?
 
@UniversalGrasp tell ya what - you do what you can to learn to use the dom and xpath instead of that weird jqueryish stuff and we'll call it even
 
posted on April 29, 2016 by DaveRandom

Added the `$allowTrailingData` decoder option for badly behaved servers

 
@PaulCrovella that's true buddy.... Too much jQuery makes you drawn in PHP at times when you start chasing jQuery's next of Kins like QueryPath and the likes
 
Yeh I wondered about that, maybe a merge gone weird
I think that's @kelunik's handywork so I'll let him fix it (nothing to do with the fact that I cba deciphering that regex :-P)
 
9:12 PM
@NikiC Sanity check: If I raise an E_COMPILE_WARNING from the lexer, will opcache record that and replay it on every invocation of the file? Or do I just get it once, then the cache masks it after that?
I'm assuming the latter.
 
@DaveRandom no merge, just me fucking it up
Will fix it later.
 
@kelunik I am about to push some other stuff so if you tell me which one to remove I'll do it now
 
@FredEmmott I was right! Paul found last year's April Fool's post
 
Remove?
 
9:21 PM
@kelunik Well there are two blocks that are identical apart from the regex, just not sure which one is the "right" one
Is it supposed to be the commit pointer?
 
Both. Might as well just reduce it to a single one. Just wait some minutes so I'm on my notebook again
 
no worries
11 hours ago, by DaveRandom
Also I'm impatient.
 
@Ghedipunk I prefer to get jiggy with it
 
9:54 PM
@Sara The latter
 
On the topic of musical guilty pleasures... youtube.com/watch?v=3MteSlpxCpo
 
Hmm... if I have binary or varbinary data what PDO::PARAM_* constant should I use?
I have been looking online for a while now so I figured I'd ask.
See if anyone here has run into this before.
 
@LeviMorrison PDO::PARAM_LOB has worked for me with sqlsrv, I can't speak for other RDBMS
(with varbinary)
 
It doesn't seem to matter which I choose for MySQL but I'm distrustful…
 
A Microsoft rep suggests using bingParam rather than bindValue... social.msdn.microsoft.com/Forums/sqlserver/en-US/…
 
10:06 PM
@NikiC Thanks. :D
 
hi
i am looking for a way to generate unique 6 digits hashes with integers only
any ideas?
maye based on time
so collisions can be avoided
 
Why do you want hashes? Those kinda exclude uniqueness...
 
i need customer ids and booking ids
 
Is there a reason why you can't increment the IDs sequentially? (Do you need randomness in order to avoid people predicting IDs?)
 
it's about the first customer id and first booking id which will have to be hardcoded.
doesn't seem secure
 
10:12 PM
Then don't use the IDs for security.
 
Neither does using a 6 digit id.
 
At a minimum, you want 2^256 bits for unique, somewhat secure IDs. (I say somewhat because it's very easy to get the security wrong).
Rather, 256 bits, for 2^256 different possible IDs.
 
I'll go with bindParam with PDO::PARAM_LOB and specify the length of the data.
 
@LeviMorrison Yes it actually does not matter even slightly, PDO_mysql pays very little attention to that arg, it has a couple of special cases to reject PARAM_STMT and convert stream resources to strings but in the end it uses the zval type to decide what to tell MySQL
Which is pretty crappy
 
i have no problem with incrementing, it's all about how to begin. how to come up with the very first customer id and very first booking id
 
10:16 PM
So you can pass PARAM_INT for all it cares, it will still do the same thing
 
but LOB with size info is probably more correct should I ever switch drivers, yeah?
 
@Zombievirus If you're using incremental IDs, there's no point to starting anywhere except for 1, unless you already have data that conflicts.
 
no, there is no data yet
this is just a project to learn web development
 
@LeviMorrison I would have thought so, although there's a song-and-dance of drive options for sqlsrv so I have no doubt there will be other driver-specific things you have to do for other drivers. Like everything else with PDO, it's probably not going to be as portable as it should be...
 
i am using sqlite as db.
 
10:19 PM
If you're really set on picking some 6 digit number, then rand(100000, 999999) is good enough for your purposes.
 
well, that approach will get slower and slower as the db grows as i will have to check if the generated random number already exists, if yes generate again
 
That's why you increment. The DB will already know what the next number available is.
 
Actually… string may as well be correct.
 
i read that auto incrementing in sqlite is not a good idea
 
This is because in PHP (and therefore C) the data is being stored as a string.
 
10:21 PM
agree?
 
So when the server receives its data it does its thing based on the column type.
 
sqlite.org/autoinc.html "The AUTOINCREMENT keyword imposes extra CPU, memory, disk space, and disk I/O overhead and should be avoided if not strictly needed. It is usually not needed."... Hmmmm... Then I guess we should avoid auto increments...
 
@LeviMorrison I would still go with LOB, STRING is only correct at the moment because PHP doesn't have any concept of string encoding and it might do one day. But yeh, at the moment anything string-ish is just binary anyway
 
I'm storing IPv4 and IPv6 addresses as varbinary, basically.
inet_pton will give me a PHP string.
 
ScottArciszewski do you use burp? and if yes, pro?
 
10:24 PM
Then again, any way to take some random number and ensure its uniqueness also has extra CPU, memory, disk space, and disk I/O overhead...
 
@LeviMorrison That's a slightly weird thing to do, are you doing binary ops in queries?
 
the other thing is, the customer gets an email with his booking id. a "2" as a booking id doesn't really look normal
 
@DaveRandom Nope.
 
@Zombievirus there is something for that - hashids.org/php - but you almost certainly want to use incrementing IDs here.....unless you're prepared to move to uniqid()'s
 
@Zombievirus Can you install memcache or something similar?
 
10:26 PM
something like: hi, your room has been booked. your booking id is "id_here" use this id to get in touch with us
 
There are only so many ways you can store IPv4 and IPv6 addresses in the same column; we basically picked the one that my boss liked.
 
@LeviMorrison While I'd like to do that sort of thing if I were being really anal, the pragmatist in me thinks that if you are not doing binary ops in the db then you're probably going to end up converting them to and from printable strings all the time.
 
@DaveRandom Well... whenever we work with them we have to convert, but that field goes mostly unused.
 
hashids generate too long hashs and it is not integer only
uniqid also too long hashes
 
@LeviMorrison I do enjoy agonising over things that no-one will ever touch ever again :-P
 
10:28 PM
^_^
 
@Zombievirus why do you need 6 digit ints?
 
So, your requirements are: Your relational DB can't (shouldn't) create the increment, the number has to be long enough to be believable by a human, but short enough to be usable by a human, and be a primary key (unique identifier).
 
you nailed it!
 
If you can have a non-relational in-memory database like Memcached, things become simple; then you only have to worry about race conditions.
 
no experience with non-relational dbs
i am just a guy trying to get started with web development
 
10:32 PM
Treat non-relational DBs as a name/value pair hash map that has its data available to all of the clients connected to it...
Pulling up an example for PHP... one minute.
PHP docs have good examples sprinkled thoughout the memcached functions: secure.php.net/manual/en/memcached.get.php
 
hmm...
 
Or, if you don't want to worry about Memcached, the next best thing is to use auto increment in Sqlite.
 
looks like localStorage in html5
so just hardcode the first booking id and customer id
and then just increment from it?
 
Yes, HTML web storage is a non-relational database.
Hardcode means to write that value in the source code, so no... Rather, set the value initially, when you first set up your memcached instance.
And if memcached ever loses the next value for some reason, then look up the highest ID number in your relational DB and use that to rebuild the next increment.
 
for room availability check, i do need a relational db.
let me show you the query i wrote to check for available rooms
 
10:43 PM
Anyone know why Nginx would cause clients to download images rather than serving it as a rendered img on the browser?
 
SELECT * FROM Rooms   NATURAL LEFT JOIN   Booking   WHERE
   (
      Checkout IS NULL
      AND RoomType='$rtype'
   )
   OR (
      (
         '$adate' NOT BETWEEN Arrival and Checkout
      )
      AND (
         '$ddate' NOT BETWEEN Arrival and Checkout
      )
      AND (
         Arrival NOT BETWEEN '$adate' and '$ddate'
      )
      AND (
         Checkout NOT BETWEEN '$adate' and '$ddate'
      )
      AND (
         RoomType='$rtype'
      )
      AND (
         RoomNumber NOT IN (
            SELECT RoomNumber from Rooms NATURAL LEFT JOIN Booking WHERE
 
For long chunks of code, please use something like pastebin.
 
oops
 
Ekn
I remember that one
whoa... votes weren't..this much
 
10:49 PM
yeah it's crazy high
 
Ekn
\o/ can see the breakdown, heh I often wondered for some questions/answers
 
>This question has an open bounty worth +500 reputation from rook ending in 4 days.

This question has not received enough attention.
Not enough attention, eh? Nah, someone just wants to spend some rep.
 
heh
I think somebody really wants this to work
aaaannnnddd done. feature completed, committed and shipped, now on to the beer. tgiff
 
@Saitama ... a thing ... here ...
<?php
$server =
	new Socket(SOCKET::AF_INET, SOCKET::SOCK_STREAM, SOCKET::SOL_TCP);

$server->setOption(SOCKET::SOL_SOCKET, SOCKET::SO_REUSEADDR, 1);

$server->bind("127.0.0.1", 9998) && $server->listen(10);

$thread = new class($server) extends Thread {

	public function __construct(Socket $server) {
		$this->server = $server;
	}

	public function run() {
		if (($client = $this->server->accept())) {
			if (($resp = $client->read(11))) {
				var_dump($resp);
			}
			$client->close();
		}
	}

	private $server;
not finished ...
 
Wes
oop sockets?
 
10:59 PM
thread safe sockets
because resources don't work with pthreads properly ...
 
Wes
nice, pthreads + new ext?
 
and there is no fixing that ...
just another class ...
(in pthreads ext)
 
Wes
i need to learn these things
 
Ekn
^++
 
Wes
today i couldn't ever wake up. i'm literally sleeping since this morning. even coffee failed
 
11:04 PM
the list of people that should use pthreads doesn't even have me on it :)
 
Wes
lol
 
Ekn
nice, I went to sleep at 1pm woke up at 4pm :/ continued from leftover tabs
 
Wes
browser tabs?
 
Ekn
yup
this room has that effect on my daily life...
I'm constantly under a risk of moving to another interesting topic for the next hours :p
but, I hereby welcome that risk.
 
@JoeWatkins How would you rate your understanding of pthreads on a scale from 1 to 10?
 
Wes
11:07 PM
@Ekn i never close tabs, except when i can't bear chrome telling me to restart to apply update anymore
 
Ekn
my case, plasma desktop fails
and I have to restart laptop :/
after like ~10 hours that is.
 
Wes
plasma desktop fails?
i think last time i rebooted my pc was in 2015 :B
 
Ekn
I generally use a linux mint kde with plasma desktop
and firefox sucks on it when I use it like that :p
 
Wes
y u no use chromium
 
Ekn
eerm...I'm lazy to move stuff and do all theming etc to get the same visual interface :p
 
Wes
11:11 PM
isn't that how linux users spend 99% of their time
:P
 
Ekn
heh
 
@Levi got the forwarded mail about Dmitry?
 
@NikiC well ... pthread, I assume you mean ?
probably about 7, when I started pthreads it was probably about 4, although I thought it was 9 ...
 
So, taking the Dunning-Kruger effect into account, that's really an 8.
 
@JoeWatkins I meant pthreads :D You were supposed to answer 7/10 ^^ (quora.com/…)
 
11:15 PM
once you decide to include threads in an application, not just as a utility, to fire off some I/O, but as an architectural decision, as a core part of any thing ... you fucked it ...
everything is a million percent harder, and you are no smarter than when you started ...
ha :)
 
I can't even imagine a use case for threads in the core of any one thing I'd do... Maybe asynchronous IO if I don't care about the results in any way
 
you are imagining wrong :)
even in that case, there's a better way ...
 
maybe, yes... But then, I'd rate myself as a 3/10.
(Basically, I know I hate thinking about race conditions and locks)
 
pthreads attempts to make it easier than most apis ... but, it's still relatively difficult, there is implicit safety when you read or write a property of a threaded object, but patterns that are just normal in synchronous code race still, even if they are "safe" ... safety and consistency are two different things ...
 
Now, what do you rate yourself … on the PHP language? @NikiC @JoeWatkins :-D
 
11:26 PM
0.42
 
Joe and Niki? Perfect 5/7 stars
 
@JoeWatkins scale is 1 to 10 obviously^^
 
I know :D
 
@JoeWatkins honest answer now? :-P
 
ask me in 5 years ... I haven't had long enough with 7 ...
 
11:28 PM
I said now ^^
I'd put myself at some 5/10 or at most 6/10, I think
 
less than 5 ... probably ...
time matters though, we've only had it for a year or whatever ...
 
What would a developer who uses Laravel be rated at?
 
@Ghedipunk knob head isn't on the scale ...
 
@Ghedipunk A scale from 1 to 10 is not powerful enough to represent the proper rating of a Laravel developer
 
Kind of curious about what a serious answer would be... more because I'm curious to see what core developers think of their own skill in PHP compared to the writhing masses who embrace mediocracy.
 
11:36 PM
where did the function table go from fci ?
missed that
 
@JoeWatkins Dmitry killed it
 
if I was just using it normally
I can just remove it for 7.0 too, right ?
 
Think so (not 100% sure)
@Sara Sorry for negative feedback on one of your seemingly favorite features, but I really can't see it actually being helpful. The pipe operator makes it better, while you still can do it better than that as coder, IMHO.
 
@bwoebi Hey, it's your position, no offense taken. And I can't really refute your position per se. I personally don't think the intermediary variables have a purpose, but that's down to style, not quantitative quality or lack thereof.
 
Screenshotting those two lines to say, why the hell can't the rest of internals be that civil?
 
11:43 PM
@Sara Style is the wrong word (It must be helpful for the reader) …
And quantitative quality sounds like a combination of fancy words ^^
 
quantitative: Being able to be quantified, measured.
I'm saying I regard it as not being a measurable improvement in quality.
Hence my choice of the word "style".
But it's all syntactic sugar anyway, so style is all we really have. :p
 
Ah okay
But I'm especially -1 as I don't want to read that code
 
heh
 
But yeah, it's all sugar, you can like it or not
I'm just not sure yet whether I'll place |> before or behind three-way comparison in ranking of worst recent additions (if it would pass) [just to put it in perspecitive]
 
has anyone been touching anything related to guards ?
 
11:51 PM
@JoeWatkins ask Nikita or Dmitry…
 
@NikiC ?
 
@NikiC Are you sure about git.php.net/… Did anything actually fail? At least I don't see how it would be a problem even if refcounting is non-atomic. There should be anyway in any case refcount > 0?
 
hmm
(gdb) back
#0  0x00007ffff4437cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff443b0d8 in __GI_abort () at abort.c:89
#2  0x00007ffff4430b86 in __assert_fail_base (fmt=0x7ffff4581830 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x1218e5d "zval_get_type(&(*(p))) == 7", file=file@entry=0x1218e38 "/usr/src/php-src/Zend/zend_objects.c", line=line@entry=78,
    function=function@entry=0x1218fe0 <__PRETTY_FUNCTION__.10307> "zend_object_std_dtor") at assert.c:92
--TEST--
Test magic __get and __set
--DESCRIPTION--
This test verifies that __set and __get work as expected
--FILE--
<?php
class Test extends Threaded {

    public function __get($key) {
        printf(
            "magic %s\n", __FUNCTION__);
        return $this[$key];
    }

    public function __set($key, $value) {
        printf(
            "magic %s\n", __FUNCTION__);
        return $this[$key] = $value;
    }
}

$test = new Test();
$test->one = "one";
var_dump($test->one);

?>
--EXPECT--
no actual threads here @NikiC, something is wrong with object dtor, related to guards ... dunno what's going on ?
 

« first day (2022 days earlier)      last day (2925 days later) »