« first day (1935 days earlier)      last day (3013 days later) » 

4:00 PM
laters - need to go to shop......and also:
!!eval echo PHP_VERSION;
 
exponential notation in bases other than ten isn't a thing, as far as I know; and would be entirely non-intuitive even if it were
 
Jeeves is trolling us! :(
 
It's not his fault: 3v4l.org/ES2tK
 
I like the php.wtf alias on 3v4l
 
4:02 PM
i like how our eval returns the results from hhvm by default
 
!!eval var_dump(file_get_contents("https://api.chat.stackoverflow.com/v1/users/salathe/‌​ban") or true);
 
[ [Output for hhvm-3.6.1 - 3.11.0](https://3v4l.org/Af3Tf) ] Warning: Failed to open https://api.chat.stackoverflow.com/v1/users/salathe/‌ban (Could not resolve host: api.chat.stackoverflow.com) in /in/Af3Tf on line 1
bool(true)
 
> â
@Danack yes
!!eval var_dump(+"1.2345e9", intval("1.2345e9"), intval(123, 8), intval("123", 8));
 
[ [Output for 5.3.22 - 7.0.2, hhvm-3.6.1 - 3.11.0](https://3v4l.org/KEW5p) ] float(1234500000)
int(1)
int(123)
int(83)
 
intval() is awful
 
4:07 PM
image exponential notation in hex... which e would be which?
and would it still be n*10^m or change to n*16^m
 
@PaulCrovella we won't support it
C's printf() can output it though
maybe C can parse it, let me see
oh, C can!
but only in C99 or C++ o.O
> A 0x or 0X prefix, then a sequence of hexadecimal digits (as in isxdigit) optionally containing a period which separates the whole and fractional number parts. Optionally followed by a power of 2 exponent (a p or P character followed by an optional sign and a sequence of hexadecimal digits).
@Paul ☝︎
 
@Danack Nope not yet. To be implemented
 
@Andrea I... no. Let's just go with your first thing please.
 
yeah, I didn't say we'd implement that :p
 
the numbers I'm picturing are starting to look like valid perl
 
4:24 PM
!!version
 
!!eval $names = ["Machavity", "Andrea", "Danack", "salathe", "PeeHaa", "Paul", "kelunik"]; foreach ($names as $name) echo "@$name ";
 
haha
 
[ Output for 5.4.12 - 7.0.2, hhvm-3.6.1 - 3.11.0 ] @Machavity @Andrea @Danack @salathe @PeeHaa @Paul @kelunik
 
@Jeeves why you mention me :<
 
4:31 PM
@Andrea I think he likes you
 
!!eval echo str_repeat("@" . "Andrea ", 256);
 
I think she's trying to break chat now :P
 
Doctrine query: 86 seconds. Hand written query: 0.02 seconds. Hooray for ORMs
12
 
or trying to really annoy that other Andrea
 
4:33 PM
!!eval echo base64_decode("QE1hY2hhdml0eSBldmlkZW50bHkgaGUgZG9lcyE=");
 
@Andrea chat line length limits also apply to Jeeves^^
 
I think I might have hit a rate-limit
@bwoebi aha
 
@Leigh blame @Ocramius
 
@Andrea yes, looks like
 
Nah, I'll blame the fixation on generic tools to do specific jobs
2
 
4:35 PM
Depends on what they are doing in the hydration of that query, @FlorianMargaine.
 
why doesn't Jeeves like me any more :(
 
@Ocramius I'll be honest, I don't even know what "hydration" means in that context. I just fix things.
I've never (consciously) used Doctrine
 
@Andrea just had a thought... let's write a php interpreter in js for @Jeeves
 
@Leigh that's just propaganda that is perpetuated by those relics who are not willing to get with the times
 
@Leigh people just need to RTFM :-P
 
4:37 PM
so that he doesn't need to send a request for every eval
 
I just RTFQuery and say: "filesorts are bad, mkay"
 
basically, what I am trying to say, @Leigh, you are a filthy liar and should shut op or I will report you to CoC tribunal
 
@tereško I think members of the CoC "tribunal" should be called Knights
 
@Leigh wondering if it had to do with pagination then :P
 
4:39 PM
@Leigh Knights of The Double-Clawed Elephant
3
 
@Ocramius It absolutely did :)
@Andrea no.. CoC Ks :x
 
@Andrea Andrea … why … Andreeeeeea … ;-D
 
@bwoebi :D
you should see the JS it generates
 
@Andrea that can be abbreviate to "Knights of DouKE" ... thought, I would have used s/Double/Digital
 
4:41 PM
@Leigh yeah, we generate kind-of a generic query that is supposed to work everywhere, but isn't efficient
that code is riddled by compatibility mess because you know, people thought SQLServer was a good idea.
and MySQL breaks compat in minor versions anyway. ¯_(ツ)_/¯
 
@Andrea so, basically inlined VM … If you push that to the extreme, you'll be faster than php-src if compiled down to asm.js compatible code :-D
 
@bwoebi code size, though :)
cache locality will kill it
 
don't know.
 
maybe I'll make ElePHPants Love Coffee actually usable someday
for now it's this horrendous hack :)
for starters it needs actual access to the opcodes
parsing phpdbg output doesn't work that well
 
true
 
4:45 PM
@Andrea surely parsing the AST would be better than parsing opcodes?
 
Sara has an extension for that, but it's not been ported to 7
 
s/parsing/walking/
 
@Leigh yes, but I'm lazy :D
this approach is inefficient but produces behaviour that matches the Zend Engine
 
ok , HALPE!
 
?
 
4:48 PM
well, not "test" (since I wouldn't be having a unit test for that specific method) but "cover"
 
well, put a function named php_sapi_name() in the namespace?
 
@tereško mock isCLI?
 
that's what I am doing now
 
or bwoebi's suggestion
 
4:50 PM
but I really dont like it
 
Do it, refactor if you get a better idea =)
 
@tereško short of actually running it in CLI/not in CLI, this is the best approach
 
nah, but there's nothing much better :-/
 
@bwoebi =p well that's solved then
 
you people are completely useless
 
4:51 PM
hehe
 
@tereško no, you just shouldn't cover just to cover
 
.. and someone flagged it
 
STOP FLAGGING DAMMIT
 
@tereško get rid of isCLI and give those array indexes sane defaults
so it doesn't matter if they are used
 
well, that's an option actually
I think I will go with your idea, @Leigh
 
4:55 PM
Or if it's PHP7+, ?? it
 
yeah , unfortunately it's 5.5+
 
moe
Has any coded in Symphony for DB2?
 
There are other SAPIs where those indexes aren't populated. So a check for "cli" still leaves edge cases.
 
it makes news when your isp is down. be thankful for that.
 
5:00 PM
> The key part to this role is to modify a pier to pier application
Job must be in Brighton.
 
posted on February 02, 2016 by nlecointre

/* by d4b0urn4 */

 
@PaulCrovella You'll note he's using the Internet to complain about the Internet
 
intermittently connected at the moment ...
 
5:24 PM
@JoeWatkins sometime I get a feeling that from two of us you are the one living in third world country
 
@tereško wait… Great Britain is being a first world country?! They're speaking English over there, just like in the US … Must be third world … (j/k)
 
there is that, yeah
btw, what are the build times for TravisCI these days?
 
@tereško typically about 3 x as slow as locally
 
no, I mean the queues
 
depends on time of day
At 3 a.m. no queue at all
At 7 p.m. it can take ten mins
 
5:30 PM
that seems to be the case
 
 
1 hour later…
ugh .. that reminded me why I don't have a TV
 
yay
but they got it wrong .. it was not a XSS..
 
what was it?
 
@RonniSkansing \o/
 
remote code injection?
 
7:09 PM
Now when people google for wordpress your name will come up! :P
 
it was a CSRF which triggered a SSRF which could also send requests via. 0.*.*.* for internal scanning
I havent seen the patches yet, so I will wait for more specific vector until I read it =)
@PeeHaa well it's my seconds contribution to wp
 
anyway, I am starting to loose consciousness ... so .. see ya kn the morning
 
What was the other one?
 
The all time favorite plugin
 
Besides the toilet plugin :)
 
7:11 PM
buh
=)
 
