« first day (3099 days earlier)      last day (1856 days later) » 

12:33 AM
@marcio you around? running into an issue I'm not sure how to work around
 
 
1 hour later…
Nevermind, I fixed it somehow
 
2:26 AM
I need to validate POST data. I have a class specific to POST data, and I have a class for a page that has a form. Should I validate data in the POST variable class? or the page's class? or maybe have some generic POST validation methods in the POST variable class, and anything specific to the form would be in the page's class?
I'll see if I can create an MCVE
GenericClassName is the "page class", PostVars is the POST variable class.
 
2:52 AM
@Ghostff what?!?
 
I interviewed with a company a year ago and I went in full suit with a blazer.. but the two people interviewing me were in jeans and a sweatshirt, it was pretty uncomfortable haha. Now, I have another interview with the same company. My friend tells me I should go in full suit again, but I'm thinking it was a bit much. Anyone have any advice?
 
dress pants and a polo or short sleeve button down (if it's warm enough) did the interviewers comment about your attire, or give you a weird look or anything?
 
Jeans or slacks?
 
I would say slacks just to be safe.
 
I said "Sorry I donno if I'm overdressed" and the dude was like "Ah you're fine"
super laid back
I'm thining slacks, dress shoes, and a button up shirt
But not like a straight white button up shirt
 
3:07 AM
yeah, that would work. I wear chucks but I have a foot disorder and it's near impossible to find dress shoes that fit my gigantic right foot.
 
Ah that sucks
 
if I'm ever required to wear dress shoes for a job, I probably won't work there. I worked at a retail store that required black dress shoes, and no exceptions were made for medical conditions. I tried wearing black sneakers for awhile, and I got away with it for a few months, but they caught on...
it's funny that the office job I had... I wasn't required to wear dress shoes, no one cared that I wore chucks or skater shoes. I even offered to get a doctor's note or something if it was a problem, but boss said "don't worry about it"
 
It seems the more important jobs you have the more lenient they are
 
also depends on the industry and the location
 
This job is open 7am-7pm and we're allowed to come in anytime between those hours, as long as we do what we need to get done (and probably gotta work at least 8 hours) :D
 
3:12 AM
I've heard there's a tendency for jobs in the northeast to require/want/desire wearing a suit, and further out west, they don't care as much
nice
 
oh that might make sense
This job is really laid back
I applied there a year ago, did a programming challenge, went in to meet the team, then I was told that finances were frozen for now and they couldn't hire anyone o.o
 
:(
 
The other day a different person from the company reached out to me, they didn't realize I applied before
 
...that might be a red flag though...
 
Apparently the CEO sold the company while I was being interviewed
 
3:14 AM
lol
 
And the new owner is investing a lot of money into it so they hired a few more people :P
 
yeah, you may want to wear a suit then
 
Maybe
 
if they're still as laid back, then slacks and button down might be fine... but if the company changed owners, they might have changed dress code
you could always ask the person who contacted you for an interview
like if you should wear business casual or what
 
The guy told me I had to go through another phone interview, then an in-person interview with a programmer, then a programming challenge, then to meet the team (which is everything I did last time). 30 minutes after the call he called me back to tell me that he talked to the original guy who interviewed me and that since I already went through all that I can skip the second phone interview and just come in and have an interview with the CEO :D
 
3:17 AM
yeah, maybe contact him and ask what level of formal attire you should wear
 
That's what I'll do
 
 
3 hours later…
6:28 AM
In the short tag vote is the 8.0 part dependent on the 7.4 part? Or can it happen that we want to remove without deprecation?
 
@pmmaga it doesn't make sense in my opinion, as the vote could be not deprecating it, but removing it in 8.0
 
@beberlei Yeah, I think it makes sense that may be the outcome. I was trying to fit it in the revised text for the required majority section of the voting rfc. I guess in this case we can consider it as 2 RFCs being voted in one. But strictly speaking, i think the removal should have been the primary vote and the deprecation a secondary vote
Also because deprecating without removing would be weird :P
 
Morgen
 
o/
 
7:18 AM
\o
 
o/
 
Hi All
I have a small doubt
I found in the blog that PHP handles multiple requests parallal or at a same time
But instead can we do it a Request handle on a FIFO manner ?
1 by 1
Can anyone guide me on that ?
 
7:43 AM
PHP linked with system version of libpng – #77876
 
that made no sense
 
@Mayur: That makes very little sense. PHP is usually behind a web server and it's the web server than handles multiple simultaneous connections - otherwise your website wouldn't be able to handle multiple people visiting it at the same time.
If you have some operation that needs to be one at a time, look at using queues and workers
 
maybe he's talking about js?
 
8:00 AM
despot a ruler with absolute power and authority
 
8:24 AM
@NikiC Is there a reason for why sizeof does not generate COUNT opcodes, given its an alias of count
 
@Kalle ... no
we just don't check it
 
Sorry I was on break
Let me explain you my problem so may be more clear
I have developed 1-1 random chat application & I am using rest APIs
So for that user clicks on start button to connect randomly with other online users
So the issue is sometimes 2 users gets same 3rd user & 3 users gets connected
thats making the issue
 
@Kalle want me to add it?
 
@NikiC Yeah that would be great ^^, just noticed it while comparing some VLD output that there was a difference :)
 
So what I want is multiple API requests should be handled in queue
Is it possible ?
@AllenJB
 
8:38 AM
@Kalle Hm... not quite as simple as I thought, because we need to distinguish count and sizeof in the error message ^^
 
@Mayur So use a queue.
 
8:50 AM
@NikiC seems like you got it, hero!
:D
 
Wes
9:07 AM
@Ghostff it's not the photo per se, but the fact that it looks exactly like how we thought it would look
 
Let's pray for this getting merged in less than two weeks
 
yeah, praying might work, who knows what will work ...
 
9:34 AM
The short open tags is weird
deprecate and remove are separated
And right now the result would be to not deprecate it but to still remove it ...
 
it could be even weirder if deprecate would pass but not remove. As I said earlier, removal should have been the primary vote and deprecation a secondary
 
9:49 AM
Morning
 
@pmmaga we have some stuff that was deprecated in 5.x and still around in 8.0 :D
 
Wes
> Deprecate and disable short_open_tag
isn't disable the same as remove
 
@NikiC of course we do :D
@Wes In this case, the disable means disabling by default. Apparently, the current default is to have it enabled (without any ini file)
 
Wes
ah, i didn't know that. well maybe that's the reason people have so many problems with it :B should be disabled by default
 
both provided ini files have it off. but yeah, that's the only part of the RFC I agree with. It should be disabled by default. Everything else sounds overarching to me
 
Wes
9:59 AM
this change really scares me tbh, even the deprecation warning i am sure it's going to make a mess in the older sites i made... because those sites used ErrorExceptions set with set_error_handler... i know it's my fault...
 
tss tss.. DIDN'T YOU THINK OF THE PORTABILITY?!
 
Wes
even if i will have a year to make the changes, it's still a lot of work... unfortunately i really relied on short open tags in the past, and still do...
i slept on it though and i am prepared on making the changes... it's going to be dozens of sites... but no more than 100 i think
 
@Wes This should actually be really easy to do
You can write a 10 line script using token_get_all that does the replacement everywhere. Should be simple and perfectly reliable
 
Wes
yeah there's the cs fixer thing, but still, lot of back and forth between files
ftp passwords which i don't even have anymore lol
or maybe i should wait for everything to explode and fix stuff as stuff explodes, like i did with mysql_connect :B
 
10:12 AM
I don't understand this:
Liskov substitution principle: "Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program."
Do you know any alt definition (or even example) for it?
 
Wes
i doubt we can explain it better than google @Shafizadeh you can try googling "type variance" which is the same thing
 
ah ok thx
 
Wes
en.wikipedia.org/wiki/… this (probably, i haven't read it)
 
@Wes (belated) pong
 
testing purposes - example
 
Wes
10:27 AM
@DaveRandom yo, nothing just pinged you to confirm me something google couldn't quite confirm. in c# is SuperClass c = new SubClass(); the same as SuperClass c = (SuperClass)(new SubClass()); ?
where
class SuperClass{}
class SubClass : SuperClass{}
but i should have just asked in the c# room :B
 
@Wes yes, effectively... the cast is only necessary when the type of the RHS of the expression is unknown/less specific than the type of the LHS though
or more accurately, the explicit cast
 
Wes
yes, that's not type safe and therefore it can't be implicit... is what i understood
thanks
 
I mean it's the same rules as PHP type hints tbh
 
morns
 
and any strongly typed classical OOP system
 
Wes
10:34 AM
@DaveRandom eh, not really... i am writing precisely about that difference :B you'll see
 
the only difference is that C# needs compile-time type safety for assignments or an explicit cast, PHP checks everything at run-time
(afaik)
I mean there's nuance obviously, but it all stems from that
 
call_user_func() passes $this to satatic methods – #77877
 
do you think that's supposed to be "static" or "satanic"?
4
 
first one, then the other.
 
Wes
@Jeeves it always did that
if available $this is always bound, because stuff like parent::call(), right?
 
10:48 AM
well, how an object can be replaced with the instance of one of its subtypes ? any example?
 
you can't "replace" an object instance with a different instance, not in a way that propagates the reference, you'd need some sort of proxying wrapper to forward member access
 
^ there is no common superclass of "abstract duck"
 
11:09 AM
 
lmao, also at the pizzas on the walls
 
Wes
11:26 AM
lol
 
11:41 AM
@mega6382 fyi your comment is not correct
"static call" means that $this is undefined, it's to do with how it works internally rather than userland syntax
you can call a static method on an instance using the same syntax as an instance method, but the underlying invocation is still a "static" call
 
@DaveRandom Oh, yes, just checked again, and it seems that you are correct. Thanks. :)
 
@tereško let me just duck type everything
 
12:50 PM
Does anyone know anything about "geometry" in Laravel's migrations?
What values are supposed to be in this kind of fields?
#Laravel #MySQL #Geometry
 
#HashTag
 
1:08 PM
@StatikStasis Everyone is talking abt it at work. its not helping me in any way.
php throws this error with file 'Unknown':
PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/xsl.so' - /usr/lib/php/20160303/xsl.so: undefined symbol: dom_node_class_entry
I dont mind fixing the error, cant we return null instead of Unknown?
 
"in Unknown on line 0" is better than "in Null on line 0" imo
the file is not null, it's just not known during warm up
(and in other cases)
 
2:12 PM
Morning, Room!
 
\o
 
o/
 
@StatikStasis hello sir
 
@PeeHaa \o
 
ping @MadaraUchiha
 
2:24 PM
pong @PeeHee
*turns off MITM ping-pong-proxy* :)
 
