« first day (3321 days earlier)      last day (1609 days later) » 

12:02 AM
hello
 
Wes
12:24 AM
@Ekin there are probably cases where interning would be helpful
sorry was cooking. 5 days without carbs. i am freaking out
 
@Girgias None. In PHP, a switch and if/elseif statement have no palpable differences in any area beside flavor. A developer might find the fact that you can see the checks being made more terse, another will find that the way switch is constructed, you can see exactly what to expect.
 
Talking in C level
On the engine
 
Sorry, mis-read.
 
In C, switch immediately sends you to the case (a constant) that it resolved to, skipping others, afaik. "Afaik" because I really, really never had to care. Frankly, there's no difference between them and it's just preference.
I agree with if/elseif. If you have a lot of complex logic, it's kinda...weird to look at a switch statement. Plus, when you're inside switch, you obviously hit a break and so, you're forced to resume your thinking from outside the switch block. I like the fact that when I write if/elseif, you're pretty much in the same block mentally.
 
Wes
12:42 AM
do you think circular references should be avoided by design, or are they inevitable?
 
If you meet circular reference in PHP, you're absolutely doing something crazy wrong. You should extrapolate the functionality that's making both classes depend on each other available to another class and make the classes depend on it.
Is Circular Ref. even possible when using dependency injection in PHP?
(Assuming each class needs the other to even start)
 
Wes
i don't think it's hard to hit them lol
 
Got code? I wanna see what's attempted.
 
Wes
classic parent child relationship
child having means to access the parent, and the parent having means to access to the children
 
Sure, but that's not circular dependency? If we take Clubs for example which might ask for City $city, Team $team in the constructor, we can also see that Cities also requires, in its constrctuctor a City $city. Given the way PHP works, you should have $city initialized before.
 
Wes
1:02 AM
@DanielSmith so you are saying i should never do this stuff gist.github.com/Netmosfera/608090da014144f588db044c322fed61
and stick to "pure" dependency injection
you said "i am doing something crazy wrong" like it's rare doing that sort of stuff
but it's not rare, because you can create the self dependency at a large distance without you not even being aware of it
it happens much less with immutable stuff, as you said i cannot construct B if depends on A, and i cannot construct A if depends on B
but i can do $b->setA($a); and $a->setB($b)
that is nasty but the problem is often you don't even realize you create a self dependency
 
But that is not CD. You're "deflating" the issue with parent::construct and initializing $this->child = new AdoptedChild. In the process, everything becomes not only hidden, but hard to follow.
What I said was "who writes code like this?".
 
Wes
like, millions of people?
ftr i am not saying it's nice
but $child->getparent() and $parent->getChild() is extremely common
and that requires some sort of circular dependency
 
Ok, hold on. Is it right to assume that you're in a situation where both Clubs and Cities depend on classes of type City?
 
Wes
$team->located_in_city->teams_in_city[4] === $team
i don't know what clubs means, i realized :B what's the difference with team?
$team contains a link to $city, $city contains a link to all the teams it hosts, including $team
 
1:17 AM
Aha, I get it. But this is a non-issue. Again, this is not CD at all. CD is a situation where you hit a race condition because a class depends on another and that class itself too depends on the one...you get it. Each one of these objects instantiates with clear dependencies which can never enter CD.
 
Wes
it is a weird aggregate but you get the idea :B
 
It's not weird, but there's no CD there.
 
Wes
how do you call it?
i call it self dependency, or circular dependency
always called that way
or self reference
 
Then I think you have the wrong impression of what the term means and it'll lead to confusion. These main three classes simply depend on a class of interface City when they instantiate. Nothing more.
 
Wes
no
 
1:20 AM
Try to instantiate these classes.
 
Wes
team depends on city, city depends on team
class Team{ public function __construct(City $hostCity); }
class City{ public function __construct(Set<Team> $hostedTeams); }
you cannot construct city unless you constructed the team first
and you cannot construct the team unless you constructed city first
 
...and that code will not run at all.
 
For me, that is objectievly bad, because it instantiates a dependency - hardcodes is. I've written software that is now used by millions under the hood and I've never had this issue to solve.
never reached the point where I need to solve this issue*
 
Wes
class Team{ public function setHostCity(City $city); }
class City{ public function __construct(Set<Team> $hostedTeams); }
 
1:25 AM
Yes, setters solve this issue instantly.
 
