« first day (2180 days earlier)      last day (2782 days later) » 

12:03 PM
@PeeHaa Re Amp roadmap: dunno… it will be ready when it's ready :-D
and that depends on how much time we have in next time for amp
 
@bwoebi which is kinda annoying for people building services around the async stuff
 
@PeeHaa Why? v1 will still work
Also I won't release amp v2 before event-loop and awaitable have a v1
 
It does, but I have no idea when I have to rewrite
 
@PeeHaa I guess it'll be not before December
 
Anonymous
@PeeHaa hoiii
 
12:12 PM
Hoi jay o/
Also related to your last question jay github.com/async-interop/event-loop/issues/105
The tl;dr is that it will be possible to make stuff cross library but not sure when
Cc @WyriHaximus
 
@PeeHaa Also, this only matters from the moment on more than one lib is supporting it
 
Yes hence my ticket
People have no way of knowing this
 
Anonymous
@PeeHaa Aye - So WS wise, it wouldn't be feasible to implement it in a diff framework atm?
 
@PeeHaa but anyway, you always can use dev-master for amp
 
Well you could use one or another but it will be hard to use other libraries @JayIsTooCommon
 
Anonymous
But i'll keep hitting my head on the keyboard until I get something working :P
 
Either way it's probably easiest to start out with ampv1
Not in the least because you have a lot of people around you who canhelp
 
Anonymous
I have to do this in Cake, that is my problem right now
 
Yeah that is a problem because cake
 
Anonymous
it's so bad
 
12:25 PM
@Jay What are you even trying to do?
 
Anonymous
@bwoebi On POST, other connected clients have the POST pushed to them (one-way). Nothing complicated, i'm just a ws newb.
 
You mean you're forwarding POST calls to a number of endpoints?
 
Anonymous
Yeah, so client makes a POST request, that request is handled and then the POST data is pushed to other clients/endpoints
 
so, a simple file_get_contents() on web SAPI?
 
They are webclients I assume @bwoebi
 
12:36 PM
@PeeHaa ?!
 
Ugh btw using amp master is not going to work for what I am currentlt working on
 
Anonymous
@bwoebi So use case, you have x number of users viewing an entity. When one of those users adds a note to that entity (POST not through ws), all other users have that note pushed to them, via ws.
 
@PeeHaa hmh?
 
I don't think composer handles multiple version of something in the same project
Think jeeves and its twitter client
 
ah no
 
12:37 PM
Poop
 
@JayIsTooCommon so, just replace cake by aerys :-P
 
Anonymous
Yep, if only :P
 
If you are really stuck with cake you could always go the message queue route I guess for the WS part
And slowly migrate away from cake :D
 
Anonymous
Well i kinda had it working with Ratchet, I just found it really shitty, docs wise at least. Then deleted it all and thought amp but hey, i'll give ratchet another go, and yes. Cake can burn :3
 
Brb going to buy some food and beers
 
12:45 PM
@PeeHaa Forever known as the tequila beast.
 
I could live with that nickname :p
 
Anonymous
tequila princess
 
Even better
 
1:04 PM
Signed up to hacktoberfest \o/
 
evenin'
 
\o
 
I'm open for anime suggestions !
 
Go classic, go Trigun
 
I was hoping for something more new-ish, tho I shall try that one!
8.3/10 · MyAnimeList.net
 
1:17 PM
Recently at a conference, friend had a @StackOverflow t-shirt ... would be willing to part with limbs (mine, or his) to get one. Pls advise.
 
not bad...
 
chorus of "yeah, give him a t-shirt" requested ...
@Jimbo send limbs ...
 
Cowboy bebop, yakitate japan. There's a reason 1995-2005 is looked at as the golden age of that kind of stuff
 
@Sean ^^
 
@JoeWatkins Can relate, also want a t-shirt. @Jimbo just looks too dapper in it.
That and the suit jacket.
 
