« first day (2218 days earlier)      last day (2737 days later) » 

1:00 PM
better now ?
 
Wes
Nov 6 at 18:42, by Wes
however if php wanted to support maps as being ordered maps, which is what they are, "..." could work like so http://pastebin.com/3YR7hfgM
 
@NikiC Basically, yes.
 
Wes
this is my preference i think, but i don't mind if it worked like array_push. while i think i dislike array_merge
 
@Wes 3v4l.org/8J3RO - it should do that, because that is effectively what you wrote (IMO)
 
1:13 PM
morning
 
@Wes I get where you are coming from, but what you are actually implying there is a ksort() is part of the operation. That is super expensive, relatively, and IMO not intuitive, because it is introducing yet another behaviour. You are also talking about introducing a lot of complexity to cover a rarely used edge case (cases where the order of elements is significant in a mixed key type array are almost non existent)
 
Wes
@DaveRandom no, it's O(1) for remove (if key already exists - otherwise skip) + O(1) for append
 
!!dad learn snoopdog / Why does Snoop Dogg carry an umbrella? / Fo' drizzle.
 
@Gordon Ha ha ha! Brilliant! I'll save that one about snoopdog for later!
 
!!dad learn cookie / Why did the cookie go to the hospital? / Because he felt crummy.
 
1:15 PM
@Gordon Ha ha ha! Brilliant! I'll save that one about cookie for later!
 
!!dad learn snowman / What did one snowman say to the other snowman? / Smells like carrots.
 
@Gordon Ha ha ha! Brilliant! I'll save that one about snowman for later!
 
!!dad
 
I used to hate facial hair, but then it grew on me
 
Wes
if(keyExists(hash)){
map->remove(hash); // it's a doubly linked hash map, so it's fast... right?
}
map->append(hash, val);
 
1:18 PM
foreach ($splattedArray as $key => $value) {
    if (is_int($key)) {
        $targetArray[] = $value;
    } else {
        $targetArray[$key] = $value;
    }
}
I think that is what people would intuitively expect it to do
or at least that's what I expect
 
Wes
okay, but that's not an argument :P
 
Need to put it out to a poll I guess
 
Wes
do you want me to prepare it?
not the poll itself but a text on what each option does
 
@Wes it is because that's the exact behaviour you get when ['a'=>0,1,2,3,...['a'=>4]] === ['a'=>0,1,2,3,'a'=>4] (IMO)
@Wes that would be awesome :-)
Need someone with a load of Twitter followers who actually listen to them to put it out there
/cc @Ocramius :-P
 
Wes
he's the biggest whore, yeah :D
 
1:23 PM
@DaveRandom Had any success with DNS refactoring?
 
nope, not had a chance this week, what with illness + work + life
hopefully going to have a FOSS day on Sun though
And I don't anticipate it taking that long
 
posted on November 11, 2016 by kelunik

Initial Release.

 
@DaveRandom LOL... maintaining the wiki... *chuckles to himself*
 
@salathe ...yeh sorry, stupid question
 
1:39 PM
@DaveRandom Better just ask who can grant access.
 
@DaveRandom joking aside, it depends what you're wanting I guess. If it's something on the server, Hannes is the only person.
 
What happens if Hannes is somewhere in the future suddenly gone?
 
you would have us waste time worrying about the future ?? a thing that doesn't even exist yet ??
 
@kelunik We contact the server provider and ask them to stick someone else's public key on there
Also, if Hannes disappeared off of the face of the earth... the wiki box wouldn't be top on the list of PHP things to worry about. :P
@DaveRandom what are you looking to do?
 
@salathe Sure, I'm aware. But a single person disappearing shouldn't be a problem for a project as large as PHP. There should always be multiple people with access.
 
1:45 PM
so you're not left hanging for an answer ...
we want to somehow serve up a static cache of rfc pages
 
@kelunik it's not a problem
 
because tools (like Jeeves, and other rfc monitoring projects) are putting a bunch of pressure on the server, and this makes the tools and server crap ... so we serve some json or something, updating it when there is changes ... that was the idea ...
then we looked at docuwiki and it all went quite quiet ...
 
@JoeWatkins ahh okay
 
@JoeWatkins JSON? Squid in front should be fine?
 
1:47 PM
^ that
 
I'd just stick a caching proxy in front, but if you want to add a plugin or something then sure that would be cool.
 
It's coming...
Still coming...
Trust me it is...
 
is he watching porn?
 
Eventually it will come ...
 
Tension
drumm roll
 