Wes
except that's not a true dependency
aka it's pretty bad and that is why i prefer the approach in the gist
 
Correct. You're hiding dependencies under setters.
That's why setters are bad.
...well, in a purist way, at least.
 
Wes
which is pretty much the approach used by most of aggregates having that kind of api
 
But why do you need this, again? You're hardcoding a dependency inside. You make achange, it goes boom.
There's no real case, ever, trust me, because I wrote something akin to Laravel for WordPress (in an environment where everything's fucked) and thrived to do this in PHP.
You are thinking about your issue wrong, whatever it is.
 
Wes
the original question was, "what do you think about... ?"
 
1:28 AM
Ah, it was just a theoretical talk, I see!
 
Wes
i don't have a strong opinion
 
That is good. Nor do I. Ever.
Can you come up with a real world situation where that solution will be better over simply what I showed you? It's how I test my "opinions".
 
Wes
but i have experimented with all possibilities over the years
 
Yes, but the answer to the question of Teams depend on Cities and Cities depend on Teams is...for them not to depend on each other, but rather on CitiesProvider and TeamsProvider :D
A City should know what Team it needs and a Team should know what City it needs. Therefore they just need to depend on A PLACE to get these items from.
 
Wes
sure
 
1:31 AM
Which will, in turn, not create any DC :)
 
Wes
i had a repository that allowed me to locate a parent from one of its children
but it was extremely clumsy
 
How can it have been clumsy?
 
Wes
imagine you have a bunch of relationships in the aggregate that is not just a simple parent-child
you end up with a bunch of ugly methods
 
No, you don't have to.
Let me show you.
 
Wes
also, since you don't have a direct access from a child to the parent
you have to cache it yourself in the repository
private $parentsOfChild[$childID] = $parentObject;
it's a major clusterfuck :B
but ultimately all solutions have pros and cons
 
1:41 AM
In essence, this is a service container / provider coupled with a dependency injection manager do for you.
At a very dumb level.
REMEMBER. In PHP, objects are passed by "assingment by reference". Basically, objects are never inherited and made local to the objects that ingest them.
As such, it's not an optimization problem to do this.
But if you make City depend on Team and Team on City, even an auto-wiring DI package will fail. Because you're making it hit a race condition.
Wish I could refer you to an easy to understand DI (in terms of source) so you can see how they do it and why it's the only sane way, but, to be fair, they're complex because they need to be and it's hard to see exactly what they're doing at a base, raw level.
Sorry, you can't edit and I don't wanna confuse anyone: this is not what a service container / provider / DI do for you, but it's how they expect you to think about your classes and therefore you see what problems they solve for you. You should always think about your hierarchy and if you meet cases where you logically can't explain a dependency, you have a problem and if that problem's solution is to hide depenendecies: when you make a chance, everything breaks.
 
Wes
2:11 AM
public function __construct( CitiesRepositoryInterface $cities_repository )
that's not dependency injection
 
Yes, it isn't. I was just trying to show you how you should structure / think about the hierarchy.
See my last edit.
 
Wes
aggregates depending on the repository is the wronger solutions among all the possible ones
been there, did that, it's horrible
 
Then, I'm out of ideas. At the core, this is how DI PHP does it as well.
 
Wes
DI PHP?
 
Grouped, non-grouped or whatever, there has to be a container where your dependencies lie and you draw whatever you need from it.
 
