« first day (1430 days earlier)      last day (3515 days later) » 

9:00 AM
but u used postgre?
 
...
 
noone's here relaying on RDBMS for encryption
 
Also that
 
our system are so strict
 
that has nothing to do with it
 
9:03 AM
mornings
 
when required, we encrypt/decrypt in the application code (php) and pass the information already encrypted between webserver and db server
 
yes i also used php but
our system has IOS and php bases
i dont think ios has the encryption
and decryption
 
PHP is in between ios and the db right?
 
so we intended to us db as our encryption basis
 
if you perform the encryption/decryption in RDBMS, it creates two issues: your DB structure becomes more fragile to change in app code and you expose additional attack vector, if someone manages to intercept the communication between server/application and db
 
9:04 AM
yes
 
Morning Dave
 
@boyee Yes it does. Did you actually look?
 
@boyee what error?
 
ERROR: decrypt error: Data not a multiple of block size
these happens to me
when accidentally added not encrypted on postgre
these error appears
postgre is way too strict if he not all on the db has encrypted it will cause an issues
 
you're trying to decrypt something that isn't encrypted? what do you expect?
 
9:12 AM
yes
for example
table - customer
fields - id , text
data one
id text
1 this is a test = encryption 234nsdfoh1kjad
id text
2 not decrpyed
if the systems triggered that not all of the databased has been encrypted
it will force an error issues
thats my concerns since , we are 8 in our team , what if our other team forgots to insert on encryption modes, so the systems will compromised
 
@halfer sry for didn't respond in time :(. Anyway I've implemented what I need ;)
@halfer thanks again buddy :D
 
@boyee You need to back up here, and go and learn some basic things about encryption. Not only does what you are asking for make no sense and a large number of ways, it would achieve nothing even if it did. I actually doubt you want to store data encrypted in the database (there are very few use cases for that) and actually what you want is to secure the connection between iOS and PHP, but until you understand the basics of what you want to achieve you aren't going to get anywhere.
 
ThW
9:32 AM
Morning
 
I need to draw flows. Is there something out there (preferable free)?
 
@Danack I would recommend either brunningandprice.co.uk/thewharf or brewdog.com/bars/manchester, personally, although it somewhat depends who would be going. The Bank is a slightly odd place IMO, it feels a bit like the sort of place where you'd have wedding reception. The Wharf is good if the weather is good (good large outside area), has decent inside bit as well. Brew Dog is... Brew Dog. Same as the rest of them, but pretty good.
@PeeHaa As in flow charts?
 
yes sir
 
Hi guys.I want to create an application that allows for VOIP pc to pc calls.Anyone have a link to easily customisable PHP code for this.Or a link on how I can do this?
 
And it shouldn't suck too hard so no open/libra office turd
 
9:39 AM
@PeeHaa and it should spawn flying unicorns in your room?
 
@PeeHaa Somewhat depressingly, I've found Visio to be one of the easiest things to actually use. That said, someone at work uses Google Docs for it and has made some decent looking things
 
Nope just the ability to draw flow charts would be fine @bwoebi
@DaveRandom Yeah visio is the only thing I know that just works. Will give google docs a try
 
@Gotalove Easiest to customize: eval.in/193376
 
thanks @derp let me have a look
 
@derp you stole that one from me
 
9:47 AM
????? @derp what?
 
@SergeyTelshevsky It's a completely independent invention! Talk to my IP lawyer! :p
 
each of the characters is right in the same position as mine, you can't use that
 
you actually got me there :-P
 
use <script language="php"> or <% tags please!
 
I'm assigning a variable into the array
$this->getSelected['question'][$key]['AnswersList']  = $variable ;
Now it says
PHP Fatal error:  Cannot use object of type stdClass as array in
Why is this error generated ?
$this->getSelected['question'] is already defined
 
9:52 AM
Because you're using an object of type stdClass as an array.
 