1:48 PM
it's not coming ...
 
3
 
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Fri, 11 Nov 2016 13:47:24 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.5.9-1ubuntu4.20
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: DW7fa065a06cb74b536c124cfbe56ac6d3=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; httponly
X-UA-Compatible: IE=edge,chrome=1
 
There we go :P
 
Where is Jeeves located? In the middle of the ocean, under a rock?
 
2 hours ago, by DaveRandom
What could be a decent fix here is generate some static JSON whenever the pages are changed
 
1:49 PM
we got karma for the docuwiki repo, it's gonna be easier to do it the hard way
 
(for RFC votes etc)
 
@salathe Sealand :P
 
evenin room
 
'nin
 
@Jeeves @PeeHaa @JoeWatkins When you're at it, update PHP to a supported version.
 
1:50 PM
heya
 
@JoeWatkins Writing PHP is more fun than the other approach. :)
 
also true
 
@kelunik Bitch please. That's one of the most up-2-date boxes I have seen coming from php :P
 
@salathe my suspicion is that wiki is sqlite powered and that is what's to blame. Shared-nothing locks combined with things like php-rfc-watch.beberlei.de and web crawlers and whatnot, it's a recipe for a huge stack of things waiting for data.
But a lot of tools would actually benefit from something like JSON data, which could be generated as a static file every time there is a write, which is far less frequent.
Actually the HTML could be generated like that as well
 
@PeeHaa Which is pretty sad. We encourage people to upgrade but don't even have our own infra up2date.
 
1:53 PM
It's notable that it's actual RFC pages which tend to be very slow, e.g. the rfc index is generally pretty quick
 
is there remarkable difference between page with and without voting doodle ?
 
@kelunik It is @kelunik. It is
 
@JoeWatkins actually right now even the wiki index just took about 10 secs to load
 
@kelunik fyi the mirror info pages are still min requiring 5.3
We should probably look into bumping that too
 
I know.
 
1:54 PM
Certainly those are all pages which change rarely relative to how often they are served
 
@PeeHaa see, I told you to disable expose_php and the server version ;)
 
@DaveRandom All pages change rather rarely in relative terms.
 
@Gordon :D
 
@Gordon Just send a fake header, make it look good. :P
 
@kelunik on php.net, sure
 
1:56 PM
@kelunik lol
 
make it send php6
 
@DaveRandom Same on wiki.php.net.
 
WHat about P�wered-By: PHP6
7
 
@kelunik (I meant *.php.net, possibly excluding git. and svn.)
@PeeHaa X-Powered-By: Unicorn turds and Rebecca Black
 
we should collect all these pointless hoax things into ext/shenanigans
 
WHat about P�wered-By: PHP6
 
wow that actually worked
 
Anonymous
@DaveRandom Do you have some sort of script running to always keep you active in rooms?
 
@DaveRandom What did you expected to fail?
 
2:01 PM
@JayIsTooCommon Nope
I have needed that before
 
@PeeHaa I wondered if Twitter might do something odd with the replacement char
 
!!repeat !!reminder 12 hours
 
Anonymous
@DaveRandom You never seem to leave rooms, my Jive playground is never frozen. It's very helpful :-)
 
God I wish we could pipe commands
 
@JayIsTooCommon Rooms get frozen after 14 days, I guess it's just never gone that far
A "bumper" plugin would be trivial though
 
Anonymous
2:02 PM
@DaveRandom but it always says you're in the room
 
Oh right yeh I just haven't left
 
Anonymous
stoopid.
 
Yes, where activity is "posts" :-P
 
@JayIsTooCommon No shit
 
Anonymous
2:04 PM
Back off.
 
/me backs off
 
Is that like that movie Face Off only with spines?
 
Anonymous
@PeeHaa yeah that's right /lowers fists
 
@PeeHaa is @JayIsTooCommon's bitch.
 
@LeviMorrison @PeeHaa github.com/morrisonlevi/web-php is directly the webroot, how do we use Composer there?
 
2:06 PM
@Wes I am not falling for that. Your sfw just means "safe for Wes", right?
 
Anonymous
you fucker
 
Anonymous
that is not sfw..
 
Wes
:B
 
Anonymous
:P
 
Either that or restructure the repo, which tbh is a better approach, since introducing composer would require an infrastructure change on every mirror anyway @kelunik
 
2:07 PM
@Wes waddefuk?
 
Wes
right in the jewels
 
Hi....guys...
 
Wes
you don't know simone giertz?
 