Wes
2:23 AM
you say "draw", i don't draw stuff from containers, i receive stuff from containers
otherwise it's not "injection", it's "pulling" :P
 
 
2 hours later…
4:21 AM
@LeviMorrison you reserve a slot, then in the ctor you setup the slot, then in any other handler/hook you have your reserved memory ... it interacts with opcache as you would expect (your reserved pointer is stored in opcache)
s/ctor/op_array_handler/
the ctor might also be used, however, op arrays are constructed more than once (once for compile, once for optimized code), so it depends on use case ... the op array handler gets the final version of the code (it's name/address is known etc) ..
 
4:44 AM
hi, this is a general english and restful /API question, what is a better URL for a service that allows you to add and update a person?
/person/add, /person/update OR /people/add, /people/update ... ? The API will accept details of one person at a time only.
 
 
2 hours later…
6:47 AM
posted on November 19, 2019

 
7:06 AM
o/
 
Wes
7:18 AM
\o
 
7:40 AM
Hi, I'm looking for middleware example, I didn't success to implement it in my project. Could someone help me?
 
cmb
8:16 AM
@Girgias, in C, the case expression must be constant, so you can't call a function there. To rewrite that code in zend_try_compile_special_func(), you'd need to switch on each char of lcname.
 
I'm so old now, I make involuntary noises when I move
and I have to drink special yogurt or I stop digesting food properly
!!blame @PeeHaa
I'm going to stop talking to Jeeves, he never replies anymore ...
 
cmb
8:46 AM
Jeeves is down again :(
 
9:00 AM
 
 
1 hour later…
10:05 AM
rhapsodic extravagantly enthusiastic; ecstatic.
 
@Jeeves how's it going buddy
 
Wes
\o
 
@DanielSmith "If you meet circular reference in PHP, you're absolutely doing something crazy wrong. " I think you assumed he was talking about DI.......and even then there are still cases where it's not possible to avoid.
 
Wes
10:22 AM
do you have any example of where circular references are not avoidable?
mornings
 
cmb
Pretty good explanation, but "When used with OPCache, they also get recycled from request to request." appears to be wrong (s/recycled/reused)
 
Wes
so only string literals are interned? never intermediate strings?
 
cmb
10:37 AM
It depends whether the code calls zend_new_interned_string; see php-lxr.adamharvey.name/source/…
 
Wes
if i compare two strings that happen to be === identical, will php merge the refcount of one with the refcount of the other?
ie merge the two zend_string in one
@DanielSmith what you said is a possibility, except that i wouldn't call that third element "repository"
and it's not different from this pbs.twimg.com/media/EJs-GLLXkAAIHU0?format=png&name=small the difference is only where the data resides
you want a base object where all the data comes from, but fundamentally it's the same
 
11:18 AM
o/
 
 
1 hour later…
12:22 PM
\o
 
@cmb yeah I realised after the fact that it's calling a function, moreover you can't even do that in PHP either the switch over a function arg (well maybe with array_map but that's not a switch)
Just had (as usual) a brain fart
 
12:39 PM
Btw, do we have a list of some sort of which extensions (in core at least) still use resources instead of objects?
 
@Danack you can avoid it, but it sometimes is annoying to
 
That's a lot of extensions to convert :(
 
can delete the gd ones except for fonts, which seem to be something completely different
 
Well the doc can't really be edited for stuff related to PHP 8 yet
 
 
1 hour later…
cmb
1:52 PM
Not sure what to do with these gd font resources. That has basically been superseeded by TTF.
 
2:05 PM
Add support for general C macros/includes for FFI header – #78836
 
I've a dream that for 7.x or 8.x someone will push C macros support to FFI... All these #include, #ifdef, #define produce a lot of pain with FFI...
And there should be reserved place in the hell for those who use extra fields in a structure definition wrapped with ifdef..endif
 
help! 1 of my friends is starting to develop websites in wordpress, someone plz stop it :'(
 
@Naruto Just kill him, he is infected... )
 
@lisachenko mm.. I'd better, there is no way talking him out of it ><
best argument in our discussion so far: you don't have to reinvent the wheel
 
ThW
2:24 PM
@Naruto Wheels got reinvented many times.
 
true
 
cmb
@lisachenko, FFI::load(cl /EP header.h)
^backticks have been interpreted as markup
 
2:45 PM
--with-openssl=[DIR] does not use [DIR] – #78837
 
3:15 PM
@JoeWatkins I saw that bit, but it looked too easy. It really is? If I have a zend_extension and I call that function in startup, then every op_array that gets compiled would have a slot reserved for me, with the appropriate size and alignment of a pointer?
Any other expectations? Like, is anything going to call efree on that pointer or anything?
@JoeWatkins Is the op_array_handler invoked exactly once per op_array?
This is really helpful, thanks Joe.
 
@cmb it depends on cl package :(
Now I'm crafting ugly regular expressions + strtr to preprocess C header...
 
cmb
yes, I know, but basically that's what ext/ffi would have to do
 
@cmb maybe someone will have a look at bugs.php.net/bug.php?id=78836 then...
 
cmb
@lisachenko, to implement that, we would need to develop/adopt a C preprocessor.
 
@cmb it shouldn't be so hard to implement from my PoV, but I'm not a C developer...
 
cmb
3:34 PM
The language the C preprocessor would be implemented in, doesn't have to be C. :)
I think the difficulties already start with predefined macros such as _MSC_VER etc.
How is that done by FFIME?
 
3:54 PM
@cmb it accepts all unresolved macros as a context, so either it can collect them from parsed headers or receive manually as key=>value pairs.
 
@ircmaxell Could you please release a version for the packagist?
 
The only thing Cparser really needs is an AST for parsing #if lines and expressions....
 
cmb
Thanks @ircmaxell! So wouldn't it be an option for @lisachenko to use that lib?
 
The AST is needed, as today it isn't capable of parsing a ternary statement properly. Support there is needed for general usages
 
4:01 PM
@cmb yes, it should be suitable for my needs
 
@lisachenko once I get some time I will make a push
 
@ircmaxell ok, perfect )
 
4:13 PM
@LeviMorrison reserved slots are part of the structure
once per unique address, iirc
> Any other expectations? Like, is anything going to call efree on that pointer or anything?
the engine will not touch it
 
Thanks, Joe!
 
yw
also, e'nin all
I guess it's implied, but, give some thought to what it means that the pointer is stored in opcache ... some atomics or other exclusion are necessary
 
everything is implied, nothing is implicit
 
@JoeWatkins Did this bit change at all with preloading? Aren't they sometimes immutable or something?
 
no, you can for this purpose ignore preloading
 
4:25 PM
Changelog for PHP 5 has a missing UL closing tag – #78838
 
@Jeeves oh god, how has this happened, I shall immediately fix this most heinous of problems
orders another beer
 
4:40 PM
Someone definitely shouldn't write back with a bug report about Welcome to DeveloperDan.com. Redirecting to primary site... being a circular loop.
 
oh wait - it just takes a minute to do a redirect.
 
4:59 PM
@JoeWatkins If all I do is set a boolean to TRUE there to indicate that I'm interested in these calls at runtime, then I shouldn't need to worry about atomics, right?
I'm not going to be changing that bool at runtime.
 
Also, @cmb or @lisachenko (or anyone else), if you'd like to help refactor the parsing of the #define lines, I'm happy to have the contribution. Basically, a parser needs to be built to take a token stream and produce an AST (or some other form), though only for a single line, so shouldn't be toooooo challenging (I hope)
 
5:20 PM
@DaveRandom At first I though PHP was some type of solution. smh
 
5:42 PM
hello
 
5:52 PM
anyone here?
 
6:06 PM
o/
 
6:20 PM
Duplicate HTML closing tags in ChangeLog-5.php – #78839
 
 
1 hour later…
7:29 PM
I keep getting distracted by my own procrastination today... significantly so... I should just go home and try again tomorrow.
 
Bleh. I'm trying to get the name of the currently executing function when execute a return opcode handler and I'm always getting null.
const char *fname = EX(func) && EX(func)->common.function_name
                        ? EX(func)->common.function_name->val
                        : "";
 
@LeviMorrison Maybe add some clarifying parenthesis? (me is just guessing, not proficient in C)
 
7:49 PM
It seems like if I inject something into the symbol table then under certain circumstances it leaks, which seems to imply that the symbol table is not always cleaned? /cc @JoeWatkins
Or maybe the rest of my opcode handler is screwing something up. I guess I should try it on a clean extension.
 
8:39 PM
Good grief I have some ugly code I am working with... procedural... do I rebuild the whole thing or just make the modifications necessary and move on with my life...
 
Depends I guess. Time to do a cost-benefit analysis!
 
I'm working through it to just get it done... but I keep questioning myself because it bothers me greatly not to fix it. It's like having a big hole in the wall in the living room... sure...
I'm going to put this painting up right where the hole is whether the hole is filled or not... whether the hole is filled the view in the living room will look exactly the same once the painting is up... and I don't think the decor is going to ever change again for a long time... but I know the hole is there... I know...
 
Oh yeah man. I've been there.
For one of my apps some of my updates have been something like...

"Huge update under the hood guys! You guys probably won't see anything different but I did a lot of work!"
 
LOL! "Huge Update to X: Refactored"
 
Hey, your rep is 173 and mine is 137. :)
 
8:52 PM
=)
 