plonk @salat
:D
 
2:42 PM
can i ask how can i retain the zero from, for example $newNum = 000001 + 1;
when i echo that it simply shows 2 instead of 000002
nvm i figured it out thanks anyway
 
2:58 PM
@DaveRandom even better in that case could be "while starting" instead of "in unknown"
 
3:10 PM
@NikiC Should we wager how long it takes the short closures discussion on internals to come back on track?
 
/home/nikic/php-7.4-fast/sapi/phpdbg/phpdbg_eol.c: In function ‘phpdbg_eol_convert’:
/home/nikic/php-7.4-fast/sapi/phpdbg/phpdbg_eol.c:104:7: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   out = (char *)emalloc(out_len);
... wat
 
@DejanMarjanovic anyone has an idea where this 0x1ed comes from in the memory limit hit error message? 493 sounds a bit little for memory limit in bytes...
> Maximum execution time of 0x1ed seconds exceeded
Just getting these from time to time in my logs.
 
@NikiC No clue, but I like the name of your folder :D
 
It makes no sense
@pmmaga it's the non-debug build ^^
 
3:34 PM
anyone counting how many syntax suggestions the short closures RFC is up to now?
Other than too darn many.
 
It seems that I'm not the only one who prefers the \$x => $x * $y syntax. Maybe have a voting option to choose between that and fn?
 
