« first day (2071 days earlier)      last day (2893 days later) » 

I know that it's a php room, but when did it stop anyone from asking non-php question? ;)
morning
 
@AlmaDo Ah I see the problem!
It's java
 
@PeeHaa trololo :D
 
:P
 
@SergeyTelshevsky I highly doubt that. You might have noticed already: there are fewer and fewer gambling+pawnshop combos opening. The market is saturated and the target audience is starting to migrate to online venues.
I am quite confident to predict that by 2020 the only gambling establishments will be proper casinos ... though pawnshops will still remain.
it's more cost-effective to have an online gambling business and internet access with big screen phones are getting cheaper all the time
 
12:17 PM
@Gordon On that site, "Our scripts are blocked by your ad-blocker. Please add our website to your whitelist to use it." -- I'm not using an ad-blocker.
 
I am, but I don't get that message :P
 
Wes
lol
 
Also why aren't you using an adblocker?
 
@PeeHaa same here
 
@tereško especially the ones that are below our office
 
Anonymous
12:20 PM
@Wes Not as bad as what you describe, afaik
 
@PeeHaa Shush you.
 
@salathe ❤
 
@SergeyTelshevsky yeah, that's actually a good example, though I was thinking about https://www.optibet.lv/, since they are looking for developer all the time
 
evolution places their adds even in the cinemas now.. was at the cinema two weeks ago (WC:B) a nice 1min ad
 
@tereško wait, you mean gambling/betting establishments in Latvia are not primarily used for money laundering like everywhere else?
 
12:35 PM
@Gordon nope
well, I think that applies too, but these are a different level establishments
money laundry doesn't need a whole network with gambling houses 1km far one from another
 
@Gordon what would be the point? We have banks for that.
 
when i back to room 11 after a long time
user image
8
 
12:52 PM
Hellow everybody
 
hellow fellow
 
Is there a reason not to use a getter in a foreach. Example: foreach($obj->getFields() as $field) {...}
 
No
 
as long as you don't do foreach ($obj->getFields() as &$field) {}
 
I remember reading somewhere that it increases the stack a lot cause on each loop it makes a call to the method
but it seems as a bs to me
 
12:55 PM
bugs.php.net/72439 if someone wants some fun
 
i have a comment in php.net @zigi
you can use it through yield keyword
 
@AdilIlhan thanks man, but I am just talking about simple object, no generators involved
 
@IvanEnderlin The commit you linked on the mailing list is for PHP 7
A commit in PHP 7 is unlikely to cause a regression in PHP 5.6 :P
 
@IvanEnderlin You need to stop making impossible demands of PHP. Nobody ever promised you stability :P
 
1:16 PM
@NikiC
@NikiC Damned… I miss copy/pasted
mis-copy/pasted… well, you get it.
 
1:30 PM
@NikiC so where does this timeout bug need to be fixed? It seems like if the timeout happens and garbage collection is running, either garbage collection should finish its work before throwing the fatal, or maybe garbage collection should simply clean up and stop work... It doesn't seem like it would be fpm's responsibility to handle this. I looked through the fpm code and didn't quite see where it would clean up in this case.
Also I'll update the bug with the final test case and some more context
 
1:49 PM
Hey I'm getting this error Cannot redeclare class egt\style\eScript in powerone\style\element.script.egt on line 16 BUT I only declare it that file. I've checked every file to see if it was "declared" anywhere
 
shameless plug? =)
 
does require_once reload a script from scratch?
 
Hi
 
is any one know where woocommerce session table was inserting the shipping address
 
1:58 PM
@JustinKaz It doesn't "reload" anything. It just includes the code in the given file and terminates if that file is not found.
It's like an include(), only fatal when it errors.
@JustinKaz So, if you include the same class twice in your flow, then yes it can throw a redeclare error.
 
@BillSchaller In 7.1 timeouts will no longer be able to interrupt GC
 
and no, @JoeWatkins, ninja.one is already taken
:P
 
evenin teresko o/
 
@Oldskool but isn't include_once just include the file once
 
2:10 PM
@AnmolRaghuvanshiVersion2.0 o/
 
Evenin'
 
posted on June 17, 2016

New Cyanide and Happiness Comic

 
@JustinKaz it doesn't. Means it doesn't reload at all, so the name suggests.
 
@Saitama mornin' from EST
 
ConfiguredFileParserConfigurationFactory - too much? :-)
 
Anonymous
2:17 PM
not enough
 
@Jimbo are serious? @tereško throw some swears at this gentleman please
 
