« first day (1602 days earlier)      last day (3339 days later) » 

ThW
12:00 PM
@tereško mine has that, too :-)
 
i mean, beyond two options =P
 
@tereško where are your offices? I'm at Aspara coffee place in some park near old town.
 
@diva no
The external server will challenge the client for the credentials, you can't send the credentials as part of the redirect
 
@DaveRandom i mean to say posting crenedials?
ohh
 
You could do it by proxying the remote site e.g. into an iframe, but that's probably not a good approach
 
12:03 PM
malloc:: assertion botched sigh .. 1 hour till release
 
@Fabor kinda far-ish. 25min walk.
 
@ThW you and your displays
 
@DaveRandom ok can you plz tell me any idea how to pay from PayU money thats is php service without login? few of client i could see are able to do that? can you plz suggest something? i could not find any related stuff after lot of reseraches
 
@ThW I was thinking of a different ultrawide then
 
12:05 PM
@ThW is the only person I've ever met who has a dual monitor setup for travel
 
ThW
@tereško The consumer version - it has only a simple stand and no vesa
@DaveRandom ;-P
 
I am not sure if I will use VESA mount
but it looks like I will need a proper desk
 
@diva Are you trying to take card payments through your website?
 
@DaveRandom from mobile basically , i hv seen apps where they hv webpage of payU payment wihtout login they pay like newsHunt app in android , any suggest would be grt to help
 
As much as I detest PayPal... just use PayPal. It's relatively easy and it instantly absolves you of a whole bunch of data protection crap.
 
12:10 PM
@DaveRandom kool i hv used that, challege is now for PayU
 
Never heard of it
 
@diva Are you missing some keys on your keyboard?
 
@DaveRandom yup i could see that php and it is completely working issues is pay money without login in PayU
 
@PeeHaa wht re you tlking about? Didn't you know tht the letter is no longer llowed on the internet?
 
12:12 PM
:P
 
@tereško Why are there no brown people here.
 
@Fabor ;D
 
@DaveRandom ok thx will research on it
 
@tereško please also confirm if I bought and am now wearing a female hat. imgur.com/CFFyi0u
Also... Lido is awesome.
 
@Fabor If you take it off it still won't make you any less of a girl
2
 
12:18 PM
@Fabor hard to tell, it might be just a hipster version of this thing: img.fotoblog.lv/406/661/900.jpg
 
These are warm as hell
 
also, it's kinda meant for weather when it's under -20°C
 