$this->getSelected['question'][$key], $this->getSelected['question'] or $this->getSelected is an object
 
i have defined $this->getSelected = array()
and i was set $this->getSelected['question'] = 'somthing';
So no objects ? @derp
 
@Gotalove fyi what you are asking for there is waaaaay too ambiguous. Are you looking for some kind of SIP stack in PHP or what?
 
@DaveRandom yes
 
php://stdout is really writing to stdout and not to sapi_module->ub_write :-(
 
10:00 AM
@Gotalove Then no, there isn't one (worth using).
 
I was hoping for a php solution to
7
Q: VOIP: How to Create a Web app to make Call like skype or msn ?

xRobotThis is a very newbie question. I want to know how to create a web app to make a telephone call, most likely using VOIP protocol. What programming languages, both client and server side, do I have to learn?

 
@Gotalove Take a look at Twilio
 
@BogdanBurim thanks for the response.Let me check it out
 
@Gotalove My personal opinion (and probably one worth listening to given that I was a telecommunications engineer for ~8 years) is that if you want a custom application for this, you want an Asterisk-based back end to handle signalling and switching. Using some HTML5 goodies it wouldn't be too hard to write a decent SIP client in JS (just Googling around I see a couple that already exist) and it also wouldn't be too hard to write some hooks into asterisk so you can control it with PHP.
 
is ajax good to create a live notification bar for a site which will have 1000 users at a given time?
 
10:05 AM
@DaveRandom thanks given your rep its worth listening to you :)
 
DO NOT attempt to write a full SIP stack in PHP. PHP simply is not capable of dealing with something like this (in a production environment) at the moment. Coupled with the fact that SIP is an insanely complex and very poorly specified protocol, where any number of endpoints do all sorts of weird shit, only people who really know what they are doing (and I don't put myself in that category) should attempt this.
I have done some preliminary work on it (not currently public) but it will likely never get finished because it's a somewhat stupid thing to do.
@Gotalove All rep means is that I have answered a lot of questions, doesn't mean I know what I'm talking about ;-)
as it happens, in this case I do know what I'm talking about, but rep is not a score of how much you should listen to someone
(no names mentioned)
 
Ahh regex ..... again stucked :D
 
ahh
 
Tried to Google to find similar solution but nothing and I don't want to ask a question on SO because it is stupid question :D
 
:p
 
10:15 AM
I know guys this is not a JS room but I've got a simple question, so if someone from here is JS pro :D, who can help me ping me in JS room
 
@DaveRandom I perhaps know some PHP dev who has some experience with that. I'll tell him about your tries so that you at least know from each other :)
 
And RegEx group looks dead :D
 
@LeviMorrison @Andrea guise, you made everything way too complicated.
you didn't have to release anything there
 
@hakre What, SIP in PHP?
 
What was missing from Levi's code was a modification of zend_ast_destroy_ex
 
10:16 AM
@DaveRandom yes, what you were talking about preliminary work.
 
it didn't free the ast node itself.
 
zend_destroy_zend_ex
 
I'm rapidly leaning towards H.323 being the only thing that makes sense for IP telephony at the moment, not least because the protocol spec actually makes sense.
 
unsepcified specs really do suck.
at least for implementing clients.
 
@LeviMorrison Nothing really wrong with doing the string comparison, if it saves you a fight with opcache. Maybe dmitry will come up with a proper way when he reviews it
@LeviMorrison @Andrea I also realized that strict type hints are the only way a static analyzer can make any meaningful type verification. Everything where the validity of input depends on the exact value will be impossible to analyze.
 
10:21 AM
@hakre It's a bit like HTTP in some ways, where the spec was lacking in some areas so some endpoint manufacturers filled in the gaps in their own ways (without talking to each other) and then some of those things were pulled back into the spec and as a result some bits of it have implementation defined spec and some parts of it are simply unspecified
So it's very inconsistent, quite inefficient and there are some things that there are 115 ways to do the same thing
 