Using a FileParserConfiguration for my FileParsers. It's an abstract factory (ConfigurationFactory is an interface), and my implementation of the factory loads the config stuff from configuration files, hence: ConfiguredFileParserConfigurationFactory
 
@NikiC Oh wow, you're talking about github.com/php/php-src/pull/1173 yes?
 
@Jimbo why !?
I mean, what's the point of it?
 
Well, I have a factory that has some default, hardcoded configuration lines within it to build a FileParserConfiguration. Then I decided I want to offer the ability to create configurations from a config file. So I created an abstract factory, and named it beautifully
But it has config in the name twice :-)
 
2:25 PM
besides, it sounds like you have "configuration object"
 
@BillSchaller yeah
 
@tereško That's what it is, effectively. Just for a FileParser
 
why does it needs to be an object and not just an array?
 
Well, the object provides types and simple validation, and groups the values as exact ones instead of just key value pairs
Effectively a value object
 
@NikiC would it make sense to wrap the guts of the GC in HANDLE_BLOCK...HANDLE_UNBLOCK in 5.6 and 7.0 though? That seems like it would fix the bug, but I dunno what the performance implications of that are if any
 
2:27 PM
@Jimbo you really should switch to Java. I have a feeling you would like it better than PHP
 
@Jimbo it might sound shocking, coming from someone like me, but you are over-complicating this shit
 
If I just ask for function name(array $array), that array can contain any old bollocks. If I'm asking for function name(Config $config), I'll know exactly what it contains
@Gordon You bastard
 
in other news - I am fucking dying here (it's like 100% air humidity in Riga)
 
I imagine your hair is going nuts.
 
@Wes holy shiiiiiit you are lucky...
 
2:30 PM
@BillSchaller The proper way would be to wrap GC in a zend_try block
However as the datetime issue is already fixed, this would only be important insofar as it ensures that GC still runs in subsequent requests
 
@Fabor naah, those are usually manageable. It's the sweating that's bothering me .. I feel myself dripping.
 
Cold beer in your future
 
YES
also, got my new mouse delivered (mionix naos 8200)
 
@NikiC Ok. I'm not sure why the fpm worker is segfaulting when it hits the testcase twice. From what I can tell, gc would simply not run, but maybe it's something about the state of the root buffers?
 
@Jimbo oh come one. you job title is "Solutions Architect". That is basically screaming for some nice J2E. plus you are overcomplicating things. So sounds a lot like Java.
 
2:32 PM
I still am unable to locate the "Redeclartion" of the class object
 
@Gordon Do you not think PHP is getting nice enough to do these things, especially with scalar type hints? :-)
@tereško So, GTX 1080. Underwhelmed :-( I was expecting water cooled 2.5ghz. Won't run 4k at decent fps without two of them
 
@BillSchaller Ah, interesting
 
@Jimbo why I an @Gordon agree on something about OOP, take it as a sign
 
@Jimbo no, PHP will never allow you to do SortedMap<Long, Map<String, Number>>.
 
@Jimbo heh. I am waiting for AMD's Vega cards
 
2:36 PM
@tereško was the same in Moscow yesterday, should be fine tomorrow
 
@nikita2206 no, tomorrow we are promised 20+ m/s winds
and on sunday - thunderstorms
.. let's just hope it gets better till Līgo
 
That sound well fun
@tereško Are you going to run around singing for the night spells?
 
@Jimbo naah, I will mostly cooking meat on bonfire, drinking beer and eating a lot
 
@tereško So just a regular day? :)
 
Anonymous
j
 
z
 
… is meh? Yes, correct.
 
fuck you and your country @Wes
 
2:48 PM
@AdilIlhan I actually see another option, the F and the 1 with "speed stripes" behind it. Just the 1 is BS. The F is clearly there too.
 
@tereško don't you know it's never sunny on Ligo?
and yeah, this (look at Polland) is comming straight at us.....
 
@Oldskool BS?
 
Wes
@AdilIlhan welcome to the matrix
 
@Wes are you still here?
 
Wes
thiago motta ruined my day @PeeHaa
 
2:54 PM
!!urban bs
 
Italy has won and it's your birthday @Wes
 
[ BS ] bull shit, duh
 
@AdilIlhan ^
 
the streets wait you @Wes :p
ah yeah. i forgot the slang @Oldskool
 
Wes
lol. i'm too angry
 
2:55 PM
why
 
@SergeyTelshevsky I remember this one time .. about 5 years ago :D
 
@AdilIlhan isn't it just a 1 on a white tatty flag?
 
Wes
did someone watch the game
 