@MondinA. this?
 
3:52 PM
@NikiC lol, I've always wondered about that one, didn't look really close enough to determine that it's actually a gcc bug :-D
 
@TheodoreBrown that would be a major pain in the a** to deal with string eval. eval("\\\$x ....")...
 
@ircmaxell I hadn't thought of that. Maybe a good thing, though, since eval use is generally discouraged.
 
Generally discouraged, but used all over the place...
Not a massive not unsurmountable issue, just a bit of a pita
 
Does anyone know anything about "geometry" in Laravel's migrations?
What values are supposed to be in this kind of fields?

I'm looking for a way to store the location of the user, whether in x and y fields or something like geometry fields.

#Laravel #MySQL #Geometry
 
This is not facebook so you might just want to drop those tags
 
@PeeHaa :D I thought those may help to be seen by the others
 
Also, if you forget about Laravel and just google the rest you will probably find your answer. And this sentence works on multiple levels
 
4:36 PM
@pmmaga Right, it's a feature of MySQL I think, But as I said, I don't know anything about geometry fields... And there wasn't a nice article about it, at least I couldn't find
 
@X4748 If anything it makes people ignore you
 
googs
 
@PeeHaa Loved your song from the other day! It was #AWESOME #PHATBEAT #DANCE #DROPTHEBEAT
 