1:22 PM
@JoeWatkins well ... you need to get 89k more fake internet points
 
I don't think I could pull off suit ... unless going to court to plead for my freedom ...
@tereško Jimbo used just whining and persistence to get his ...
 
what is the size of char* h = 0x00? assuming I'd want to push it into zend_string_init?
I think it's 4 but I am not sure
 
I don't understand the question ...
is system dependant, sizeof(void*) likely to be 8
but I don't get the next part of the question
you didn't allocate any memory there, pushing or storing anything is going to go wrong
 
ok, let me rephrase. Assuming I'd wanted to create zend_string with a hex value of 0x00. What would I pass as the length?
 
do you mean null, or the literal string 0x00 ?
zend_string_init("0x00", ?) or zend_string_init(0x00, ?) ?
 
1:28 PM
0x00
0 not null
 
sizeof("0x00") - 1, which indeed is 4 ...
ZEND_STRL is a thing ...
zend_string_init(ZEND_STRL("0x00"), persistence)
like that ...
 
I am confused now. would that create a zend_string for "0x00" or 0x00?
 
Heya guys, I wonder if you could take a look at my project and tell me what you think: github.com/atk4/data. Appreciated!! (have been working on it for some time)
4
 
@Gordon so, zend_string_init("0", 1, 0)???
 
the zend_string val (char[]) would be

val[0] = '0'
val[1] = 'x'
val[2] = '0'
val[3] = '0'

the value must be chars
maybe you have what you are trying to do as php code ?
maybe you're trying to initialize an empty string, is that it ?
 
1:37 PM
@JoeWatkins no, i am trying to init a zend string with a hex id of 0x00
 
a string with one byte, where the only byte is 0x0 ?
 
I think so
 
that's an empty string
 
then that's not what I want
I'll do some more research. maybe I just cant express it properly or have a brain fart
 
I too could be failing to understand
 
1:43 PM
@Gordon what is this "hex id" what you are talking about? The location of the char pointer or the value that the char pointer points to?
 
@romaninsh Blowing my mind a little here, good stuff.
 
@Sean, wow thanks.
thanks for the star :D
 
@PietervandenHam I think it's the pointer
 
char *s = 0x00 means that s points to address 0x00, which is probably not what you want.
 
there are stray ]'s in the readme, underneath some of the first images ...
 
1:46 PM
@PietervandenHam correct, I just want a literal 0 but expressed in hex
 
@Gordon So you want char *s = "0x00"; ?
 
I am totally confused right now and not sure what I want or need
C is weird
 
Anonymous
@PeeHaa @WyriHaximus i'll go with your cakefest slides for now :3
 
Anonymous
sorry for ping Pieter
 
@Gordon how would you do it in PHP?
 
1:52 PM
@PietervandenHam hmm, sprintf("%x", 0) or dechex(0)
or maybe just $x = 0x00 though that wouldnt give me a string
 
$x = "0x00" would.
 
the thing is, I need to be able to increment it
I can apparently do that with a char x = 0x00 but not sure how to go about that with a zend_string
does that make any sense?
probably not -.-
I should just go home for today
 
Why does it need to be a string?
Strings cannot logically be incremented
 
@Gordon you definitely have a brainfart
 
Wow tools.ietf.org/html/rfc2410 - my favourite part is section 2.4
 
2:02 PM
I use constants for the output translation, is it good?
 
@Leigh awesome
 
I'm also glad they included test vectors, never would have been able to implement it without them
although the test vectors do hint at the humour of the piece :p
 