Sadly
 
Wes
@PeeHaa did you notice how elegantly i avoided mentioning that NED didn't even qualify :B (i think i just did it.... oops) :D
 
3:09 PM
@Wes oops. /me clicked kick instead of punch :P
 
lol
 
@Wes but it's full retard we didn't even qualify. Looking at the teams that did make it in
But the upside is I can watch games and yell at both teams now instead of just NED :D
 
Wes
ahaha
 
Can I use "dup" instead of "duplicate" ? Actually I need a shorter version of "duplicate".
 
use 'dupe'
 
3:11 PM
I'm kinda hoping for team germany though
 
@Saitama thx
 
7 - 1
 
@Saitama are you sure? In the dictionary it means "stupid person" :-)
 
@PeeHaa Is it allowed to kick people for accidentally kicking somebody?
 
Wes
@PeeHaa to be honest it's a shame that ned didn't qualify. i didn't watch the games but i know the players had way more potential than what they expressed on the field
 
3:13 PM
It is, but most likely it will result in @jon entering the room to see what's going on ;)
@Wes Games were awful. They don't deserve to play
Useless pieces of sheit
 
@PeeHaa That'd mean drama… do we need some?
 
neh
@JonClements is ok though
 
Wes
@PeeHaa still it is a shame. an european cup (or world cup) without teams like ned it's like a world war without germany in it.... it's just not world and not war enough
 
:P
@Wes But as said: it's nice being able to watch games without your team in it
 
Wes
never happened to us, so can't tell :D
 
3:19 PM
@PeeHaa okay … fine … time to kick you then as he's okay… /s
 
@Wes ouch burn
What's on tonight btw?
Oh lol talk about war
 
Warning: file_get_contents(http://roblox.plus:2052/limiteds): failed to open stream: Connection timed out#
ini_set('max_execution_time', 300);
$file = file_get_contents('http://roblox.plus:2052/limiteds');
$decode = json_decode($file, false);
 
Wes
this year all teams suck basically. we can even think to win
 
HTTP/1.1 200 OK
Date: Fri, 17 Jun 2016 15:29:33 GMT
Content-Type: application/json
Content-Length: 47098
Connection: keep-alive
Set-Cookie: __cfduid=d32517a2478e54bc7114c82d329e7c8b21466177373; expires=Sat, 17-Jun-17 15:29:33 GMT; path=/; domain=.roblox.plus; HttpOnly
access-control-allow-origin: *
access-control-allow-headers: X-Requested-With, Content-Type, X-CSRF-TOKEN
Content-Encoding: gzip
Server: cloudflare-nginx
CF-RAY: 2b4789a707190ca7-AMS
 
3:29 PM
#WorksForUs @bobjomes
 
what should i try doing?
 
Firewall?
@Wes tbh you guys have a decent chance
 
i tried it on phpfiddle and it says file_get_contents(roblox.plus:2052/limiteds): failed to open stream: Connection refused
 
Wes
i don't take this match as a benchmark as they were clearly being italian waiting for the goal to happen magically
 
@bobjomes 1 sec
 
Wes
3:31 PM
italy is "we are saving energies for the final" then it happens that they can't even pass the first phase
 
@bobjomes again #worksForMe requestable.pieterhordijk.com/vXd7o
It hangs in my browser though
 
can you try it on phpfiddle? to see if it's only happening to me?
 
No. If it fails for you it will also fail for me
Damn @NikiC that timing github.com/nikic/FastRoute/issues/102 \o/
Could you publish a release please @NikiC <3
 
@Shafizadeh "dope" is also an older slang name for heroin
 
@PeeHaa done
 
3:42 PM
I thank you
 
@tereško ah :)
 
wait no .. got confused there .. he wrote "dupe"
my brain is getting steam-boiled
 
posted on June 17, 2016 by nikic

Placeholder names may now start with an underscore (`_`) character.

 
4:26 PM
!!> echo b"foo";
 
^ Why is that valid?
 
@kelunik Leftover from PHP 6 fork when strings were going to be UTF-8 by default.
b"string" indicated that it should be treated as a binary string.
(binary) "string" still works too.
 
I need to reference a variable object within a loop... I'm trying:

foreach (${'data->field_field_' . $gradeLevel} as $courseitem){
//some stuff
}

But that seems to fail. I need to be able to append a variables contents to 'data->field_field_' Can someone help me?
 
@bwoebi github.com/php/php-src/commit/… This is what happens when you're to lazy to cover the error conditions :P
 
4:40 PM
@NikiC Quick! I immediately need a wall to bang my head against!
 