:D
Don't forget to click like and subscribe and SLAM THAT NOTIFCATION BUTTON
:P
 
4:42 PM
yeah :)
 
k lol
I always think about this when someone uses hashtags in chat now.
@PeeHaa LOL! =D
I miss when I could just go to a website and get information. Now I have to navigate an obstacle course.
 
@gmask It seems a clear article! Thanks, I read part of it.
 
array_filter example improvement – #77878
 
5:48 PM
Is using mt_rand() secure enough for the purpose of a password recovery tool? Mine currently uses that but the code expires after 30 minutes.
 
@StatikStasis Just use random bytes
 
So it's not secure enough I am guessing.
It's been a while since I made this and I was wondering.
Is 50 characters enough you think?
I am overthinking it.
 
6:12 PM
@PeeHaa Nice! \o/ That does look much more secure.
 
6:42 PM
php-cs-fixer uses tokens to parse/issue. No AST. So php-7.4's property types result in weird things happening
 
yeah, same issue with PHPStorm, they also were horribly broken a few patches ago
 
yeah, why I'm just using sublime text
but as this codebase grows, it's getting more difficult
the other guy has Phan running on it, but I can't get it to run for me. I tried PHPStan as well, and it works, but produces a lot of issues ;)
 
do you have php-ast installed?
it shouldn't take anything other than installing php-ast and running "vendor/bin/phan" unless you're running out of memory or something
 
/me waves at @driusan!!!!!
it's more that the way I'm setup it's a bit difficult to add pecl extensions
I have about 20 versions of PHP installed, all scripted. and while I could figure out how to build pecl extensions in that type of a system, it's kind of a PITA
 
I think there's a flag that allows it to use a polyfill parser instead of the extension, but I've never used it
 
6:57 PM
also, I want to say thank you for the help recently. It's awesome to have, so thank you @driusan
the polyfill fatal errors on a missing token definition
 
The polyfill uses the the wrong parser :P
 
no problem.. what started as a good excuse to slack off at work with a plausible excuse, continues to be a good excuse to slack off at work with a plausible excuse..
@ircmaxwell regarding the LLVM versions you plan to support, fyi debian testing has LLVM 7 (the one you were going to skip..)
 
@LeviMorrison if we use an RRB tree for vector we don't need a deque at all, right? github.com/hypirion/c-rrb
 