Ah :)
@tereško later
 
@tereško later
 
@bwoebi After the spec path, will the table be even smaller than before (because we don't have to create all elements if only one operand is specialized)?
 
@NikiC indeed. But it's not that significant, most opcodes use both ops
 
o/
 
7:16 PM
@bwoebi it's still good (from conceptual point of view at least)
But man is zend_vm_gen ugly...
 
@NikiC In my original patch I also had reduced vm_gen.php a bit: github.com/php/php-src/compare/… (up to line 475 on the right side)
 
@bwoebi yeah, much duplication there
 
@NikiC I think I'll apply that small change once Dmitry approved the main patch
 
does a mapper "map" or "mapp"?
 
@ErikLandvall map. There is no word mapp.
 
7:26 PM
(y)
 
7:49 PM
@bwoebi Do you think an RFC for 7.1 to throw an exception if a user function gets too few arguments would pass?
current behavior is to throw a warning and leave the argument variable undefined
 
I'd vote for it.
Well, maybe not for 7.1.
 
I'm only interested if it's for 7.1
 
I don't know. Doesn't this depend on whether the function is defined in C or PHP?
 
I mean user function
 
The behaviors are different, aren't they?
 
7:50 PM
For internal functions our behavior is still somewhat "reasonable"
 
I'd support RFCs that bring them in line.
 
Namely we throw a warning, but we don't actually run the function
 
(Favor whichever is more draconian)
 
But for user functions we throw a warning and still execute the function, which is just effing stupid
 
@NikiC I'd like to see consistent behavior here, and both an exception
not sure if it would pass; It's likely that it'll be quite a few no-votes, but I don't guess it'll be enough to make it fail.
 
7:52 PM
Similarly, I'd like to guarantee that $this is defined in a method
 
@NikiC it isn't?
 
nope
 
static calls?
 
static calls or reflection closure rebind
or to be more precise, I'd like to guarantee that $this is defined in methods that use $this
 
well, feel free to fix that … There are a bunch of things I'd like to see fixed but don't really want to do the bureaucratic way via a RFC :x
@NikiC You still shouldn't allow static calls into non-static methods even if they don't use $this, IMHO.
 
7:56 PM
@bwoebi we shouldn't, but that would cause BC issues with PHP4-ish code
 
@NikiC oh?
is static new in PHP5?
 
I think so
 
@NikiC What you could do.....is update the manual to say that......and then in a couple of weeks fix it as a bug......because it doesn't do what the manual says.....
 
@NikiC in case it is, then just deprecate it and remove it like for next major
(at which point PHP 5 will be about 15 years old, …)
I just realized we'll actually support PHP 5.6 longer than 7.0 …
 
8:19 PM
we are terrible at this ...
good job it's not important stuff ...
 
@tereško on a somewhat related note I just learned about cumsum()
Related part II cumpaste()
r is strange :P
 
what's strange about cumulative sum/paste?
 
Google it (hint: nsfw)
 
blah
 
Also no idea how I ended up with r
 
8:28 PM
for cumsum I find nothing strange
 
hmm might be a search bubble
@FlorianMargaine have you worked with angular?
I concluded I suck too much at javascript to make anything decent that can hook up with amplify @bwoebi
 
@PeeHaa why do you need JS for that?
@PeeHaa also, I thought you wanted to create an Aerys framework, not a JS one?
 
I want to try to create an MVC framework so I really need both
 
@PeeHaa you do? hmm
 
Yes. Otherwise letting the view observe the model is going to be hard
 
8:35 PM
@PeeHaa you're wanting to do a single page application?
 
s/application/framework
 
@PeeHaa yes…
@PeeHaa Also, the view won't quite observe the model, but the model push onto the view?
 
Same thing to me :)
 
