« first day (3547 days earlier)      last day (1392 days later) » 
00:00 - 22:0022:00 - 00:00

10:29 PM
@Jeeves whaaaat, leave NEKUDOPAYIM PAPAYAIM alone!
 
@DejanMarjanovic but why
 
Because of... aahhm... historical significance... yep, that's right... historical significance.
 
!!rfcs
 
@DejanMarjanovic ltns
 
10:40 PM
I'm confused by the secondary vote of "Make constructors and destructors return void"
 
Hmm
Anyone ever have a problem where an if statetment stops midway?
 
You're going to have to be a bit more specific
 
So I have an if statement checked to see if a number is 0
if it is 0 it prints something
It is checking a list of people against a DB of assignments
I am using a count to see if that person is in that list of assignments
if not it will be 0
if it is 0 I have it printing the word Empty
 
I think you need to show us some code
 
It gets through the sure
Whats the site you use to share text these days?
 
10:49 PM
@JukEboX 3v4l.org
 
@MarkR @Tiffany 3v4l.org/bZBc6
Its a list of 8 names
It gets through the first 2 names because they come out with 0
Sorry
Much better
So it gets through the first 2 names because they count to 0 in the assignments list
but then it gets to the 3rd name which has a 1
 
@Tiffany I had to google that :D hello friend!
 
and since I don't tell it to echo it shouldn't
and that is where ti stops. It stops going through rest of the list.
weird?
 
does it stop, or does it just not print anything else so you don't see. Add some debugging statements to find out
SQL: "User='$Dude'") .. and don't do this, ever.
 
peapleHunter :P
 
10:56 PM
@DejanMarjanovic LOL thanks. fixed that
@Mark it doesn't stop.
 
@Girgias so am I. I am tempted to vote for 8.1 but it is against PHP's usual deprecation policy, and not what the RFC was about so far.
 
It just doesn't print anything after that.
 
@JukEboX use bindParam if you're going to pass a variable
 
@MátéKocsis Okay good to hear I'm not the only one, may ask on list then if I get to it
 
@MarkR if I do this
 
10:58 PM
Don't do a query inside a loop.
 
the list will echo --> Empty Empty Derp Derp Derp Derp
even though the 2nd derp should say Empty
Maybe I am forming my functions wrong
for what I want to do
 
loop through, prepare a statement, then execute the statement outside of the loop (I think)
 
There u go
What tiffany said
 
Most likely you've got something wrong with your data
 
You can use joins
to join tables
 
11:00 PM
@SAL
@SalOrozco the problem is one isn't a table
Its an array
so it pulls a name from the array
and then checks to see if that name is in the table
and if it isn't should display the name
Does that make sense
 
Yeah, that's very clear.
maybe ur name has a space in the database.
 
So I throught of that
Before I check the name I am using trim()
so it is removing those
Now here is the strange part
if I put the Print "Empty" outside teh IF statement
 
yeah exactly
or the name is something like
O'neal
 
@MátéKocsis @Girgias are you confused about the secondary vote's question or the options?
 
It will give me all 8 Empties because it can see all the names
 
11:03 PM
@moliata Both
 
u should var dump your array
 
I seems to come out of nowhere
 
I have it, it shows me the list of names
 
What ever you are getting from the first query
 
And I'm not sure exactly for what I'm voting for
 
11:04 PM
Lets see
 
Is it enforcing void semantics all the time and fatal erroring if you return something?
 