@DaveRandom for ($i = 1; isset($body['errors'][$i]); $i++) { wat?
Surely we can just use a foreach there?
 
@PietervandenHam goo.gl/kA2G0f the only thing I need different is that I want it to be a zend_string instead of a char /cc @bwoebi
 
@PeeHaa well, he probably wants to skip first entry?
@Gordon yeah?
 
2:10 PM
So continue it instead of that :P
 
@Gordon you can operate on ZSTR_VAL()?
@PeeHaa but the for loop looks cleaner
 
No it looks horrible
 
@bwoebi I dont know how to turn it into a zend_string in the first place
 
@Gordon what exactly do you want to turn into a zend_string??!
 
@bwoebi the 0x00 char
 
2:12 PM
Also there is no reason to skip the first afaics
 
@Gordon zend_string_init("\0", 1, 0) ??
 
@bwoebi thanks
 
oooooh wait
wat
 
@bwoebi same as empty_string, right ?
 
@JoeWatkins no, empty_string is of length 0
 
2:21 PM
CG(empty_string) is a thing in php7 @Gordon
ah, so it does
 
it's CG(one_char_string)[0] maybe @JoeWatkins
 
yeah, that's probably it
can't look because zts, don't think it's used
 
2:38 PM
Evening
 
o/
 
\o
 
o/
 
o}
 
2:51 PM
:*)
 
Anonymous
!!wotd
 
potboiler: a mediocre work of literature or art produced merely for financial gain.
 
@PeeHaa skipping the first one
 
Anonymous
@Fabor Kidnapped yet?
 
TIL - and _ are interchangeable in SASS variable / mixin names.
 
Wes
3:06 PM
@Jeeves i know
\o phpeeps
 
o/
 
Anonymous
moin wes
 
@DaveRandom Is there ever more than 1?
@Wes yo
 
@PeeHaa I have no idea but the data is structured so that there can be, so the code should probably be able to deal with it
otherwise presumably they wouldn't bother having an array in the first place
 
3:11 PM
Yeah because people are known for writing sane apis
:P
 
foreach with a guard statement would still be more readable imo
 
I thought so too, but I shifted instead
Because that was what was actaully happening
@DaveRandom would you be against returns proper objects instead of array responses?
 
@PeeHaa not at all, I only did it the way it is as a temp way to a) check the response code and throw on error and b) not expose the HTTP request to the caller (breaks the abstraction)
I don't regard the way it is as a finalized API
 
yay temp fixes that fixes temporary things \o/
 
Possibly what is required is some well defined classes, dunno if that's worth the effort though
 
3:25 PM
We are good like that
 
3:40 PM
@DaveRandom I thought you'd just slam factories in as a catch-all solution? :-P
 
@Trowski /me puts +1
 
@JoeWatkins it took 3 years of desperation, better lube up! ;-) Also we MUST make a similar room 11 tshirt with quotes on
 
@bwoebi If no one objects we can merge it in maybe a week or so and tag another version. I'd like to start moving forward with amp v2 again, maybe tag some pre-releases.
I'd like to try building something with it.
 
@PietervandenHam Merely illogically incremented - 3v4l.org/MSppU
 
@Trowski That would surely help me
 
4:12 PM
@Jimbo Like PHP is shit.
We should totally wear those to the next conference.
 
Although I assume converting @Jeeves is going to be a proper pain
 
"Flash is out of date" <-- every time I need to watch a video using flash.
@PeeHaa Actually it shouldn't be too bad.
 
Well not hard. Just a decent amount of places to change it
 
Right. Mostly find-and-replace stuff though.
The behavior is largely unchanged from amp v1.
 
I depend on a decent amount of amp packages though
 
4:19 PM
Most of them have amp_v2 branches now. I think only a couple do not.
 
Nice
 
@NikiC / @JoeWatkins who can I poke to get a new PECL repo created? (I want to move mcrypt out of master)
 
@Leigh you need a pecl account, and then should be able to make one through pecl.php.net/package-new.php
maybe.
 
do you mean pecl package, or git repo for pecl ext ?
 
Both I suppose, since it's going from core -> pecl
 
4:28 PM
I think better to create the package and host on your github to start with, then after the first couple of releases when things are settled, ask for hosting for the repo on php systems ...
it's not normal for extensions to go straight onto php systems, even old core ones ...
you should also announce your intention to create the pecl package on internals
doubt anyone will raise any serious objections ... not including stas ...
/s/serious/loud/
I like to think, every 24 hours, as night turns to day, there stands Stas, objecting to it ...
7
 