Anyway, can't be that hard to do that bit JS…?
 
Cheers!
 
8:40 PM
I have been at it for two / three days and I just end up reading on the newfangled ESx stuff and get confused
 
@PeeHaa you basically want to do two frameworks … one for the JS stuff and one for the Aerys stuff?
@PeeHaa then use the good old style? :-)
JS like you learned it 5 years ago ^^
 
My good ol' style tends to end up in a pile of unmaintainable spaghetti
@bwoebi Yeah kinda. I like angulars live bindings so maybe I'll just use that
but angular seems like a lot more than I actually need
 
@PeeHaa yes, why?
 
@FlorianMargaine What's the verdict? And are there other libs like that that I should look into?
 
8:46 PM
@NikiC I've never heard of Chromodo until now…
 
@bwoebi But you likely heard about Comodo
 
@PeeHaa I'm not a fan of it, but it works nicely in the workplace
@PeeHaa you can also look at react, it's all the rage
 
Basically just another malware distribution company (aka anti virus)
 
hehe
 
@FlorianMargaine JS people are jumping faster on things than php "MVC" frameworks are being cerated
 
8:50 PM
@PeeHaa well, angular has some fair maturity, and react is getting old too
@NikiC isn't it komodo?
@PeeHaa angular dev is all on angular 2 which isn't out yet afaik, so I'd go with react today
 
