« first day (2170 days earlier)      last day (3004 days later) » 

20:00
@PeeHaa "Configurable command prompt thingy" ?
i.e. something other than !!
@Danack yeah we hardcoded !! to be the command start thing
ah, cool.
I have an example @DaveRandom where 50% RO gets a problem
it's only hard coded in 1 place though so it will be easy to change
20:01

Sandbox

Where you can play with regular chat features (except flagging...
we should be using (bool) - we're not animals
I am :P
Savage reporting for duty! :D
I have RL to I
back tomorrow afternoon
feel free to play
Will play. Have fun with RL
Does anyone have a list of functions which create arrays with keys influenced by user-input?
(i.e. which need to throw exceptions instead of fatal errors when there are too many collisions)
 
1 hour later…
21:15
@bwoebi Everything in PHP core relies on PGC, pretty much filter_input, for example. Everything else well... you just named every array function in PHP pretty much, no?
@Sherif PCG is already taken care of by max_input_vars
Right, that's my point. So what are you looking for, exactly?
@bwoebi i.e. I didn't quite understand the question.
@Sherif well, for example in images you can add tags i.e. key-value pairs… and if someone is calling iptcparse() on it, they're read into the array…
And as we want to avoid people causing fatal errors with external input… yep.
@bwoebi Ahh, so grep zend_hash_index_update pretty much?
das crazy stuffs!
and add and all the assoc funcs
and most of them are actually pretty restricted in accepted values
21:21
hmmm, you're looking for insert in a loop then really.
yes
Things like getimagesize just have fixed size arrays
and that's not trivial to grep for
I.e. I manually need to search
@bwoebi I'm going to take a wild guess here and say pretty much all of ext/imap :p
@Sherif it was just like two occurrences I think
21:23
Really?
yep.
#shocked
many array_init() but only two places using dynamic keys in a loop
@bwoebi What about unpack?
@Sherif yeah… I'm currently going through ext/ one by one and looking
currently looking at interbase
21:25
@bwoebi No, I meant the function unpack().
@Sherif I got that. ext/standard is a bit further down.
ahh ok
Though I don't think stuff like unpack, glob, scandir, etc.. would necessarily qualify there since the index is just incremented. There's no control over the indexing from user input.
oh wait... unpack does have an edge case there I think... you can specify keys.
But then that's the user's problem :p
@Sherif right, only that case qualifies. And as it's trivial to fix this, I'll just add the _exception suffix to the func name there
Wes
Wes
21:42
gn folks
21:59
@bwoebi in your huffman decoder can this actually happen? github.com/amphp/aerys/blob/master/lib/HPack.php#L175
@PaulCrovella yeah, when the last 30 bits were 1. (which is also an invalid marker according to RFC)
 
1 hour later…
23:34
-1
Q: How do I use php code inside javascript file and function?

user3227899I created color column in my database and also i set this in index.php <script src="js/leftmenudata.php"></script> And in my index.php has this code, it is print color list to listbox <select id="color" size="10" name="color"> <script language="javascript">print_color1("color");</script> </se...

I feel like I see at least 7 of these questions every day.
How do I call my C function from inside my Java code that was called by my Python which was executed by my Javascript?
I blame javascript.
Javascript should be responsible for all problems including world hunger.
@Sherif yeah :-( I'm so sure there are at least 10 helpful suggestions when you only type that title in ask question box
@bwoebi Aint nobody got time to read no suggestions man!
This is the Internet. Where you can outsource thinking for free.
On a completely unrelated note I'm starting a campaign to down vote every question tagged from here on out. I will be saving my 40 daily votes exclusively to down vote them until I have down voted every question ever tagged .
That is all.
@Sherif Will you ever accomplish that in a lifetime?
@bwoebi There are only like 45K questions. It would take ~3 years.
Assuming people stop asking questions.
@Sherif That's a flawed assumption though and you know it :-P
23:48
@bwoebi Well... I should get infinitesimally close.
... in theory
zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra);
… people doing dumb find/replace :-D
Hi people, didnt know StackOverflow has a Chat. Thats so awesome-
@bwoebi Where'd you find that?
@Sherif ext/soap
@bwoebi Ahh, explains everything!
23:57
somewhat, yes :-P
soap is a necessary evil, nothing else :-D
One of the few extensions I will never touch.
… except for dumb batch replacing, yes.
@bwoebi man, why is phpdbg such a horrible interface?
And I'm not talking about the API.

« first day (2170 days earlier)      last day (3004 days later) »