@DaveRandom Restructuring would require updating all mirrors probably.
@DaveRandom No, not if you push /vendor. /hides
 
@kelunik you'd have to do that anyway, unless you commit vendor, which is horrid
 
2:08 PM
If i echo some 2MB data, will it have any problem ....
as sometime the echoed data is incomplete....
 
@DaveRandom I had a dream many moons ago (that I may have stolen from Hannes), that the php.net website could be totally static... no need for PHP on the mirrors.
 
@Wes I don't know in what echo chamber you live … but who should know him?
 
@bwoebi tested.com + general internet robot videos
 
@salathe Well, if we use JS for user notes from another box, yes.
 
I guarantee you will have seen her work in some way or another, even if you don't know it's her
@salathe did anything happen other than dreaming?
 
2:12 PM
@DaveRandom Yeah... I woke up. :)
 
Also, needs a lot of URL rewrites to keep URLs compatible.
 
@salathe fuck the establishment, I'm sick of this. I'm voting for TrumPHP
 
@DaveRandom Are you going to kickstarter a TrumPHPant?
 
@salathe We already talked that yesterday with @Ocramius in the UG meeting. :-)
 
heh
 
2:15 PM
@salathe /steals idea and claims it as own
 
And this is how Americans respond to us making jokes about *them* https://t.co/bBzhXEp4TQ
!!rfcs
 
:P
Now you're just taunting him
 
srs, I'm not
 
Poor guy @Jeeves
 
c'mon @Jeeves, we believe in you ...
 
@Jeeves <3
 
@Linus I love you too :-)
 
Click it
 
When I want to press submit button I want to display a value
My code is
But my code is not working
Why ?
 
2:29 PM
You tell us
Are at least explain what doesn't work
 
it may be broken somehow
 
Also:
!!canon errors
 
373
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
Please help me
 
Because I'm pretty sure that will be helpful to you
Read the linked question and help yourself
 
2:30 PM
oh not another one ...
 
@SagorAhmed $_POST element names are based on the name="" attribute of a form element, not id=""
 
@DaveRandom That too
 
<input id="foo" value="foo"> <-- this will not produce a value in the data submitted to the server, but this will --> <input name="foo" value="foo">
 
something about feeding trolls, or dragons ... or bad luck ... or something ...
 
There are several things wrong
Debug your code
 
2:32 PM
Does anyone have a working function for resolving relative urls with referrer to an new absolute url ?
 
@DaveRandom
 
@Danack Artax has a Uri class in it which does
 
....so I have one.
 
hehe
 
2:34 PM
@SagorAhmed $_post !== $_POST. Seriously, turn on error reporting (see question linked above), read the error messages, and debug your code based on them.
 
user image
3
debugging ...
 
lol
 
3:00 PM
how do I concatenate two zend_strings?
 
> 2/3+1.
 
@Gordon Manually
Or use smart_str if you concatenate a lot
 
@NikiC thanks. I am using strcat now, then zend_string_init the result
 