9:33 PM
@StatikStasis if procedural code is broken what prevents you from fixing the procedures?
 
@hakre It's not actually broken - just the way they want the data presented has changed. I'm wanting to rebuild OOP though... but I am just giving them what they want at this point.
 
@StatikStasis but aren't actually procedures very well dealing with good data structures?
 
This code... is a mess.
 
which code is not?
ah okay, the one I just released ;)
reminds me I need to fix these bugs that went out undetected last night.
 
9:54 PM
done: github.com/hakre/pcre.php - I should add a travis build so that it's actually visible in a badge whether master did build or not.
or maybe have this as pre-commit hook that does a faux commit first and fully runs it before offering the staging to commit.
never did this. kind of inception.
 
ThW
@hakre not github actions?
 
10:37 PM
@ThW not yet albeit they promote it like hell. so should I try?
and do they have badges?
 
@Ghostff "if PHP is the solution, you should re-evaluate the problem"
^^ I don't think that at all, but it makes for a great soundbite :-P
 
10:56 PM
also known as the P-P problem.
 
@hakre I realise you did not ask for feedback in any way (but you posted something in #11 so you kind did :-P)... I really don't like this paradigm, specifically it bugs me that you are returning something with unknown mutability semantics in a place that implies imutability. I would personally prefer to implement that as yield from $this->iter; - ymmv, obv
And yes, I am also aware that it's kind of immaterial since it has inherently unpredictable rewind() semantics which cannot be mitigated without pessimistic caching and wasting a buttload of memory, and mutability is inextricably linked to that
 
@DaveRandom ah good idea. never thought about that actually especially as getIterator() is so grateful on the return type. I think I have a similar (but different) problem here. I might should throw them out in one commit.
 
Oh you want to be super careful with mixing yield and yield from, it can produce some serious wtfs with the behaviour of integer keys
 
@DaveRandom not concerned about keys, but there it does not work if it's an array and the input is iterable.
or at least I have not tested that.
But I strongly guess this just runs havoc with arrays as foreach / and yield from then starts a-new.
but not for a traversable.
 
Like yield 1; yield from [2, 3, 4]; yield 5; does a sane thing, but not necessarily the intuitive thing
 
11:04 PM
don't trust keys with yields. or use iterator_to_array and set the second parameter appropriately :D
 
Well yes, a generator is more a series of tuple values than key/value pairs
 
well tuples are key/value pairs, right?
just on their own.
 
In one sense yes, in another no :-P I know that you know what you are doing though, it's more of an issue for newbies I guess
@hakre Although I presume you meant that the other way round
 
could be, just these off-by-one errors.
 
"Tuple" isnt specifically 2 elements, although the word sort of looks like it should be
 
11:08 PM
but I'm not so sure I could fully grasp your feedback on what bugs you.
I like the idea of yield from $this->iter;
 
Hang on, driving home, back in 15ish
 
ack
 
yellow
^ that means Hello btw
 
Are we using C99 now in the Engine on master?
 
cmb
at least wrt. mixing declarations and statements, as I learned today
 
11:19 PM
Huuuum, can we start dropping some of the checks in math.c ?
Because most of the functions are defined in C99
 
cmb
you mean HAVE_ASINH etc.?
 
Yeah
Because we've got custom implementations when they are not available
And some of the custom ones are marked as "experimental" so
 
cmb
guess that might be more a non Windows thing (would have to check, though)
 
Well I can always just make a PR and get that review so that the CI can run it and see if something breaks
 
cmb
PR would be fine! :)
CI wouldn't tell much, though, because there are sooo many different systems.
 