@JoeWatkins "But the RFC said..." :) - github.com/php/php-src/pull/2154 - someone suggesting it goes to PECL already. If the correct method is for me to host it, I'm fine with that.
 
yeah, but move to pecl doesn't mean create hosting on git.php.net for it, it just means do what dan said and create the package ...
but before you do that (create any pecl package), you are supposed to announce your intention
1) email internals saying you're going to create the pecl package for mcrypt if nobody objects 2) create package on pecl.php.net 3) profit ...
(link to appropriate prs/rfcs in internals comms, to reduce noise)
 
4:47 PM
If I already have a php.net account, do I still need a separate pecl account?
 
@Trowski Yeah :-) … I'm looking forward to cram it soon in the list of things I'm going to do…
 
how can I put a superglobal, like $_SERVER into a class variable?
 
Don't
 
And how can I resolve that?
 
What problem are you trying to solve? There probably are better ways to go about it.
 
4:52 PM
I put this into the form action
public $base_url = $_SEVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
(generated by the class)
 
Don't ever do that no please
 
xD, what should I do?
 
So, why are you doing this?
Oh, your form's generated by the class.
 
For not passing other GET values in the url, except the only ones that I need.
An example: a user logs by sending the get parameter 'logout'
After have been logged out there is the login form but in the url there's still the /?logout ,
So if the user logs in, the form will be sent with also that and will be logged out automatically
I don't know how to solve this
@littlepootis not really, it displays the forms
 
Full disclosure, I do not intend to maintain mcrypt after it has been moved to PECL, I welcome ABI breaks to it as soon as possible :)
 
is it possible to register a route for both POST && GET in a route, in a shorthand way?
 
@littlepootis you mean for the form's action?
 
^ in aerys that is
 
@Archer yes.
 
@bwoebi how?
 
5:07 PM
@Archer ->route(["GET", "POST"], "/foobar", $handler)
 
ah, got it! thanks!
 
oh wait
no, that doesn't work
 
Wes
@PeeHaa needing dutch translation. google failed :B twitter.com/WesNetmo/status/783340131059138561 and look at that verstappen kid doing magic
 
...
 
@Archer nah, currently there's no way …^^ just define it twice, once for get, once for post
 
5:09 PM
yep did that ^^
 
^^
 
Translation of what?
 
$this->router->route("POST", $route, [$this, "controllerHandler"]);
$this->router->route("GET", $route, [$this, "controllerHandler"]);
 
oooh the reply
 
Wes
ya
 
5:10 PM
Great that you can react like that. It's called: having something extra
having something extra == being extraordinary
 
Wes
thanks :P that is though actually incredible, could be luck but could be not. that was 99% a crash but it didn't happen
 
@PeeHee u watch F1?
 
Wes
gained some respect for the kid, so far i was "meh, we'll see"
 
@Archer yeah
@Wes Only now? He's been doing great almost the entire time
 
@PeeHaa noice, I guess...
 
Wes
5:16 PM
do you usually watch F1? :B i'm hardly impressed by a driver as in F1 mostly counts the car
 
@Archer you know that you can just chain these?
$this->router
    ->post($route, [$this, "controllerHandler"])
    ->get($route, [$this, "controllerHandler"])
;
 
Wes
for instance i think that vettel sucks, despite being a ferrari driver
 
looks much more readable to me, especially if there are more routes @Archer
@Wes Every time I read "Vettel", I think of the German word Vettel
 
Wes
what does vettel mean in german?
lol, i didn't know that
 
5:19 PM
@Wes derogative for old and/or frowsy woman
@JoeWatkins ping
 
@bwoebi hmm... true
 
Having the same action for different verbs feels pretty odd to me @Archer
 