@Danack I can try and add some magic to retrieve system default DNS server address if you like but it could be hard to make it work on Win without some really ugly hacks (at the moment it's 100% Win compatible). Not sure if there's really any value in it but I guess since we support the hosts file we should probably support the local resolver's other config by default as well to reduce PoLA violation scope
 
Lol. You'd like it here Dave. Amazing pub place called Ala. So much choice. About 2.50 EUR for a beer
 
that's kinda expensive
 
12:19 PM
I'm okay with that @tereško. My ears need warmth.
 
^ there's a bar next to my office in the centre of a big UK city that's cheaper than that...
 
Any recommended pubs then?
Dave, yeah but that's because of the trade off that you might get stabbed in Manchester
 
not any that I know near old city
 
why if I'd do htmlentitities(' " " " ', ENT_QUOTES, "utf-8"); it would still be outputted as: ` " " " `? and not converted to &quote; is it because of the utf-8 charset
 
@MikeM. are you looking at the source of the response?
 
12:26 PM
I either misread something on the doc or I just messed it up.
ye.
I think it became a JS problem.
Screw JavaScript.
that's the problem here
 
@Alexander We can't really push anything new for PHP 7 anymore, we're already past the cut-off date ^^
 
I'm looking for a regex pattern that can convert multi-byte string to utf8? Can anyone point me in the right direction?
 
@Naruto Isn't utf8 multibyte?
 
regex sounds like entirely the wrong approach regardless
 
@PeeHaa Yes it is: UTF-8 ASCII compatible multi-byte 8-bit Unicode.
 
12:32 PM
@Naruto do you know the input charset?
If not you're in for a world of pain no matter what you do
 
@DaveRandom I don't, but I hope the programmer asking me does.. :) If yes I guess iconv() could be the way to go?
 
@PeeHaa Seems the data retrieved is like: \xC3 or \x04
@ThW don't have PHP 5.5 yet
 
Hi
I need to know how can i select related ads in MYSQL
by title
can someone help
 
ThW
@Naruto is it JSON?
 
12:41 PM
@Naruto Yeh or mb_*(), whatever you want, but you need something that is encoding-aware, you can't just throw a regex at the problem
@ThW If it's JSON it's invalid if it isn't already UTF-8 anyway
 
@DaveRandom can you help regarding to MYSQL?
 
Hi guys can i post the link of a question here? or is it against the rules?
 
ThW
@DaveRandom sorry, my mistake would besomething like \u... in Json
 
@Mubeen1992 make a sql-fiddle, and pasteh ere, so we might know what you want..
 
^ not E_FRIDAY
 
12:47 PM
@ThW it's comming from openssl shell-request
 
@Raulnd you got 2 answers
 
@Mubeen1992 You need to ask a specific question to the room in general, rather than asking for someone to help before they know what they are helping with
But also: probably not atm, busy at work
 
@BenjaminGruenbaum This video does not exist.
 
Got the link wrong from reddit, such a fail lol
 
12:52 PM
Works here
maybe country restriction?
 
@HamZa yeap! both correct ones.
 
I am going home :-)
I am working upfront of my planning and my boss says I am allowed to go, yet he gone away aswell
 
@HamZa he fixed the link
 
BEST FRIDAY EVAH :-P
 
@FlorianMargaine oh ok
 
1:04 PM
@NikiC I know, but there will be 7.1, 7.2, 7.x :) And your ideas are very cool, so keep pushing them into core
 
@BenjaminGruenbaum nice one :D
 
@rdlowrey ok, just read through the thread, props for keeping it technical, and in bjori's defense he was more mad about having that voting pass unanimously while nobody spotting this issue than you proposing/implementing it this way
 
I've just been accused of killing SO hehehe
 
well drop your guns
 
or my pants
 
1:17 PM
Preferably both
 
A collection of swag is on the way .. \o/
 
did they drop the requirement to 100k?
(was 200k)
 
I had a simple table in with id and title
 
@DaveRandom it was? well, yeah, it's 100k now
maybe you get something for every 100k heh
 
what i need is if i have 4 records in table
 
1:20 PM
@DaveRandom no it was always 100k, they just did it at 200k for jon skeet...
 
I'm sure Anna made a 100k exception for Uncle @Gordon
There's something on meta somewhere, I think
 
like pet food shop, pet houses, houses for pets and dental clinic
now if i type word pet food shop
i want MYSQL to return these three records pet food shop, pet houses, house for pets
not just pet food shop
these three are relevant to pets
Does this make sens?
 
That's 4 LIKE expressions.
 
$searchTerms = [];
foreach (preg_split('/\s+/', $search, -1, PREG_SPLIT_NO_EMPTY) as $word) {
    $searchTerms[] = "title LIKE '%{$word}%'";
}
$query = "SELECT * FROM mytable WHERE " . implode(' OR ', $searchTerms);
WARNING: DO NOT USE THAT CODE
But hopefully it demonstrates the basic idea
You need to deal with data sanitisation and indexing and that sort of thing
 
Do as I say and not what I do.
 
1:26 PM
^ this
Not that I do that anyway, it's a demonstration of logic, not a complete solution
Really if you want a decent search engine you need solr or something
 
paraphrased from genesis' wonderful song, 'jesus he knows me'.
 
^ which, coincidentally, I listened to about 5 mins ago
 
awesome :)
 
Basically I need to show 8 relevant places
 
I'm having an 80s day today
 
1:29 PM
not a search engion
 
although I think that one is actually early 90s
 
Get me 18 million dollars by the weekend!
Yeah, it's '91
 
@Ja͢ck how do you remember so well? was that your 30th birthday?
 
Futurama is a gift to the world ;-)
@FlorianMargaine ahahaha ... you're a funny guy!
 
1:32 PM
@Ja͢ck :P
 
In '91 I was ... ehh, 13 :)
 
omg you are so old, you're like, nearly dead
 
I know, right .. I'm like a million years old
 
doh
I was 3...
you, like, invented fire or something right?
did you have electricity?
:P
 
1:40 PM
@Sara Waiting for a reply to my email.
 
@FlorianMargaine I've set fire to things, if that counts at all.
 
@Ja͢ck Mostly dance floors, presumably
 
Yes, and girls hearts.
@DaveRandom Another one for the wonderful nineties :)
 
2:01 PM
@SebastianBergmann A reply would be good, wouldn't it
 
2:15 PM
@Sara Wouldn't let me feel ignored and lonely, yes.
 
2:28 PM
@Ja͢ck I've ended up on a dark, dark musical path. I seem to be listening to All Saints... and strangely unable to turn it off.
It started with Wilson Phillips and was all downhill from there
 
Good morning
 
Hello @ircmaxell
 
hey, how's it going?
2-months-no-see
(not that long in the grand scheme of things)
 
Going well, a bit busy with a new RFC which isn't on the wiki yet
and I'm wondering whether it could be introduced in PHP 7 or not, since there is no added "feature" for the PHP developer and no BC break at all
I know about the feature freeze starting March 16th, but not sure how strict it is if this is about providing additional hooks for extension development
 
@DaveRandom idk
 
2:38 PM
@SebastianBergmann Is he looking for a talk abstract, or... sorry I've completely lost track of where I was wrt IPC...
 
@PatrickAllaert what's the proposal?
 
2:54 PM
@Sara Abstracts would be the next step, I think. But let Tom tell you, I guess.
 
@Ocramius remember when I said I'd do all my stuff in stored proc?
I was kidding.... but my next project is fun: github.com/Ralt/groceries
> Fun thing: every SQL request will be done using stored procedures.
:D
 
at least you get to lie in the bed you made
 
can someone help me with this? pastie.org/10005045
 
@ircmaxell Splitting php_error_cb() into various parts
there are several "responsibilities": display, logging, bailing out, ...
 
posted on March 06, 2015 by kbironneau

/* by MindInMotionMKD */

 
3:04 PM
@PatrickAllaert interesting
 
APM, XDebug, catchy.io, NewRelic,... are a bit mutually exclusive because the only thing they can do is replacing zend_error_cb
and they all have to re-implement parts of it
it's not yet ready for comments/reviewing I think but if you want an early preview:
 
oh, yes, that's right. we talked about that at benelux
 
@ircmaxell indeed
do you think that could be done for 7.0, because even if I post it on the wiki and open vote for it soon, that would be too "late"
 
it's a non-trivial change, so I think it would warrant more than just passing discussion
you could theoretically do it, but it'd be pushing it really hard
 
Random thought bubble:
Override zend_std_read_property() to recognize requests for functions, and automatically create closures for them.

$f = $obj->someFunc;
$f("foo"); // Executes $obj::someFunc() with bound $this
BECAUSE JAVASCRIPT, SUCKAS
((And yes, I know that this will break if you have a property and a function named the same, and omg nevermind the case-sensitivity))
 
3:15 PM
public function __get($name) {
    if (method_exists($this, $name)) {
        return function(...$args) use ($name) {
            return $this->$name(...$args);
        };
    }
}
:-P
 
Yes, that.
 
tho if you did that, do you need to do the setter as well?
 
@ircmaxell use ($this, $name) :P
 
Though..... return $this->$name(...$args);
 
because if so, nam
@FlorianMargaine no need to use $this
 
3:16 PM
really?
 
@FlorianMargaine yes
 
oh, yeah.
 
Nah, don't need a setter
 
good call
 
$obj->someProp = function() {...}; already works
 
3:17 PM
hey people
 
@Sara yeah, but then $obj->someProp will go to the old method, not the closure
 
If there's already a method, yeah
 
anyone offering some help :)
 
Hence doing it in an extension where you can be like, "YOLO"
Though I like the simplicity of your PHP approach. :)
 
@Devrim you don't need to ask to ask, just go ahead and ask and if anyone can help they will
 
3:19 PM
@ircmaxell :)
 
can anyone spot why I'm getting undefined index on $_GET?
 
because the index isn't defined?
 
@ircmaxell Maybe I will propose a "No / Yes (7.0 - since there is 0 user impact) / Yes (7.1)" kind of choice for that RFC
 
Page1:
....
$categoryid = $catdata['categoryid'];

echo '<a href="/type.php?id='.$categoryid.'" title="', $categorytitle, '" >', $categorytitle, '<a/>';

Page2:
...
if(isset($_GET['categoryid'])) {
$id = $_GET['categoryid'];
}
can see the value on the URL tho
 
3:22 PM
the link's key is "id" but the one you try to pull from the url is categoryid???
 
<a href="/type.php?id='.$categoryid
should maybe be:
<a href="/type.php?categoryid='.$categoryid
 
rofl -_-
 
/me ready for all the critics about my "pedantic" suggestion :)
 
<a href="/type.php?categoryid='.(int)$categoryid.'"> #ftfy
 
3:32 PM
@Sara don't forget the other XSS vulnerabilities in there
 
where is that fucking monitor
they said "from 1 to 3"
but it's already almost 6 in the evening
fucking banana republic
 
easy there killer
 
the delivery service in LV is a joke
 
It's 2pm somewhere
 
3:59 PM
Yeh I think there's not a lot of people in that somewhere though, since it's somewhere in the middle of the Atlantic
 
@FlorianMargaine that can totally be automated
 
4:14 PM
Anybody knows if a phar in a phar has to be extracted first to open it? Or is it just wrong usage of me?
 
@Gordon so, developers aren't needed anymore ? (:
 
4:28 PM
@DaveRandom Strangely, I don't have any strong opinions against All Saints ... pretty ladies ;-)
Wait, you didn't go as far as Spice Girls did you?
 
@Ja͢ck thankfully my collection lacks any so I was saved
 
Good, good ...
 
@ircmaxell I use reflection/closure to avoid extra level in trace: github.com/lisachenko/go-prototype-php/blob/master/Prototype/… ))
 
ThW
@m6w6 a phar in a phar? That sounds wrong.
 
Russian doll situation?
 
4:38 PM
@ThW Usually I'd say, you're right, but I did not ask if it was the right thing to do ;)
 
yeah, you can do that
this way doesn't need reflection tho
 
closure for method can be cached locally and will be faster
I like some magic )
oops ) how to paste code here )
 
pastebin?
 
@DaveyShafik I am not going to push it for 7.0.
Purposefully.
Firstly, I'm not sure it's the correct approach.
Secondly, it's way too short of a timeline.
 
4:48 PM
@LeviMorrison Question… Do you think typedefs are necessary for sum_types?
 
@bwoebi Not necessary, no.
Possibly very helpful? Possibly :)
 
necessary? no. helpful?
:-)
 
That's what I wanted to hear :-)
May you extend the RFC then with that bit?
 
I just wonder… Typedefs will be namespaced, right? Then what about autoloading?
 
user895378
4:52 PM
morning
 
user895378
Hey @NikiC ... yesterday @m6w6 suggested the idea of mapping Generator::__invoke() to Generator::send(). I couldn't think of any drawbacks and it seems like a helpful syntactic sugar. Do you have any thoughts on this?
 
@bwoebi I would assume so, and no idea...
 
As long as we won't be able to differentiate between class and typedef
 
okay everyone, quick question: since a lot of you contribute to the php language, do you think it would be way too difficult to implement function overloading?
 
unless we add them to that symbol table...?
@ThomasRuiz I am strongly against function overloading
 
4:59 PM
@ircmaxell why so?
 
@ircmaxell not sure what you mean?
 
@bwoebi traits and interfaces share the symbol table with classes...
 
@ircmaxell yeah… the thrre usually also are in their own file
 
So the only real sane thing would be to add it to that symbol table, no?
@bwoebi by convention, not requirement
 
But we probably won't make an own file for each typedef.
Yes, by convention. But it integrates badly into current system
Because you won't be able to differentiate between typedef and the other three
 
5:02 PM
@ThomasRuiz because I believe it's an un-necessary complication from all sides. I look at implementations like Java, and see that you have 50 get methods, one per argument, where a single method would suffice. It leads to complication along the lines of duplication of functionality. It leads to complication in the compiler where there's an extra layer of decisions that have to happen. It leads to a complication in the VM to handle the extra pivot.
It leads to harder to maintain code because you have no idea which method is being called > 50% of the time (since types are runtime)
I've never seen a problem where function overloading made life significantly easier. I've seen a lot of problems where it made life significantly harder
 
user895378
 
user895378
ZOMG MY LIFE IS COMPLETE. @BenjaminGruenbaum thank you for this.
 
Any time
 
user895378
Do we not have windows build snapshots for 5.6? Nevermind. Found them here: windows.php.net/downloads/snaps/php-5.6
 
hey @ircmaxell, is phpinternalsbook an active project still?
 
5:09 PM
@ircmaxell if you do it correctly, you don't get duplication... But the other points sound fair
 
@mikedugan I can't speak to the other's, but I haven't had time for it...
 
posted on March 06, 2015 by kbironneau

/* by BTK */

 
@ThomasRuiz fair enough. I just see APIs like this: developer.android.com/reference/android/net/http/… and think why 8 different execute() functions, half of which return something different?
 
user895378
@mikedugan it hasn't been updated for php7 but you can combine the knowledge from there with the phpng upgrading document to get up and running with 7
 
@rdlowrey This is pretty good.
 
5:13 PM
@mikedugan if you want to contribute, let me know
 
user895378
@LeviMorrison Perhaps it's the longing for my lost youth but I'm 100% in on anything with 8-bit music.
 
@ircmaxell wilco. likely going to be a while before I understand the internal workings enough to be of any use to anything though :D
 
@ircmaxell I never used that so can't really tell. 8 functions sound way too much. I see your point, but there are times where it is useful: kopy.io/iYrVO
 
@ThomasRuiz I would argue that's a bad example, because you're mixing int indexes with associative ones.
but also, what's teh gain there instead of public function addModifier(callable $cb, string $name = null)?
 
@ircmaxell if it added it to a different variable, it would still be nice to be able to provide an API like that
 
user895378
5:23 PM
That's an extremely superfluous gain compared to the complexity of implementing function overloading ...
 
user895378
It's not a zero cost thing and the benefits people cite for overloading have never been convincing to me personally.
 
@ircmaxell well that was just a silly example, but you see my point
 
user895378
What's a good example, though?
 
^^
 
When I build APIs, I like to keep things simple for the users, and function overloading allows me that
 
5:26 PM
does it?
 
not at all
 
function overloading means a user has to know the different cases that a function can be used for and the permutations of arguments
definitely not simple
 
class UserMapper {
    public function get(int $id) {}
    public function get(string $username) {}
}

//vs

class UserMapper {
    public function getByUserId(int $id) {}
    public function getByUsername(string $username) {}
}
I would argue the second is far simpler for users than the first
 
user895378
More readable to be sure.
 
5:28 PM
Of course, it's best to take a function and not create a million methods
 
user895378
You can tell exactly what's happening from the name. With overloading you have to look at the actual body of the function to know what's going on.
 
Alright, I'll come back when I find a good example for you :)
 
take a look at some .net functions (strings etc) where there's literally a dozen plus overloads for a function
 
sounds good :-)
 
it's meant to make the functions flexible, but it can be confusing if the class isn't trivial and you have to page through all those different overloads
 
user895378
5:49 PM
Is there an RSS feed for bugs.php.net or some other means by which I can automate notifications? It's really asking a lot for me to manually browse to an HTML page to know if there are new bug reports.
 
user895378
In short, I really need a push system and not a pull system.
 
@rdlowrey There are RSS feeds in the head of each bug. Dunno about list pages.
Yup, looks like they're on some list pages as well.
 
user895378
Where is this? I'm not sure where to look
 
View source, look at the <head>?
 
user895378
@Charles jackpot! Thanks.
 
5:57 PM
Hello guys!
 
for fuck sake
the monitor did not arrive
and its already 8
 
where are the startup guys? anybody here?
 
user895378
I have a zpp question ...
 
user895378
Am I allowed to use ! with p to make a valid path string nullable?
 
user895378
Nevermind. I just tried it :)
 
user895378
6:13 PM
I need php-src input ...
 
user895378
This "bug" is extremely easy to fix by simply adding a ! in zpp for the final parameter. My question is: should this be done or should this be a "Won't Fix" situation?
 
@rdlowrey well, either fix docs (optional param without value) or code.
 
user895378
k
 
@rdlowrey I would just add the "!" and let nulls be nulls
 
user895378
@Sara thanks. That's what I was thinking too :)
 
7:09 PM
morning folks!
 
yo!
just wake up?
 
just got into work
 
Hey guys
 
got locked out of my apartment taking the trash out
 
smooth
 
7:12 PM
had to go to my ex's bar and stay up with her until she finished work, then go to a hotel. tough times
3 months and that door has never autolocked
then guess who's stood out in front of his locked door with no phone and a missing deli sandwich
 
likely story
 
hahaha
 
7:25 PM
I had to resist the urge to make a bad joke in reply to the anonymous classes email just now
 
NHAIIIIIII
hey there
 
@mikedugan im all ears for bad jokes today
entertain me
im not gonna get any work done
 
something something "Phil might even get back in his apartment before the vote starts"
 
lol
 
7:30 PM
ahahaha
meh, hotels are more fun
 
especially with the ex hahahahaha
 
what is going on here?
 
work
 
not here
 
?
 
7:40 PM
hey all
 
ok, my question is, i need to build a simple PHP app that can login to my Twitter account, post tweets to it, search people's timelines and mention people. What library to use here?
 
@Charles thanks
 
23 messages moved to bin
 
?
alrighty then
 
7:44 PM
eh.. that bs-generator link was nice
back to work
 
what is bs-generator?
Is there anybody here?
 
Current status: http://t.co/RRYB0HBDRD
@LoaiNagati just use Guzzle and its oauth1 plugin
ALL PHP twitter libraries are utter shit
 

« first day (1602 days earlier)      last day (3339 days later) »