@FlorianMargaine I think komodo is the one doing IDEs
 
> and react is getting old too
Stable release 0.14.7 / January 28, 2016; 5 days ago[1]
:P
var CommentBox = React.createClass({
  render: function() {
    return (
      <div className="commentBox">
        Hello, world! I am a CommentBox.
      </div>
    );
  }
});
That looks icky to me
 
@PeeHaa I can see some releases going back to 2013
 
Yeah, but still calling a 0.x release old :P
 
node was in 0.x for years...
 
8:55 PM
MovingTarget++ :-)
 
I admit I'm not a fan of this numbering :)
but hey, if there's no breaking change, no reason to upgrade the major, eh?
 
But if it follows semver 0.x means everything can and probably will change
 
that says something if there has been no major bc change in 3 years
heh, fair :D
 
It kinda reminds of the old google projects where stuff was in beta for decades :P
reason should be clear
/ any reason will do :D
 
^ Genius
 
9:06 PM
@Jimbo funny.
 
@bwoebi Sarcasm or...?
 
@Jimbo not sure.
 
lol
 
9:32 PM
ah it has been fixed to SSRF.. thats more appropriate
 
@RonniSkansing how did you find it?
 
CSRF to SSRF
 
I meant how did you discover the vulnerability?
 
oh lol
well I do "bug program" and had consider looking at wp.. but @PeeHaa had this wp7press delete all thingz project,, when I started to look for something to delete... I found this
when I saw the code, I popped up burp and tried a couple of things.. worked straight away..
in a unintended way
 
@JoeWatkins I have a successful Windows build. Decided that I'm going to ensure that all structures preserve relative order rather than doctor the tests.
 
10:03 PM
@PeeHaa The XML literal is allowed?
 
@LeviMorrison it's JSX, you have to run the code through a build tool
 
10:53 PM
@NikiC lxr.php.net/xref/PHP_MASTER/Zend/zend_vm_def.h#4858 shouldn't that be also ZEND_ASSERT(EG(exception)); HANDLE_EXCEPTION(); instead of next_opcode_check_exception?
 
@bwoebi Likely. At least I don't see how it can be null without throwing
also we should move that assertion into HANDLE_EXCEPTION
 
true
 
3095
A: What is the maximum value for a int32?

Ben HoffsteinIt's 2,147,483,647. Easiest way to memorize it is via a tattoo.

 
lol
 
ha, I haven't seen this thread before
 
10:59 PM
I find it much harder to memorize the maximum value of uint64_t
I … I should stop reviewing zend_vm_def.h …
Bobs-MacBook-Pro-2:~ bob$ ~/php-src-X/sapi/cli/php -r 'try { set_error_handler(function() { throw new Exception; }); [$foo => new class{}]; } catch (Exception $e) {}'
[Wed Feb  3 00:06:28 2016]  Script:  '-'
Zend/zend_vm_execute.h(21899) :  Freeing 0x107C583C0 (56 bytes), script=-
[Wed Feb  3 00:06:28 2016]  Script:  '-'
/Users/Bob/php-src-X/Zend/zend_hash.c(140) :  Freeing 0x107C5EC80 (288 bytes), script=-
[Wed Feb  3 00:06:28 2016]  Script:  '-'
/Users/Bob/php-src-X/Zend/zend_objects.c(162) :  Freeing 0x107C63AA0 (40 bytes), script=-
Too many ways to make PHP leak :-/
I totally don't get how we hadn't found these leaks when adding live ranges…
 
11:32 PM
@Elenasys yip, is accessible … though I don't understand a word :-D :-D :-D
 