5:35 PM
@PeeHaa I agree
@PeeHaa @Archer especially as it's best practice to reply with a redirect upon successful form submission — you always can invoke the original get handler (i.e. just call $this->controllerHandler()) in case it's not successful with appropriate errors after that.
 
I am agree
 
@PeeHaa actually there would be dynamic numbers of controllers for the application and I was planning to detect the request method at the time of incoming request, and load the controller if the annotation of the action of the controller matches the current request method, then call that action... but I figured that I can't determine the request method until the route is already captured
 
How are you going to map url -> controller::action in that case?
Oh wait annotations
ugh ugly
That means one have to look up the annotations to know what routes are available
 
@Archer you'll hate annotations once you can't find the right handler anymore…
 
Basically you are doing thing the wrong way around imo
 
5:46 PM
I see...
I guess I need to rethink all of this. :/
 
@bwoebi pong
 
@JoeWatkins do you have any changes to phpdbg docs pending?
 
@Leigh is same
@bwoebi nope, go ahead
 
I'm going to have dinner now; then I'm going to work a bit on it
 
cool
 
5:47 PM
Just to ensure we're not working on the same file at the same time
 
yeah, I'll do some mo in the morning now ... will check out your changes first ;)
 
6:07 PM
hello
 
hi! my PHP app must have implemented SOAP server and i'm just banging with my head to wall with stock SoapServer class. i already wanted to switch to Zend SOAP implementation, but seems I will encounter the same problem as in case of stock implementation. basically the problem is that i want to pass only one function to SoapServer and this function is in the same class as i'm creating SoapServer object... is there any way to include function in same class?
 
6:24 PM
0
Q: How to get the value of regular expression

beginnerI am learing routing the urls If any user put a urlin browser like this blogs/variable(anything) So i can route this like '#^blogs/([a-zA-Z]+)$#' Is their any way to get the value of regular expression group(after slash), after when the user type different url , I heard about we can name th...

can someone help?
 
@JoeWatkins okay, great
 
wuzzup
 
6:40 PM
@beginner Have you read the docs?
Pretty sure it's explained
 
@PeeHaa i am reading , it can be done by preg_match()
@PeeHaa Do you have other option?
 
Wat why?
 
@PeeHaa preg_match seems littlebit harder to me , but ok , i think this is the best method
 
harder than wat?
 
@PeeHaa I was thinking to use explode('/',$url) and then use param[]
 
6:46 PM
Ugh twas a trap
 
Are plugin messageHandlers fired on every new message?
 
@beginner Peehaa is currently AFK
 
what?
 
@Sean Only if it matches the !!command
 
Hm. Is there an event handler for a normal message?
 
6:49 PM
Define "normal"? :)
As in just any random message?
As in:
 
Just any message. Something a plugin can hook onto to watch for new messages
Bonus points if you can add some sort of filtering based on regex or something
 
Yes
> getMessageHandler
> Are plugin messageHandlers fired on every new message?
 
@Sean Actually not sure
:P
Was just looking at dadgreet
Which is checking every message
Apparently we let plugins find out themselves whether they should be run
I thought we changed that
 
lol
 
6:54 PM
@PeeHaa Should i use explode or preg_match()?
 
@beginner Peehaa is currently AFK
 
That question has some useful help in the comments btw.
 
@beginner I tried to answer your4 question before, but suddenly the requirements changed so ¯_(ツ)_/¯
I am not going to run towards every moving target here
What are you working on btw @Sean?
 
Anonymous
noice
 
6:57 PM
aight
 
/me is dealing with transit visas
evenings
 
Anonymous
heyo
 
@DaveRandom I'll check the dev mode a bit later today if still issue
 
/evening
 
o/
 
6:59 PM
@Ekin I thought that was just a matter of throwing money at them and getting a stamp
Also hey all
 
Anonymous
@Jimbo how's Sofia?
 

« first day (2180 days earlier)      last day (2782 days later) »