@JukEboX stackoverflow.com/a/19107074/2524730 (though this is mysqli, but it's easy enough to alter for PDO)
 
It feels like the $countItems is stuck on a specific number
 
Based on the RFC (wiki.php.net/rfc/make_ctor_ret_void), Proposal section, the RFC proposes to first deprecate the ability of returning values from ctors/dtors and in later versions enforce that check
that behavior is deprecated in PHP 8.0 and the check
will be enforced in either PHP 8.1 or PHP 9.0 depending on the secondary vote
 
@Tiffany not sure its the same. My foreach loop is checking if each user is in the list of assignments and if not then printing Empty
 
11:06 PM
Moreover, the RFC proposes to allow adding an explicit void return type on ctors/dtors. In this case, the check is enforced
 
I FOUND IT!
LOl
 
But if there's no explicit return type, the check will only be enforced in either PHP 8.1 or 9.0 (depending on the vote)
 
My line that formats the array for the names was in the wrong place :P
 
@Girgias I hope now it makes sense? I was told that I'm not really good at explaining things, so hopefully it makes sense ;D
 
how u fix it?
 
11:10 PM
I had to move that line from inside the IF statement to above the query. LOL
 
@moliata it makes sense, but you don't make ANY mention of PHP 8.1 prior to the voting doodle which is super confusing
 
I was defining a variable it didn't know about yet >_<
 
You only mention PHP 9.0
And then out of nowhere is this secondary vote choice which seems super out of place
 
While I intended to enforce void rules in PHP 9.0 only, other internals told me that PHP doesn't follow semver much and it should be okay to also enforce void rules in PHP 8.1.
Raised that question in the mailing list, didn't get a lot replies (none actually), so put that as a secondary vote. I have updated the RFC, hopefully others won't get confused.
 
@JukEboX You probably need to enable display_errors in your php.ini. Otherwise it won't display error messages.
 
11:14 PM
PHP 9 ?
already?
 
@IluTov it is on. I guess it didn't know what to say :P
 
@JukEboX What about error_reporting?
 
@SalOrozco mitigating BC breaks takes time ;)
take*
or takes
whatever, my grammar isn't that good
 
@SalOrozco I have a mention of PHP 9 in my saner numeric string RFC too, doesn't mean it will be soon
 
years away
 
11:18 PM
I guess what's confusing is that we're deciding that something gets into PHP 9 even though we have no clue what PHP will look like in 4-5 years. If we go with editions there might not even be a PHP 9.
 
PHP Nein... said it, I will escort myself out.
3
 
Maybe the secondary vote should've been delayed for whenever that PHP version is in development.
 
@IluTov Edition would complement the minor/major release cycle though from what I've read
It wouldn't replace it
 
Also, I suspect in 4-5 years we potentially won't even remember that this RFC was voted on :P
 
Well, we deprecate the behavior first, so a quick grep search will help us ;)?
 
11:23 PM
Editions.
 
By the way, why does ext/reflection have no explicit types for the most (in the stubs)? any particular reason or no one has added them yet.
most part*
 
BC
Or do you mean argument types?
What union are they?
 
@Girgias Yeah, then let's say PHP 9 the way we'd think of it now. If we introduce editions before we could remove this behavior in the new edition, making it unnecessary tp remove it from what would become PHPs first edition.
 
11:39 PM
@IluTov My understanding, which might be wrong, is that editions are meant to become new default sane config values, however such behavioural changed would not be part of editions and would need to stick to the minor/major release cycle
 
@Girgias I mean the stubs of ext/reflection mostly have PHPDoc blocks instead of explicit type hints
 
@moliata I've udnerstood that bit
Again what are the union types
 
what union types ;d? There are a lot of PHPDoc blocks such as @return bool instead of a proper : bool and etc.
 
BC
Reflection classes are not final
So you can extend them
 
Oh, now it makes sense
 
11:43 PM
Triple unions are also not supported as ZPP doesn't have a way to deal with them currently
And double unions other than array|string, int|string, array|object also don't have a ZPP handler
 
Hey is anyone here familiar with CORS?
Is it possible that an external script called from Domain B could make a GET request to domanin B and complete successfully
while the same request made from site on Domain A would fail if not called from the script hosted on Domain B but directly from a script hosted on Domain A?
in the first successful scenario the function making the request is included in a script hosted on the same server as the requested resource
 
00:00 - 22:0022:00 - 00:00

« first day (3547 days earlier)      last day (1392 days later) »