Is there also a StackOverflow for IAP?
 
@NikiC I is for indian … the rest I don't remember^^
 
so uh
I think I'm going to write an API
 
good evening Andrea :-)
 
What microframeworks do you like
@bwoebi hi :)
 
11:34 PM
@Andrea Aerys.
 
@bwoebi heh
 
(actually not quite a microframework, but its API is microframework-like)
 
that requires me to care about not having the process die
I'd rather just use nginx and php-fpm
 
@Andrea not quite, the server (in production mode) will restart automatically
 
@bwoebi oh, cool
still
 
11:36 PM
it's using proc_open() and then restarting when a worker fails.
 
thoughts on Slim vs Silex?
 
@Andrea what, still? :-D
 
@bwoebi well, even with it automatically restarting, pages being able to crash the server and kill other requests isn't good :p
 
@Andrea well, you'll only ever restart if you encounter a hard fatal
 
hmm
Slim's website is prettier, I'll use Slim
@bwoebi true
 
11:38 PM
and since PHP 7.0 there's only very few things fataling
 
yeah
 
if you get an E_ERROR in PHP, it's probably an exception in __toString() or an out of memory (which you can btw. disable)
 
Ooh, Slim uses NikiC's router :D
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing container-interop/container-interop (1.1.0)
    Downloading: 100%

  - Installing nikic/fast-route (v0.6.0)
    Downloading: 100%

  - Installing psr/http-message (1.0)
    Downloading: 100%

  - Installing pimple/pimple (v3.0.2)
    Downloading: 100%

  - Installing slim/slim (3.1.0)
    Downloading: 100%

Writing lock file
Generating autoload files
I'm impressed by how few dependencies that is
@bwoebi I like PHP's memory limits, I'm glad they're there by default
In Python or Haskell you can hose your system with the pow operator :)
 
@Andrea yeah, they're nice.
@Andrea Also, we have a register_shutdown_handler(), which is still executed … so, only double fatals really kill it, else it's just a graceful restart.
 
:)
 
11:43 PM
So, you'll be pretty safe with Aerys [nah, seriously, just try it at least ^^… It's also using Nikitas router :-P]
(Well, isn't it originally Levis router which Nikita adapted and extended a bit?)
@Andrea ajf\Space\Cutie :-)
 
@bwoebi hah
that does fit the DNS hierarchy :D
 
which is why ;-)
@Andrea I really need to work a bit on how to praise Aerys … I can't believe you aren't persuaded by now :-(
 
@bwoebi Aerys is pretty cool for sure
 
@Andrea well, that's the issue
 
I guess I want to stick with what I know works
 
11:48 PM
it's just cool, but nothing anybody would ever use :-/
 
I could port it to Aerys later...
Especially if I need WebSocket
 
@bwoebi what do you use it for?
 
@Andrea Well, I maybe should add a microframework compatibility layer for simple HTTP requests with the same API than Aerys
@PaulCrovella well, I personally haven't written a single project on top of it … but there's dev.kelunik.com
I really haven't had any really interesting idea I'd use Aerys for …
 
I'm writing a Twitter clone, so I'll probably end up using Aerys for WebSocket
 
@Andrea with stars and a 140 char byte limit? :-)
 
11:52 PM
@bwoebi 140 limit yes, but using the same rules as Twitter (codepoints in some specific normalisation form)
 
@Andrea well, there's a reverse proxy for Aerys, but it'll be easier going to websockets when all your internal code is already using Promises for I/O.
 
@Andrea you wanted to link to the news entries?
 
@bwoebi I'm pointing out you can find them if you google me :p
 
@Andrea I hope you didn't forget to turn your access logs off before your disk is full :-D
 
11:56 PM
but yeah my server's received a lot of load recently
@bwoebi they're not consuming disk space too quickly
quite big but it'd take weeks to fill with current traffic
 
@Andrea I don't know your actual traffic volume
 
:)
 
if it's 100k req/s, it's going to fill up very quickly…
 
> System information disabled due to load higher than 1.0
 
if it's "only" 10 req/s, not so much^^
 
11:58 PM
@bwoebi hah, nowhere near that, my lowly server probably wouldn't be able to handle that anyway :)
 

« first day (1935 days earlier)      last day (3013 days later) »