@bwoebi You in a middle of a field or something?
If not, the next wall can't be so far removed
 
@NikiC yes
 
@bwoebi Hm... maybe there's a tree somewhere?
It doesn't have quite the same flavor, but I think banging your head against a tree would also do...
6
 
@NikiC I'm in the middle of a field…
found a tree…
 
echo "head" | wall
 
5:34 PM
Seven deadly sins was really amazing...
 
Anonymous
Evenin
 
Wes
today i did nothing basically
 
\o/
@JayIsTooCommon heya
 
Wes
...which means i did more than usual
 
Anonymous
sup sweet cheeks
 
Anonymous
5:42 PM
That's cool right? ^
 
@Wes :P
@JayIsTooCommon totes
 
Anonymous
@Wes but you did the whole pizza and beer thing, right?
 
Wes
no pizza. spaghetti and onion frittata (it's what italians eat when italian squad plays :P)
 
Anonymous
I would happily move to Italy, just for the food.
 
Me too
Anyways, nite 0/
 
Anonymous
5:47 PM
G'night \o
 
Wes
funny thing, in tv we don't have italian chefs, but jamie oliver and gordon ramsay
world is strange...
 
Wes
nite saitama
 
Anonymous
Heh, I made a reservation system called Ramsay, I wonder if I can get fucked for using his name :S
 
Wes
lol
 
5:49 PM
metaphorically? well before you actually make money with it I guess your *** is safe
 
Wes
nobody cares of what you are doing until you start making money out of it
 
Anonymous
true dat
 
I miss lxr.php.net :-(
 
Wes
!!should i have a coffee or beer
 
You should have a coffee.
 
6:07 PM
Hey all, PHP noob here.
I need help with creating a PHP script(?) to post data to an API
I have something working with GET for the same service, but the resource I used didn't provide an example for POST
 
Wes
does the ($foo->field)($args); syntax work in phpstorm 2k16?
 
@Danack I changed a few conditions that were runtime dependent to use Exception instead of Error. I'm wondering about those from invalid serialization data. A case could be made for either class, though I'm leaning toward leaving it as Error.
 
@Wes What's that?
 
@Wes Nope.
@PeeHaa Directly calling a callable stored in $foo->field.
 
Oh right
field made me much confuse as it looked like some magic setter
Maybe I need coffee too
 
6:14 PM
@Wes It doesn't like (expression)(expression[, ...]) in general.
 
Wes
indeed
 
Should I use $response['$var']
or $response["$var"]
or $response[$var]
?
 
I guess I should ask if anyone's willing to write a (short) PHP script for me :p
 
@Zacharee1 At least you're honest about it :-)
 
:)
 
Wes
6:18 PM
@AbrarAhmed first wont work, unless you want literal '$var' as key, others are equivalent-ish, but you should use the last one
 
What does your GET code look like @Zacharee1?
 
<?php

// Get cURL resource
$ch = curl_init();

// Set url
curl_setopt($ch, CURLOPT_URL, 'https://xpw1.no-ip.org:8443/server/log/750');

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

// Set method
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

// Set options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// Set headers
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "X-Access-Server: <PRIVATE>",
  "X-Access-Token: <PRIVATE>",
 ]
);


// Send the request & save response to $resp
$resplog = curl_exec($ch);
 
@Wes Thank you! :)
 
That code gets 750 lines of a log
I need to POST to https://xpw1.no-ip.org:8443/server/console
 
281
A: PHP + curl, HTTP POST sample code?

mikuYou'll find php/curl examples here: http://curl.haxx.se/libcurl/php/examples/, especially http://curl.haxx.se/libcurl/php/examples/simplepost.html <?php // // A very simple PHP example that sends a HTTP POST to a remote site // $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.mysi...

WTH why aren't they forcing people to watch this before being able to ask a question? meta.stackoverflow.com/questions/326385/stackoverflow-videos
 
6:22 PM
So if I tell JS to send a variable to that, edit the address and include the headers it should work?
 
Not sure where JS is suddenly coming from but yeah?
 
@Zacharee1 Postman in chrome https://www.getpostman.com/
could help you a lot generating curl code for any language
 
@PeeHaa I have some JS handling the textbox data I need to send.
@AbrarAhmed that looks promising. I'll try it out
 
@Zacharee1 In that case yeah
 
Thanks
I'm definitely going to need more help soon though :p
 
6:28 PM
As long as you are willing to show your research effort
 