@rtheunissen How is its concatenation at the front?
 
@driusan totally happy to add all versions, just takes some time to add them...
 
7:06 PM
You could just require the latest LLVM (e.g. 8) and be support new versions going forward. Plus, it has a webasm backend, which looks fun...
 
@LeviMorrison Because insert-at is constant time, shift/unshift would be too?
 
@rtheunissen The algorithmic complexity table doesn't list insert at all.
 
@ircmaxwell: do you mind if I add an if defined('DEBUG') in the VM hotpath? I want to log the opcodes being executed when debugging..
 
@driusan totally
go for it
 
@LeviMorrison for some reason I thought update was insert, sorry. It did seem to good to be true.. sorry
 
7:13 PM
It's still a very interesting data structure, and if you want an immutable vector it is the best one I am aware of.
 
Trying to find a solid persistent deque is difficult.
And I'm not always sure how transferable functional concepts are.
Finger trees seem pretty cool.
 
Vectors and deques don't need user-defined comparisons, so I think there's a better shot of them performing well.
@rtheunissen I'm not very familiar with them. Wikipedia says they make efficient deques.
 
@LeviMorrison they do but all the literature I can find is purely functional so it's difficult to translate. I have never done functional programming :|
@LeviMorrison I'm thinking all we need is HAMT, RRB, and whatever the deque/linked-list implementation is. I stand by my ordered-map m-ary AVL implementation for now. The conclusion is that we do not preserve insertion-order anywhere. Either sorted or arbitrary.
I think there is an insertion-order HAMT somewhere but I'm not sure how that works.
We need something that can shift/unshift in constant time.
Interesting comment...
> FYI folks, I've been working with this project recently. Its not only dead, I'm not sure if it ever worked. His stuff meets none of the performance claims. Its all linear or worse.
 
What's the plan for memory management? Most functional libs like this rely on gc. In fact, reference counting kills performance on some of them.
 
well, shit: dissenter has been banned from both chrome and firefox stores
I guess being able to comment on Vice articles is evil or something :(
 
7:25 PM
@LeviMorrison zend gc, at least to start out with. Unless there is a good reason not to, or until there is one.
@LeviMorrison this looks interesting too: deepsea.inria.fr/chunkedseq
 
added a make build
 
is there a way to make compilation files give you an error instead of just emitting a 0 byte file?
 
8:06 PM
"compilation files"?
your PHP.pre looks good, I'll try running it on my side
 
compilation of files
it's not PHP.pre that's the problem, it's MemoryManager.pre
 
Oh...?
 
(and JIT.pre and Helper.pre and a few others that I didn't commit because I didn't change them)
 
really weird
 
does compilation on that branch work for you if you run script/rebuild.php?
 
8:21 PM
let me check it out
 
8:36 PM
$ php-7.4 bin/jit.php -r 'echo "Hello World\n";'
LLVM ERROR: Program used external function 'erealloc' which could not be resolved!
once I fixed a variable isssue with $loadtype vs $loadType
Ohhhhhhhhh, hang on
I know what's wrong, I'm using a patched version of pre-plugin
@driusan github.com/preprocess/pre-plugin/pull/19 was merged, but I doubt you have the patch
 
9:26 PM
@ircmaxell I've never looked into it but I always assumed its was like that because it's not possible to determine that in a SAPI-independent, TSRM-independent way, but thinking about it a little I can't immediately see a reason that would be true... is there anywhere other than init where you get "in Unknown on line 0"? I feel like I've seen it in other circumstances before but again when I actually think about it I don't know where that would be
other than in the fpm top-level proc, but that's a special case anyway presumably since it must bypass at least the display_errors=1 branch
 
10:06 PM
@Wes so I thought about this some more and I realised that a) what I said isn't right and b) what you said also isn't right :-P
...but this is not the place to discuss it :-)
 
10:29 PM
@DaveRandom I know in 5.2/3 you could get it in weird areas
 

« first day (3099 days earlier)      last day (1856 days later) »