11:30 PM
12 hours trying to make docker work for dev and I miss kubernetes so much
 
same, 3 hours with docker
mine is working now though
 
Wes
13 hours ago, by Wes
if i compare two strings that happen to be === identical, will php merge the refcount of one with the refcount of the other?
does somebody know?
evenings
 
@Wes Probably not -- that doesn't make sense.
 
cmb
IDK, but I think that doesn't happen.
 
@hakre (sorry took a bit longer than I thought) what did you not understand? I mean if want to discuss, also don't mind if you cba though :-P
 
Wes
11:34 PM
why it doesn't?
 
because identity is not the same as interning semantics
refcount only applies to interned strings, afaik
 
cmb
it's not necessarily about interning, is it?
 
Wes
not related to interning
 
cmb
nope, interned strings even enforce refcount 1
 
Wes
zend strings are refcounted regardless they are interned, right?
 
11:35 PM
oh right of course, duh
 
cmb
I think one problem with "merging" strings would be, that they may soon after have to be split again (immutability)
 
but still, I don't think it would make sense for them to be merged, you would need to update all zvals to point to the same zend_string* and I don't think that's actually possible, the string doesn't have refs to the zvals, only the other way round
plus what he said ^
 
I'm currently trying to connect to my localhost from inside a container, pain in the arse
 