3:19 PM
@NikiC I'm not sure whether the compiler will be able to compile the extra zval assigns away
I currently have this:
#define _(zv, ...) (zv)
#define ZEND_TRY_OVERWRITE_REF(func, ...) \
        do { \
                zval *_zv = _(__VA_ARGS__); \
                void *_type; \
                if (EXPECTED(Z_ISREF_P(_zv)) && UNEXPECTED((_ref_type = Z_REFTYPE_P(_zv)) != NULL)) { \
                        zval _tmp; \
                        _zv = Z_REFVAL_P(_zv); \
                        ZVAL_COPY_VALUE(&_tmp, _zv); \
                        func(__VA_ARGS__); \
                        if (zend_verify_ref_type_assignable_zval(_ref_type, _zv, ZEND_ARG_USES_STRICT_TYPES())) { \
@NikiC If I make an extra function there, I do not think this can be easily compiled away…
 
@bwoebi Do I have to understand that?
 
@NikiC It will be called with ZEND_TRY_OVERWRITE_REF(ZVAL_LONG, my_zv, my_long)
the __VA_ARGS__ magic is just there to avoid relying on , ##__VA_ARGS__ GCC extension
 
eh
just drop the magic already
 
What magic?
 
everything
 
3:24 PM
!?
 
Don't try to be clever
 
I'm not trying to?
 
If you're writing _(__VA_ARGS__) you definitely are
 
#define ZEND_TRY_OVERWRITE_REF(func, zv, ...) \
        do { \
                zval *_zv = (zv); \
                void *_type; \
                if (EXPECTED(Z_ISREF_P(_zv)) && UNEXPECTED((_ref_type = Z_REFTYPE_P(_zv)) != NULL)) { \
                        zval _tmp; \
                        _zv = Z_REFVAL_P(_zv); \
                        ZVAL_COPY_VALUE(&_tmp, _zv); \
                        func(_zv, ##__VA_ARGS__); \
                        if (zend_verify_ref_type_assignable_zval(_ref_type, _zv, ZEND_ARG_USES_STRICT_TYPES())) { \
^ @NikiC is the same … just not standards compatible
 
@DaveRandom The mirrors don't need composer; they rsync everything.
@kelunik Yes, unfortunately.
 
3:28 PM
@NikiC do you have a better way without creating an intermediate zval temporary?
 
@bwoebi okay, now at least I understand what this does...
@bwoebi why do you want to avoid it?
 
unnecessary moving around of things after compile?
 
it's not perf critical code
 
@bwoebi how's your lexer/parser talk preparation going?
j/k
 
lol
@NikiC maybe. mhm
 
3:30 PM
you were at some ug yesterday?
something about listening to @Ocramius
 
yes (in Karlsruhe)
 
You're going to give a lexer/parser talk next time?
 
He should, IMO :D
 
@bwoebi I mean, it involves references ^^ References are always a bit slower :)
 
hah
 
3:32 PM
to clarify, about the php lexer/parser right?
not a talk about correct generation of compressed lalr tables?
 
@NikiC @Ocramius said so, not I…
@NikiC I think if I'd start with that nearly everyone in the audience is really lost :-D
 
@bwoebi ok, do it :P
 
heh
 
finish this first, then do it ...
 
@NikiC precisely
 
3:36 PM
@JoeWatkins right, priorities :D
 
@bwoebi that's exactly why you start with user groups :) It's also a great learning experience
 
uhuh
 
@bwoebi You can also do a talk about binary addition using regex :P
That sort of counts as a lexer/parser talk, right?
 
@NikiC I think that's something which people will understand more easily than compressed lalr table generation
haha
@NikiC but regardless of the macro body, is ZEND_TRY_OVERWRITE_REF(ZVAL_LONG, my_zv, my_long) a good macro signature?
 
Would still love hearing about LALR anyway
heck, would drive down to Karlsruhe for that, or sponsor you to speak at PHPUGFFM
 
3:40 PM
@Ocramius FFM = Frankfurt am Main ?
 
@bwoebi imho no
 
In my book, FFM is Frankfurt am Main. As is FRA.
 
@NikiC so, you think it should be:
 
What are you opinions on custom exceptions vs exception codes? For example in my domain layer I enroll a student in a course, 2 exceptions can be thrown. My application layer needs to catch both of these and throw application layer exceptions so the client code doesn't know of the domain layer exceptions. I want to declare the application layer can throw one exception but use two different codes for the exceptions so they can be differentiated in the client code
 
just something shorter
 
3:42 PM
zval zv;
ZVAL_LONG(&zv, my_long);
ZEND_TRY_ASSIGN(my_zv, &zv);
@NikiC ^
 
@bwoebi yeah
 
@bwoebi yesh
 
@bwoebi With ZEND_TRY_ASSIGN_LONG variants, if you like
 
fine then
 
@bwoebi I'm not sure. Depends on how well you can show how the simple little pieces go together into the super complex big piece.
 
3:50 PM
That will probably result in: ok I get that. Ok I get that too. That makes sense. WTF OMFG WHAT IS GOING ON?!?!??!
 
@PeeHaa Okay, so 0 and 1 are the binary digits. And [01]+ matches any binary number. You follow until now? Okay, good. So now we simply have to combine these things, we just write (?&add) 0*+ (?:\d*(?:0|1(?<r1>)))? (?(ro)|(?=(?<cr>1)?))\k<r> (?&eq) \d*(?&digitadd)\k<f>\b and ...
 
:P
 
ouch
 
@NikiC ahahahahahahah
 
3:55 PM
dsp didn't seem to answer; who else probably has access to the wiki.php.net server?
 
maybe derick ?
 
@PeeHaa Makes me wanna watch the twitch livestream of bobross.
"Happy Little Accident"
 
just hannes, and someone I never heard of @Levi
also I always forget about /systems/
 
As in bjori?
 
yeah
 
3:59 PM
I've not even seen him participate in a long time...
 

« first day (2218 days earlier)      last day (2737 days later) »