Well I barely know JS in the first place, and I got that working mostly by myself.... ;)
I used postman to make something
so I'll test it out, get a ton of errors, fix the ones I can, then ask
 
Wes
@JoeWatkins is it possible to make uopz_extend bypassing final classes?
 
@tereško well.. everyone mentiones this one exceptional year as a counter-argument :P
 
wut?
@SergeyTelshevsky what are you replaying to?
 
6:49 PM
Do we have a David for php?
 
Wes
7:01 PM
updated github.com/WesNetmo/Symbola and got a cool name too :B
3
@PeeHaa go check it!
 
That's... actually pretty cool
 
Wes
indeed :B i just had to make it...
 
I see you went to the same school as @DaveRandom when it comes to commit messages :-)
 
> final class §NotAClass§
2
 
Wes
that's nothing. i usually write "sdofjad89asfudasfsdfasd" and kinda string
 
7:07 PM
that's.....
.... beautiful
 
Wes
that's not a class
 
!!giphy beautiful
So useless...
1 message moved to bin
 
So, has anyone ever heard of/used MakoFramework? If you have help with this question: stackoverflow.com/questions/37873539/mako-framework-templates would be appreciated.
 
Wes
next step is have $obj->method === $obj->method working. now it returns a different closure each time
i have no idea how to do that properly though
 
I.... really has no clue on when/how/why do use that
 
7:33 PM
is cv-pls.com down?
 
I just looked for 30 minutes to my code wondering why it didn't show any branches on my new repo.
Then it hit me... I forgot how git works and my code is fine
@Machavity Has been down for a while now
 
Guys, simple one :-) If I have a factory that builds something, would it be considered acceptable to allow that factory to persist the object it builds before returning it (so it has an identifier), or focus solely on creating the new object?
 
OK, now I'm having a weird issue with PHP
 
try adding more beer
2
 
5 more years
This is the code:
 
7:42 PM
@tereško he's going to need something stronger. He's working on php...
 
@PeeHaa seriously
And the error:
#:No URL set!
 
@Zacharee1 Pastebin please
 
sorry
 
It's been a while since I opted to try to work with curl, but shouldn't you just pass the uri in the init?
 
idk
welp
that got past that error
But now: #:SSL certificate problem: self signed certificate
 
7:46 PM
oh goodie a revenge vote \o/
 
even though I have it to not verify
 
@Zacharee1 try the google
 
I already did :p
I've got this in the code: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 
Try it harder
I somehow assume you are on windows
 
hello guys. anyone here knows about servers? I wanted to ask a question
 
7:48 PM
@Jimbo Does "it depends" count :)
 
@PeeHaa well, I'm using Windows to develop, but my server is Ubuntu with nginx
 
So the code is running on nix?
 
yesh
 
!!google curl ca bundle
@Jeeves you dead?
 
@PeeHaa Nope. Not that I know of...
 
7:50 PM
lol
 
@Jeeves Why didn't you respond??
 
bots are fun
 
!!should I try it again?
 
Dunno.
 
Oh right...
5 messages moved to bin
!!? curl ca bundle
 
7:52 PM
Search for "curl ca bundle" (https://www.google.com/search?q=curl+ca+bundle&lr=lang_en)
• cURL - SSL CA Certificates - If the remote server uses a self-signed certificate, if you don't install a CA cert store, if the… (https://curl.haxx.se/docs/sslcerts.html)
• cURL - Extract CA Certs from Mozilla - The Mozilla CA certificate store in PEM format (around 250KB … The mk-ca-bundle tool converts Mozil… (https://curl.haxx.se/docs/caextract.html)
• mk-ca-bundle - cURL - Haxx - The mk-ca-bundle tool downloads the certdata.txt file from Mozilla's source tree over HTTP, then p… (https://curl.haxx.
 
@Jeeves tnx
 
@PeeHaa You're welcome!
 
Again: I don't really like curl not have the stomach to test stuff
 
it's just ignoring it
maybe I should figure out how to use Let's Encrypt....
 
7:55 PM
Oh wait wat. It's an actual self signed certificate
@Zacharee1 yes yes you should
 
@Machavity I did look at the sites list in the footer but it looks like I must have missed that one because I didn't see any server related one
Thanks for your help. Have a good day ;)
 
oh good, more PHP
 
LE is stupid easy. With that library it is even stupider easier
o/ @Danack sir
 
omg
Variables!!
 
Anonymous
7:59 PM
@PeeHaa you're such a Jeeves noob ;)
 
I had $curl set for the init variable, but everything else was using $ch
 

« first day (2071 days earlier)      last day (2893 days later) »