Wes
maybe not merge the refcount, but have both zend_string point to the same storage
 
chances are it would increase the number of CoWs which would outweigh the memory gains in the 99% case
 
11:38 PM
@DaveRandom me too
 
@MarkR are you using docker-compose? or dockerfile?
 
docker-compose
 
what stack?
lemp?
 
Ubuntu 18.04 running on google cloud
 
@Wes I think that zend_string uses the struct hack to keep the data inline, it's not a char* but a char[0] which is manually allocated to the correct size
that certainly was true, not 100% sure it still is
 
Wes
11:40 PM
@DaveRandom probably not, it's rare that strings are modified using $str[9] = "x"
 
@MarkR So what is the issue?
 
Wes
unless copy on write is triggered by other means other than that
 
Having issues getting a fpm container to reach a mysql instance running on the host
 
@Wes oh I guess that's true
my gut is that there would be a tipping point where it becomes worthwhile though, like a few bytes here and there for small duplicated strings is not enough of a gain to offset the added complexity
and free() is (ironically) not free
 
@MarkR either you are doing something very simple or complicated. I can't tell either one from your reply, but check this github.com/samayo/docker-simple-lemp ... my local version is different and more customized but that will help you fix the issue
(if you issue is simple)
 
11:44 PM
That's mysql on the inside, no?
 
@MarkR just share a unix socket file via a volume mount, waaay simpler than buggering about with the insane docker virtual TCP/IP stack
 
not inside..
just three containers running separately.
 
Right, but that's all inside the default network and you're exposing nginx to host via ports
from the looks of it
 
yes
but from inside you can create a network also, not the default one
 
@DaveRandom srsly...
 
Wes
11:48 PM
@DaveRandom it is certainly rare to take advantage from that trick if it existed. most of strings are short
so even if the trick works, it wouldn't be a great gain on most the occasions
 
$ docker network create network-1
$ docker run --rm -ti --net network-1 --name foo ubuntu:14.04 bash
$ docker network connect network-1 network-2
that's very basics, but works for me...
 
cmb
zend_string still uses the struct hack to inline the char[]
 
Wes
instead, are array literals ever interned?
 
clarification question: does yield from $it rewind $it?
 
the docker networking capabilities are powerful and very clever, but almost all of the time you don't actually need them because almost all of the time when people use docker the host has knowledge of the container, so you can just do a volume mount (shared with multiple containers if necessary) and throw a unix socket in it
 
Wes
11:51 PM
@hakre it should. if it doesn't it would be real bad :P
 
@hakre afaik it's semantically identical to foreach ($it as $k => $v) yield $k => $v;
 
or directly mount as docker runs as root ;)
@Wes you sure? I could also imagine rewind could be unexpected... especially with non-rewind-able generators. question would be if it does it (rewind) but only sometimes.
 
or don't bother spending 12hrs fiddling with docker and just install shit on the host :-P
3
 
yup, fiddling doesn't pay rent
because fiddling is broke
 
becoming a docker is probably more profitable than docker
 
11:53 PM
well that was 3 hours wasted because i forgot to change the interface bindings on mysql
 
cmb
array literals are code, so they're stored as opcodes, I think
 
does mysql have the ability to specify more than one binding yet?
 
Wes
@hakre i am not sure but let's try
hold on
 
last time I touched it was 5.7 and it still didn't then
 
@Wes yeah let's do this. generator, iterator, iterator aggregate, traversable internal and array (did I loose something?) ^^
maybe looking into php-src in the end gives satisfaction.
 
11:57 PM
261
Q: How to bind MySQL server to more than one IP address?

BlaMIs there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.

 
@hakre a generator tolerates rewind as the first call after instantiation, after that it throws (I'm 99.9% sure)
it needs to because of foreach
7 mins ago, by DaveRandom
@hakre afaik it's semantically identical to foreach ($it as $k => $v) yield $k => $v;
^ pretty sure about that
 

« first day (3321 days earlier)      last day (1609 days later) »