@DaveRandom please pin post -->
 
:P
 
wtf
Oh was that you
 
maybe
:)
 
:-P
 
10:25 AM
my star!! =o(
 
Like at the exact same second I did it, I was very confused
 
:D
 
@PeeHaa OP's profile "PHP Developer @ some IT Company..:)". I need to remember to use that in my resume next time. May as well cover all cases.
 
"PHP developer on Earth"
 
oooh she works at some IT company, could it be Google? Could it be Microsoft? Could it be Tom's Crab Shack? Fuck it! What do we have to lose!
 
10:53 AM
I have set date.timezone in my fpm php.ini, but phpinfo() says date.timezone = 'no value', it works well in cli php.ini though. What can be the problem?
sheat. forgot to reset fpm, nevermind
 
@SergeyTelshevsky Note also (for future reference) that a) cli and fpm can be built in such a way that they use different php.ini files and b) you can override php.ini options in fpm config files
 
@DaveRandom yeah, I have different configs, that's what bothered me, that it still didn't work despite me setting it in the appropriate one
and I have searched for overrides in other files too
I even restarted nginx multiple times :D
 
11:39 AM
hello
 
hello
 
Do you guys see a potential in a SQL injection in the following method?
    public function select($query, array $binds) {

        $std = parent::getPDO()->prepare($query);

        for ($i = 0; $i < count($binds); $i++)
            $std->bindValue($i + 1, $binds[$i]);

        $std->execute();

        return $std->fetch(); // bla bla for now..
    }
Usage for example - select("SELECT * FROM test WHERE username = ?", array($_GET['hey']));
 
$i + 1 <-- awkward
 
Who is setting that parms to function?
 
Won't don't you just use PDOStatament::execute(array)?
 
11:43 AM
good noon
 
@PeeHaa Ah nice, didn't know PDOStatement can do that :P
 
;)
 
can any one help me with this question stackoverflow.com/questions/25842481/…
 
are there any problems though, regarding security?
 
@BenBeri With the given query there is no issue. Is this mysql though?
 
11:44 AM
Yeah
 
Have you disabled emulated prepared statements and passed the correct encoding?
 
Well I only have these settings on the PDO instance creation pastebin.com/9AXnt850, else I am not sure.
Actually useless post, I guess no.
 
3258
A: How can I prevent SQL-injection in PHP?

TheoUse prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL. You basically have two options to achieve this: Using PDO: $stmt = ...

 
Great link, thanks
 
11:48 AM
np
 
