« first day (2791 days earlier)      last day (2383 days later) » 

01:03
morning
01:35
o/
 
1 hour later…
03:04
nn
morning
@Allenph "are you serious?"
:X
03:25
morning
Wes
Wes
\o
o/
Wes
Wes
in english are you allowed to go on a new line by splitting a word?

Talks between US President Donald Trump and North Kore=
an leader Kim Jong Un in Singapore could go into a seco=
nd day if they're going well, sources told CNN.
> at morpheme boundaries
... it's 6:38, /me gets coffee
03:51
@Wes breaking at syllables, if the word doesn't fit on the line, and you would use hyphens, not equal signs
Wes
Wes
thanks
I'm up too late. again. dammit.
Wes
Wes
we use = i think, but in practice i didn't see that in 20 years since you don't get that stuff on computers...so maybe i am wrong
04:03
!!? define:lexeme
Search for "define:lexeme -site:w3schools.com" (https://www.google.com/search?q=define%3Alexeme+-site%3Aw3schools.com&lr=lang_en)
• Lexeme - Wikipedia - A lexeme is a unit of lexical meaning that exists regardless of the number of inflectional endings… (https://en.wikipedia.org/wiki/Lexeme)
• What does the term lexeme mean? What are some exa… - A lexeme is the smallest or minimal unit of lexicon in a language that bears some “meaning”. A lexe… (https://www.enotes.com/homework-help/what-term-lexeme-mean-what-examples-331884)
> morpheme, syllable, lexeme, grapheme, phoneme, character, glyph
I am totally going to forget what these mean, again and again
04:22
Can anyone help me get my head around prepared statements? There are plenty of resources to tell me what code to type, but I don't feel comfortable copying code I don't understand.
04:59
mornin god's of php.
Mornin Linus
In case you're wondering, I think I've figured out my issue above
How are you?
Running into php trouble today?
05:26
ftruncate fails on files > 2GB – #76422
I've fixed a vulnerability on my website using prepared statements. All of these images link to a product description page that was vulnerable to sql injection attacks. Is anyone able to attack it now? handcraftedgifts.net.au/SpinningFibre.php
05:51
@NikiC okay, thanks. I'm going to look at that now :-)
06:13
@JonathonPhilipChambers nope =)
is mail() using TLS when sending?
06:41
@Aurelius mail() typically calls an internal program, see sendmail_path INI setting - which then sends that for you … and whether it uses any encryption is not related to PHP itself.
hi all! Can you recommand me please a 3rd party xml parser for files larger then 15 mb? Thanks!
@BoteaFlorin you dont need a 3rd party parser. just use the native xmlreader or domdocument
Thanks! I will have a look.
06:48
\o
morning Joe
bob I was just looking at that exception thing ... we already do null the result var ... am I doing it wrong ?
@DaveRandom can you add inspector to lxr please
@Gordon expath is ok ?
@BoteaFlorin do you mean XPath?
they says it doesn t make a tree of document
06:51
afaik this was removed in php5. use [XmlReader](php.net/manual/en/class.xmlreader.php) if you want a streaming parser
I mean I must be doing it wrong, but I don't know how ... I must be reading the handler wrong somehow ...
@JoeWatkins yes, you're missing the usage of parenthesis, & has a higher precedence than |
@bwoebi thanks it says: /usr/sbin/sendmail -t -i -f <address>
hm no
that's not it
is it wrong?
06:58
Also: I'm really clever
Bobs-MacBook-Pro-2:php-src-7.2 bob$ git branch
* master
spot my mistake @JoeWatkins
mornin
how can I use a .so extension library? Because I am not sue that I can modify my php.ini
It's all fine, was working with current master of inspector and php-src master instead of 7.2, sorry @JoeWatkins
Try using dl();
@brzuchal thanks, good morning to you
because I have these two choices
one is in C and needs to be compiled to .so, the other is in PHP
however the one that's in C seems to be better, should I trust the one made in PHP as well?
07:09
@JoeWatkins btw. what shall $op->getNumber() even return when we have ZEND_USE_ABS_CONST_ADDR?!
@Aurelius I don't know any of them so am unable to help you with making decision
Hi! Just curious, why there is no or-ed check for ZSMMG(memory_exhausted) in the Opcache:
https://lxr.room11.org/xref/php-src%40master/ext/opcache/ZendAccelerator.c#zend_accel_schedule_restart_if_necessary

if ((((double) ZSMMG(wasted_shared_memory)) / ZCG(accel_directives).memory_consumption) >= ZCG(accel_directives).max_wasted_percentage) {
zend_accel_schedule_restart(reason);
}
Looks like it's the reason why Opcache is never restarted with Hash restart/Out of memory reason
@brzuchal don't worry thanks
@lisachenko not sure, you better ask Dmitry here why it's calling the *_if_necessary functions there
07:27
@BoteaFlorin after I told you twice to use XmlReader, make an educated guess ;)
morning
moaning
https://steamcommunity.com/games/593110/announcements/detail/16667‌​76116200553082 - looks like steam decided not to become morality police :)
@tereško "Valve shouldn't be the ones deciding this. If you're a player, we shouldn't be choosing for you what content you can or can't buy."… what a lame cop out
how is it a copout?
07:38
That's a movie
very bad one
@bwoebi still the index of constant in literals ...
	switch (zend_op_type(operand->type)) {
		case IS_CONST:
			RETURN_LONG(function->literals - RT_CONSTANT(function, *operand->op));
@tereško they took the easy way out. It's the "guns don't kill people. people do" type of argument.
@bwoebi ffs, I miss that too much ...
@Gordon that gun argument works quite well for Canada and Switzerland
@bwoebi oh still I've copied over the unhandled exception code from phpdbg, just thinking about how to handle it in userland ...
07:43
@tereško I think this comment by some user on that page sums it quite well: "Yay, so you're doing nothing about shitty, hateful, racist, sexist and bigoted content. Way to go, Valve. Choosing to stand in the middle is to accept the side filled with assholes."
besides, what else do you want them to do? Enforce banning of "offensive games"? How? What would be the offenses that they deem to be legitimate? Would, for example "Bayonetta" count as sexist game?
what about games, which contain symbols of past political movements, that can be seen as offensive by some (ya know, like communism)?
I understand that it's not easy to decide what should or shouldn't be allowed. It would need to be decided on a case by case basis
they are a company with 100 employees and probably only 10 in "support"
try thinking it through
that's a cop out, too
no, that is reality
07:52
"we cannot handle our responsibility. we are not enough people."
their responsibility is to sell games
within boundaries
and not dictate what is offensive and what is not offensive
what game are we discussing ?
School shooting simulator hmm
wasn't that removed from steam?
... I suspect it might be a German thing - all problems can be solved by systematization and enforcement (they really like their institutions)
that seems like a pretty reasonable policy, what's the problem ?
Wes
Wes
mornings 2
Disneyfy to create or alter in a simplified, sentimentalized, or contrived form or manner: museums that have become Disneyfied to attract more visitors.
08:03
morns
o/
if they actually said they were not enough people to manage the content, then that would be a cop out, but they didn't actually say that ...
@tereško I remember this game Dictator on the C64. it was a remake of the game Imperator. Instead of playing some ancient roman leader, you played Hitler. It included gassing jews, nazi songs and symbols and it was purposefully remade this way to glorify nazis. I am not aware if it was buyable at all or spread by mail, but if a game like this would be on the steam store today, I'd object to it. And Steam should do, too. Has nothing to do with SJW.
offensive is a stupid, mostly meaningless word ... they said they're not going to allow "straight up trolling", and they'll have to manage illegal content whatever ... they'll be able to find legitimate legal grounds to remove content that a lot of people call offensive ...
like that, for example ...
Mornings
08:08
@Gordon so, you want to institute censorship of all games because some troll (30 years ago) made a shitty mod, with the market of maybe 100 people
wonderful
@tereško No. I didnt say that. I am usually annoyed by censored games, because it's usually done in an overzealous way.
it all depends on context, which is why the decision to allow something on the steam store should be on a case by case basis.
as long as it is not illegal, it should be allowed on steam
I too agree that this should be handled on a case by case basis. And public opinion should be measured in too. To determine to censor the game amongst a certain audience, like children of such and such age and even the complete ban of a game as well, depending on its contents.
ThW
ThW
@tereško which law do you want to use?
08:20
@mega6382 how would you measure it? By who is loudest on twatter?
@ThW the law of the country, where the company is incorporated
@tereško As you mentioned, by determining if its illegal or not. And by measuring how much offensive the content is in an objective manner. If any offense that is taken is just from the satire nature of the game or a seemingly offensive but harmless joke, those should not be considered. Thus the appeal to handle it on case by case basis.
@mega6382 so .. we should ban games with offensive jokes now, that were considered harmful?
(sorry for multiple pings)
and I am asking you: what about harmful jokes (since you felt it necessary to distinguish them from harmless jokes) ?
how are we supposed to load these kinds of libraries?
08:25
With composer?
I've been trying with the autoloader
@tereško Well you can at least censor that content to a certain age group at least.
but I always get errors due to namespaces and folders
@mega6382 parental controls would be welcome ... though I suspect they already exist
(have never needed to look for them)
also, an ability to hide games by-tag would be nice too ... I really would like to hide all games that have "survival" + "early access" tags
08:27
@Sean thanks, but I need to be able to run commands on the server right?
I can only upload php files
@tereško I would like to have tag-based filters in every place online that has a search feature.
@mega6382 Would you agree with this point of mine? @Gordon
@mega6382 offensive to who?
@Naruto I am talking about implied offense not excluded offense.
(if that is the correct term)
@Naruto whom*
if I ssh to lxr.room11.org, what box am I getting ?
08:36
@JoeWatkins done
@mega6382 no, there is no such thing as "excluded offense" .. I am not even sure what it would mean
@JoeWatkins afaik it's running on platform.sh now
@mega6382 then I would still ask the same question...
@PeeHaa it's not yet
@DaveRandom +idbg please
08:37
oh
@tereško I meant "offense taken"
@PeeHaa why did you have to go there? :'(
all offense is "taken"
@Naruto Your grammar offended me :P
@mega6382 whether something is illegal should be determined by the laws in your country and not by Steam. I am not talking about illegal titles though. I am talking about titles purposefully built to spread hatred, etc.
08:38
in the these "modern" times, there is no game you can develop without hurting someones feelings... that's the society we live in...
also thnx chris ...
@PeeHaa it should!
@Gordon you mean like the game, that was called "Hatred"? Ya know, that dull piece of crap, which anyone noticed only because steam tried to censor it?
@JoeWatkins done, quick ref: cd /srv/sources; sudo git clone <project https url> <project name>@<branch name>; sudo /etc/cron.hourly/opengrok-update-and-index-all
08:40
oh I know, and was logged into the box but I wasn't sure if it was the right box ...
+ git checkout before update script if not default branch
@tereško illegal in germany. so no.
@Gordon That's what I am saying, to censor/ban the games purposefully built to be offensive and not those that are just considered to be offensive by any certain group of people, without any basis. //cc @Naruto
@JoeWatkins if you want to sanity check that, touch /srv/www/lxr.room11.org/public/<random file name> and make sure https://lxr.room11.org/<random file name> changes from 404 to 200 with no content
How can I verify a digital signature made with curve25519 in php? Can I use openssl? Thanks
08:43
I wonder, @mega6382, who is harmed by offensive games?
however when platform.sh goes live we will publish some general info on how to add/remove projects, I expect the process will be a little different
@tereško the game makers shouldn't be getting money for it and Steam shouldn't offer them a platform for that content.
why? Shouldn't that be decided by consumers?
what if steam gets purchased by some russian oligarch?
no. there is such a thing as corporate social responsibility.
might be a german thing
08:45
it's not.
I legitimately have never heard of it
Corporate social responsibility (CSR, also called corporate sustainability, sustainable business, corporate conscience, corporate citizenship or responsible business) is a type of international private business self-regulation. While once it was possible to describe CSR as an internal organisational policy or a business strategy, that time has passed as various international laws have been developed and various organisations have used their authority to push it beyond individual or even industry-wide initiatives. While it has been considered a form of corporate self-regulation for some time, over...
@tereško I just wish to live in a peaceful world that is without "hate mongering". If a person/organisation is deliberately publishing any kind of content, which's purpose is to spread hatred. And people(some weak minded) who consume that content could very well act on that hatred, and that can certainly be harmful.
@mega6382 was that "I dont know"?
@Gordon hmm ... I would have to think on that
@tereško No, that was "there is certainly a chance of it".
08:49
that sounds like people who thought, that the was chance of DnD turning kids into satanists
fwiw, I am fine with Steam doing as little censorship as necessary to allow games to explore controversial topics. Games are a fine medium for that. I just dont think they should take the "we dont have any ethics" stance. which is what their "we allow everything" translates to me.
^ that I can agree with
@Gordon no sure how you manage to read it as "we don't have any ethics" , since "not censoring stuff just because someone on twatter hot offended" seems like a good approach to me
@tereško lol, and I realize that what I am talking about is on the extreme end of the spectrum. But there are many other things in between as well.
@JoeWatkins where's the problem?
08:53
reason: bicycle
@tereško Also, I wouldn't trust some of the governments with censoring of content either. As the governments of certain countries are heavily influenced by certain specific groups. Who move to censor things to further their own agenda. I won't get in to the specific of things, but hopefully you get my point.
@mega6382 can you tell me a game that doesn't offend anyone?
@bwoebi no particular problem ... just haven't had another 20 minutes to do it yet ...
@Naruto I am not saying to ban a game because someone is taking offense from it, quite the contrary in fact.
illegal, threatening, defamatory, abusive, harassing, degrading, intimidating, fraudulent, deceptive, invasive, racist, or contains any type of suggestive, inappropriate, or explicit language
09:03
@Ende You rang?
hahaa
@mega6382 so you want everything open to everyone?
I thought lets see which words we can all use about these steam games
Oh, I thought I was being summoned
@Leigh so you're an illegal? ^^
sshh
09:05
he's an "any type"
The ultimate union
other types are a subset of me
@Naruto No, I wish there to be a midway, where certain things that need be banned are banned with proper moderation.
Are stress testing services illegal?
well that brings me back to my original question: offensive to whom? (@PeeHaa)
<3
/me is assuming something like aside * {display: inline;}
09:08
moin o/
But it feels like a weird thing to do
@pmmaga o/
Morngins pedro
@Naruto Its not the question of "offensive to whom", its more about "knowing and deliberate implication of offense". And you seem to be going in circles.
@Naruto and its not just about "offense" but "inappropriateness" as well. Which is why I mentioned, to ban against a certain age group etc
09:12
@NikiC given that we use cache_slot only for IS_CONST, we may put the ref-fetch in IS_CONST fetches inside zval.u2 then … which kind of negates the gain via having the cache slot in extended_value (i.e. avoiding the literals lookup). hm.
@mega6382 you can't please them all.. There are things that are appropriate in my country but not in others..
But if you think you found the secret formula, be my guest, would love to see you do it, Think you are going to piss off people, but that's my opinion ^^
also, mb we should move this conversation to another room?
I don't know, maybe, but I don't expect this to be too long.
That's what she said
09:16
@NikiC affects only IS_CONST lookups, which are the most common ones though, so we maybe could just add an extra specialization for the IS_CONST case there
@PeeHaa rofl
+ 1 for peewee ^^
eliminating the reference checking completely in trivial property lookups @NikiC - going to try this.
@Naruto Well then those kind of things can be handled by your government. What I am talking about is something on a more global scale. Like nudity or extreme violence in video games, you wouldn't want those to be for under 15 or something etc
Also, I believe I am not that adept in knowledge of law and general ethics, to be going on about it for too long. So, this is about all from me. :)
@Naruto it's not about pleasing them all. it's about having principles.
09:28
@Gordon I think I don't have any..
regrettable
@Naruto He is talking about steam to have principles..
I know I know..
Hi e1
Please tell me why my answer is down voted
https://stackoverflow.com/questions/41562253/get-baseurl-in-javascript-file-codeigniter/50737073#50737073
@MateeGojra read it carefully.
09:33
I read that.... the same issue was on my side... php script was not runable in .JS file
i used the soultion myself with 100% results
@MateeGojra I really doubt it.
@MateeGojra because it is a terrible idea ... and it does not actually work
@MateeGojra I believe you've read it, but do it carefully once more. Focus on every letter in the code.
and, what the fuck is "common js"?
09:35
@tereško it's working on my side.... very fine...
no, it does not
some type of common js file that is part of every module in ur project
how it does'nt
what the fuck is "common js"?
are you making this shit up?
@bwoebi extra specialization sounds good (maybe...) but not a fan of putting this flag in the constant u2 :/
The maybe because I'm not sure how common FETCH_OBJ_W really is. I'd assume it's mostly ASSIGN_OBJ
09:38
@NikiC yeah, that's true
so probably not that needed there
ok leave idea of common file... think of a config file
fetch_r and assign_obj it is
@NikiC possibly we should just put the cache slot back into u2 then there and simply use extended_value then
@MateeGojra That's some terrible code right there.
@mega6382 can u explain the term "Terrible"
@NikiC FETCH_W should AFAIK be mainly used when doing array operations on a property (e.g. $foo->bar[] = $newVal;)
09:40
@bwoebi alternatively you can also use extended_value for both, you just need to mask it out
I believe we already do that in some places
Adjective: terrible (comparative terribler or more terrible, superlative terriblest or most terrible)
  1. Dreadful; causing alarm and fear.
  2. Formidable, powerful.
  3. 1883: Robert Louis Stevenson, Treasure Island
  4. […] and there was even a party of the younger men who pretended to admire him, calling him a "true sea-dog," and "real old salt," and such-like names, and saying there was the sort of man that made England terrible at sea.
  5. Intense; extreme in degree or extent.
(3 more not shown…)
no
@MateeGojra wtf?
@MateeGojra you should ask @MadaraUchiha
@NikiC I'm fine with that too, can't tell whether the one is better than the other
09:42
who is she @MadaraUchiha
@bwoebi its not bad
@NikiC good, going with that then
@bwoebi I think that would be easiest for now
For long term it might be better to free up a bit of flag space in opline :)
@bwoebi thanks dear
E.g. by merging op1_type and op2_type into one uchar or something
@NikiC I like that
09:46
:42840412 upvotes should be based on the merit of a question and not because someone asks for them.
there are quite some places where we're having a small number of flags and an integer value
one more down vote will take me away of this chat
@MateeGojra Then lets hope you get it.
really sad
@MateeGojra yes, indeed, you are.
09:48
:(
@NikiC regarding "Can we use OPLINE_DC instead of passing by_ref?" < nah, wouldn't do that as there are other places the zend_fetch_property_address function is called and passed 0, we'd then have to check extended_value and the opcode - and anyway doesn't matter due to inlining
@bwoebi ah right
@bwoebi I also left some comments in zend_execute where I think there's a lot of code that's completely unnecessary
But best test removing that once tests are passing again ^^
:-D
This might be useful to some people:
Jan 26 '17 at 12:23, by Gordon
The Absolute Basic Guide on How to Make Friends with @tereško:

- Rule 1: call him dude or sir
- Rule 2: tell him the M in MVC stands for MongoDb
- Rule 3: mention you do OOP with jQuery
- Rule 4: doesn't need rule 4. You are dead anyway
@MateeGojra You could delete it and get your points back ;)
09:59
@mega6382 somewhat rude, don't you think?
@NikiC the problem in zend_post_incdec_overloaded_property is that we'll then update the ref first before writing to the variable … thus the ref will contain the wrong new value after having thrown instead of the old one
similarly at the other places in execute.c
@Gordon how else would you describe someone who is begging for votes? "Sad" seems a really fitting word.
@bwoebi But we shouldn't be modifying the ref
Wait maybe that last statement was wrong, but we still shouldn't be modifying it
The old code sure did … within the incref/decref
@Gordon Yes, you are right. And I do think it was wrong of me. But I don't think it was uncalled for.
10:02
@bwoebi I.. uh..
The only place that imho is permitted to do the ref modification is the one that operates on get_property_ptr_ptr
If we are using read_property and write_property then we should not be modifying any references
@NikiC But that's what's happening
This here copies the dereferenced value and then modifies that
So it's not touching the reference
So we shouldn't need any special checks
10:05
oh
@tereško true, but useless /cc @mega6382
The pre_incdec code doesn't, but I'd say that's because it's buggy
Though not sure if there is even a situation right now where one would run into it
@NikiC okay, because that's what I was looking at :-D
@NikiC lxr.room11.org/xref/php-src%40master/Zend/… write_property simply unwraps references it gets
it doesn't try to assign to a reference
@bwoebi yeah. I was more wondering how you can get a ref from read_property without going into the get_property_ptr_ptr path first
ah or doesn't incdec use those at all
nah, write property does write to a ref via assign_to_variable
10:09
@Gordon ok, :)
@NikiC you're right, incdec shouldn't need to care about that
3v4l.org/o5m58 <-- PHP wrong, HHVM right. 3v4l.org/3hVK6 <-- both right
it can just operate on the value
@NikiC I find that weird that $foo->bar++; and $bar = &$foo->bar; $bar++; would yield different results
@bwoebi Depends
There are two ways it can work
would have expected int(1) in both cases
10:17
Either it should operate on the reference and on the reference only
Or it should use __get+__set and operate on the value only
Right now it does a mix of both
I'd be fine with going in either direction
If you return a reference via __get it IMHO should operate on that reference
@bwoebi yeah I guess. iirc that would also bring it in line with binary_op handling
yep
php does not handle (i.e. ignore) shebangs in script read from stdin?
@DaveRandom only in file mode I believe
yeah, cli_seek_file_begin() is only called if script_file is specified
10:23
that's a bit shit
the convenient choice of python using # for comments
well php does as well
@FlorianMargaine well, PHP does too… but it has an opening tag...
@DaveRandom why?
@DaveRandom just use an anon pipe instead
10:25
@bwoebi it means you can't have an install script that works both as a local file with +x and via curl <url> | php with declare(strict_types=1)
or at least, not as simply
@DaveRandom php <(curl http://...)
you can also pass it through tail -n +2
but still, counter-intuitive
25
A: Detect if a PHP script is being run interactively or not

LeighI also needed a slightly more flexible solution than posix_isatty that could detect: Is the script being run from the terminal Is the script receiving data via a pipe or from a file Is the output being redirected to a file After a bit of experimenting and digging around through libc headers, ...

Ignore title, check answer
Covers all your bases
Also I obviously wouldn't write it like that anymore, but hey, 2012 answer
10:30
@Leigh I think he already knew about that answer
Very nice, +1 - Under what circumstances will S_IFLNK and S_IFSOCK return true? — DaveRandom Jul 4 '12 at 10:43
:P
Hah
lolwut
also, if you just need to solve that problem locally, you can make php files executable without the shebang with binfmt_misc
@bwoebi stdio seems to do weird stuff here, specifically passthru seems to not actually be passing through to the shel
@DaveRandom well, a <() does return you a /dev/fd pipe … and then you can use stdin/stdout normally …
@NikiC Shall I open a bug report for that / will we fix that now independently - for 7.3 only?
10:39
@bwoebi we should fix that independently, for 7.3 only
I can look into it later
It's not really a blocker for us, more like cleanup
yeah
are you guys talking about either a specific project or the main php-core?
@Shafizadeh they are talking about php-src
good
good
10:51
good
can openssl_verify be used to verify any signature?
Constructed with both RSA or EC with keys of any lenght and curves of any type?
or there are limitations?

« first day (2791 days earlier)      last day (2383 days later) »