12:01 PM
Well. register_globals sucks. It registers session variables by ref :-(
 
@bwoebi Why are you even working in a PHP version that has that option?
 
That's true
 
Does anyone have any relation with webfusion.co.uk - they appear to be spammers.
 
@DaveRandom I'm not. But someone else is and he had problems because he used somewhere in his code a variable which was magically registered as a reference to some session variable.
 
@Danack I'm the CEO. I'm a spammer and I assume it.
j/k, never saw this name before
 
12:10 PM
I registered a domain name a couple of days ago - they're blatantly scanning registrations and cold-calling people to help them 'setup their new domain'.
 
@bwoebi lulz
 
@Danack WHere did you do the domain lookup to check whether it is free?
 
@PeeHaa No...it's registered. So they can just scan whois for recently registered domains. But to answer your question I check for availability through -networksolutions.com never had a problem with them front-running a name, but then register with 123-reg.
(who are a little bit scammy).
 
12:13 PM
@Danack webfusion are 123-reg, btw
 
@Danack Fun fact: NS once tried to trap my domain. Never done business with them again
 
@DaveRandom oh....crap.
 
hehe ^
 
I knew I'd seen the name before, it's the name on the invoices I get from them, and the 123-reg site says © 2014 Webfusion Ltd at the bottom
I actually haven't had an issues with 123-reg so far, but then I've not had to contact their support for anything yet
 
@DaveRandom Hmm, they still shouldn't sending personal information to india to make sales calls......and apparently people have had trouble moving their domains away from 123-reg, with them claiming they need to pay a transfer fee.
But they have decent web interface so hey-ho.
 
12:19 PM
@Danack Not had that issue either, but the only domain I moved away from them (client, quite recently) I did when the reg elapsed. But I just issued a code through the web interface and it went through no problem.
I've heard a few people slate them though so... dunno
afaict all registrars are twats anyway
 
I have been using namecheap for years and never had any trouble with them. Moved all my domains over because I can't say the same about other companies...
 
Good morning
 
@Ryan E_MONDAY
 
12:42 PM
morning room!
 
anyone got an invite for a OnePlus One please msg me //cc @SecondRikudo
 
1:00 PM
@CSᵠ I don't have one yet, but go to G+ and search for "One Plus Invite", there're often giveaways.
I got two invites for me and my friend from there.
@salathe What's so good about it?
 
@SecondRikudo It's shiny! \o/
 
@SecondRikudo there are a lot of fakes
 
@CSᵠ It's free anyway so... :P
 
ThW
@hakre Do you have any idea what the difference between setAttributeNode() and setAttributeNodeNS() is?
 
I am back, hello.
 
1:09 PM
Hiya back
 
morning @AndreaFaulds
 
Great, the intsem RFC is now at 3:3
:/
 
let's see :)
@AndreaFaulds still see the Version: 0.2.2
 
I was referring to the vote totals.
 
ohh, votes..
 
1:12 PM
@AndreaFaulds why the no votes?
apart from derick that is
 
@NikiC That's what I'm wondering.
 
What's a non-visible "space" character? Such as one can delimit other characters, but has no visible glyph.
 
the only part that isn't entire clear to me is the left shift behavior
that right shift should result in zero is obvious
well, left shift also makes kinda sense ^^
 
@NikiC the behaviour just makes sure it keeps doing the same thing if you go beyond the part specified by C and implemented properly by processors (0 <= bits <= 63)
 
@AndreaFaulds is it intentional that you created a doc patch but did not commit it?
 
1:14 PM
@DaveRandom The one with "nullable"? Yes.
That came from a terminology dispute with Levi when he pointed out we never use "nullable" in the docs...
 
OK... is there a discussion somewhere? The fact that there is a patch but it's not committed sets my OCD twitch off. It causes reminder emails to be sent to the docs list.
 
@AndreaFaulds I'm ±0 on that now, because it results in 0/-1. I'd have preferred % BITS_IN_LONG.
 
@bwoebi On the integer semantics RFC? Why?
Is there a good reason why the shift should modulo?
 
@AndreaFaulds It's actually what I'm used to, I already even used that fact in code.
 
1:18 PM
@DanLugg 0x200B - the aptly-named "zero width space"
 
@derp Thanks, got it :-)
 
@AndreaFaulds It's also what sounds logical to me. just like unsigned integers overflows at 2^64 - 1, bitshifts should overflow at 64 too.
 
@DanLugg Unicode has a bunch of these. There's a fun soft hyphen
@bwoebi But that's not overflow
 
@AndreaFaulds lol, a fun soft hyphen even :-)
 
U+00AD is great
 
1:20 PM
@AndreaFaulds well, it is. At 64 it overflows back to 0.
 
@bwoebi I guess so. Still, I'm uneasy about it. It's more platform-specific behaviour
 
I don't think modular behavior makes any kind of sense
 
It's also, again, something that makes no sense with bigints. If this RFC is rejected, all the changes in it are in the bigint RFC anyway.
 
It would be the right thing if this were a circular shift (rotate). But it isn't
 
Is the empty statement (i.e. just ;) valid C89?
 
1:22 PM
@DaveRandom I believe so
 
cool
 
@AndreaFaulds another idea: extend bitshifts to floats.
 
tnx
 
@ThW xmlns:name attribute I think but not very sure.
 
The mod behavior also does not align with the interpretation of >> n being / 2**n
 
1:23 PM
@NikiC it's anyway not 2**n, because of 1 << 63 being negative.
 
setAttribute should be in the NULL namespace
 
@bwoebi cool
 
@DaveRandom sure. just make sure it's not part of the declaration block ;)
 
@DaveRandom Just tested with -Wall --std=c89 in clang, it accepts it.
 
ThW
@hakre, but this is part of the attribute node object, why should it loose its namespace information
 
1:24 PM
@NikiC OK, but it can be the first statement after it?
 
@NikiC Do you have any problems with the RFC as it stands?
 
@DaveRandom sure.
 
cool, tnx
 
ThW
@hakre yeah, like others that take a node name
 
@ThW because attribues have no namspace at all until given?
 
1:25 PM
@DaveRandom (if you don't have variable declarations after it…)
 
(just quick)
 
BOOM BA DA BOOM BA DA BOOM BA DA BOOM
 
@bwoebi Yeh, that would be "part of" the block in the context of what @NikiC was talking about though (right?)
 
yes
I'm mentioning that only because that's the reason why TSRMLS_FETCH() must always be the last declaration
otherwise it violates C89
 
ThW
@hakre but if it is an attribute node, it already got a namespace from createAttributeNS() (or not. The method has no argument to define the namespace. All the other *NS methods have the namespace as the first argument.
 
1:28 PM
@NikiC Oh I forgot about that, I guess that's doing basically the same thing as what I'm doing
 
oa-res-27-90:~ ajf$ cat test.c
int main(int argc, char *argv[]) {
	;
	return 0;
}
oa-res-27-90:~ ajf$ gcc -Wall --std=c89 test.c
oa-res-27-90:~ ajf$
 
FYI @AndreaFaulds I voted no because I am unsure about the INF -> int 0 conversion and would rather do nothing than risk doing the wrong thing.
Many of the other changes look good to me, such as bitshifts.
 
@LeviMorrison There is no sensible answer, I just want it to do one thing consistently.
We can always make an RFC to make it not convert at all later.
I mean, the whole concept of an explicit cast is pretty stupid. It will never, ever fail. That's almost never a good thing.
 
@AndreaFaulds I think Levi has a valid point here. Why not handle INF just like NaN?
 
@bwoebi I do. They both cast to zero.
 
1:31 PM
I have been insanely busy lately so I haven't followed the thread; did you consider INF -> INT_MAX?
 
@AndreaFaulds ugh, misread. I looked at the //was/now below instead of above.
 
@LeviMorrison Yes, but 1) That means it's a different result across platforms and I wanted to reduce inconsistency, 2) I consider INF to be an error value, 3) If we add bigints that doesn't make sense. All these changes are backported from that.
 
@NikiC Concerning zend_compile_class_ref: I couldn't think of how to use it.
This is because zend_compile_class_ref needs the AST and at compile time I don't have it, since I'm inside the return AST.
 
@AndreaFaulds I meant, make them return bool(false) and a warning?
 
@bwoebi It might be worth making explicit casts fail in future, but I'm unwilling to touch that in this RFC.
 
1:34 PM
I also wasn't ready for review; Andrea just made me push it so she could help me with something >.<
 
hello, I have a strange problem with doctrine, when doing $repo->findAll() or $repo->findById(); it works, however when doing $repo->findBy(array('id'=>$x)) it shows me Unrecognized field, while I have verified that it's not a typo a few times and for other proprieties, any ideas ?
note: i'm using silex
 
By the way, I should perhaps clarify in the RFC this doesn't just affect explicit casts
oa-res-27-90:php-src ajf$ php -r 'var_dump(INF >> 0);'
int(-9223372036854775808)
oa-res-27-90:php-src ajf$ sapi/cli/php -r 'var_dump(INF >> 0);'
int(0)
For example.
 
@bwoebi this is use-case for empty statement. Unless you have a better way?
 
@DaveRandom that's not a semi-colon, that's totally nothing ^^
 
@ThW question back: How do you create an attribute node that starts in the full-name with xmlns: ?
 
1:41 PM
@bwoebi When not on windows, the preprocessor will leave a semi-colon
 
ThW
@hakre they are created automatically and they can be created in the xmlns namespace (this is one of the standard namespaces)
 
@DaveRandom oh. that semi-colon after the macro invocation. Well… it's totally unnecessary^^
 
@bwoebi Yeh but it looks horrid without it (IMO)
 
@DaveRandom like you want.
 
ThW
@hakre $node->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:foo', 'urn:foo');
 
1:45 PM
Good morning
 
Morning @ircmaxell
 
Morning @ircmaxell
 
@ircmaxell Interesting. Looks like that may be what Node use (or have at least considered using): github.com/kobalicek/asmjit/commit/…
 
@DaveRandom huh?
 
1:55 PM
@DaveRandom I think bnoordhuis didn't work on node anymore back in may
not sure of the timeline though, I may be wrong
 
One way of approaching infinity when it comes to integers is to consider it as the size of the set of all integers ℵ0 - which is a really small infinity. So small that it is essentially zero compared to the size of the set of all reals ℵ1 from which you can remove all the integers without decreasing the size of the set at all. From that standpoint converting a float(INF) to an int(0) isn't entirely without mathematical merit. Just cross your eyes a bit and think of England.
 
uhhhh
 
morning
 
@JoeWatkins eveningnight
 
@JoeWatkins morning
 
2:00 PM
Gosh you guys are all way overthinking this.
I just want to reduce undefined behaviour
 
@AndreaFaulds You put me on a vi hart binge.
 
@derp :D
 
Can anyone tell me how can I detect how many array exist in my php page?
 
I watched... everything.
 
posted on September 15, 2014 by kbironneau

/* by chenkthetank */

 
2:04 PM
@TheRealHamza What are you trying to do?
That seems like an odd question.
 
@AndreaFaulds this was my question stackoverflow.com/q/25849619/3151394
I want to check if array exist or not as debugging?
 
@ThW I see. As I read MDN developer.mozilla.org/en-US/docs/Web/API/… it (Element.setAttributeNodeNS()) is DOM Level 2, and as that it's esoteric in PHP as it's not clear if level 2 is supported or not, compare stackoverflow.com/a/17340953/367456
 
@TheRealHamza Listen to the people who already answered
They gave you perfectly good answers that will solve your problem
 
@ircmaxell looks like a candidate ...
no mention of any binary support though ?
 
@AndreaFaulds thanks!
 
ThW
2:07 PM
@hakre I found it in the w3c specs,too. I just don't understand what the two methods are supposed to do different.
 
@JoeWatkins I don't know if it's a candidate... Just seemed interesting
 
@ThW The MDN page has a nice table quite after the top. I think this might give more info.
It could that both are the same but different in DOM Levels.
So not doing different things but having a different name.
Does that make sense?
@Feeds ouch.
 
@ircmaxell because of the author
 
oh ok
 
and in PHP it's all libxml2 "which provides support for (DOM 2) but doesn't claim to implement (it) completely"
 
2:11 PM
@ircmaxell got all the same kind of generation facilities, but what we're missing in libjit we are missing there too ... generation seems more involved there is mention of a high level api but I can't see it ... but it wouldn't solve our main problem ...
 
yeah...
 
@JoeWatkins ...which is what, sorry?
 
that we cannot generate binaries, elf or any other format, so we are still stuck doing final conversion to machine code at runtime ...
 
llvm then?
 
that's the only library with mature facilities for creating binaries ... but but ... bit like cutting your legs off to run faster ...
 
2:18 PM
yeah
 
@JoeWatkins Can you produce assembler though?
 
You guys ever used Pheanstalk? Or Beanstalkd?
 
ThW
@hakre got it, setAttributeNode() does compare only the local name and replace an attribute in another namespace with the same local name. eval.in/193598
a little unexpected
 
well, could make sense due to DOM Level 1/2 mixup.
Well define "sense" ^^
But finally found.
You perhaps should turn that into a reference Q&A on the site.
 
@DaveRandom we cannot ... the only thing that it makes any sense to produce right now is the IR generated by recki, it's much more intensive to generate that than it is to generate the executable code at runtime ... this is our current best option ...
 
2:28 PM
@JoeWatkins "intensive" meaning "resource-hungry" or "difficult"? (or both?)
 
@DaveRandom both
for example: the benchmark madelbrot function currently takes 57 seconds to compile the IR, and then a few milliseconds to compile to native by jitfu
 
ThW
@hakre which site?
 
my best current idea is the following ... we have a two tier cache strategy, whereby there is a process shared pool of memory for the frontend to store IR, there is a process local cache of pre-compiled code, we hook into zend, and compile on demand, using some docblock tag to tell the backend a function is compilable, so it can check process shared cache and then invoke frontend if not available, placing IR in process shared cache and executable address in process local ...
 
interesting...
 
docblock tag sucks a bit though, could you manipulate the AST to add a new keyword if the extension is enabled?
(or some other bit of extension-dependent syntax)
Although I guess that implicitly makes the userland code not portable
 
2:34 PM
we could actually even go further than that, the IR cache can be served over the wire, it would not need to have the restriction of needing to be a child process, you could then distribute the donkey work of compilation to other machines, networks even ... the only thing that must happen is a process local cache for executable code ...
 
hell, we could do a SQLite database for the IR
which the jit extension reads on startup (minit, not rinit), then compiles and internally caches on demand, keeping the cache for each request...
 
yeah ... we define some kinda driver facilities so the programmer can choose seems like a good thing ... this is the first time I typed the idea out in full ...
 
but I fear that would raise issues, since we'd need to do swizzling
 
on IR ?
 
no, on the cached compiled result
 
2:38 PM
@ThW Stacki Overflowi
 
oh no you wouldn't need to swizzle anything in the process local cache, for the duration of the processes relevant addresses do not change, what we would need is a semi-dynamic way of calling into zend - an opcache changes function addresses, so the only place I can see where addresses would change is there - calling zend functions using zend vm ... which we don't yet support ...
once code is compiled for a process we can reuse it for the life of the process, currently it's as simple as that, when we add support for calling zend functions using zend vm, we would only need to lookup the function address ... which is not going to be a noticable overhead since we are about to call into zend anyway
(we don't need to have that code be assembly either, can be a C function we can call, simple stuff really)
 
even in different threads?
 
yeah, internal function handlers are stacked right, so the only thing that changes is heap allocated user class and function addresses
 
fair enough :-)
 
afk because school run ... back in 20 ... will continue thinking, we need to figure out what the interfaces between backend, frontend and caches are going to be ... then we can knock them up in no time ...
 
2:51 PM
So yeah, I put Scalar Type Hinting with Cast out of its misery.
 
@AndreaFaulds I appreciate your work. Every attempt which is not voted on can be very valuable to later authors.
I mean, return types has at least 3 RFCs before it.
 
Yeah
By the way, why did you vote against the Integer Semantics RFC?
 
1 hour ago, by Levi Morrison
FYI @AndreaFaulds I voted no because I am unsure about the INF -> int 0 conversion and would rather do nothing than risk doing the wrong thing.
 
@DaveRandom But we don't do nothing just now
Currently you get some nonsensical undefined result
 
Not me that said it, I haven't voted (yet) ;-)
 
2:59 PM
Oh, welp
 
Yes. I'd rather leave it undefined than risk defining it to the wrong thing.
 
@LeviMorrison It can always be changed later, this just makes it consistent
 
It'd be a BC break later.
 

« first day (1430 days earlier)      last day (3515 days later) »