« first day (2028 days earlier)      last day (2920 days later) » 

Anonymous
2:10 PM
I always read it as crack joe
 
switch ([$argc, $argv[1] ?? '']) {
    case [4, '-phpdbg']:
        $phpdbgPath = $argv[2];
        $infile = $argv[3];

        $reader = new PHPDbgOpcodeReader($phpdbgPath);
        break;
    case [3, '-inspector']:
        $infile = $argv[2];

        $reader = new InspectorOpcodeReader;
        break;
    default:
        echo "Usage:", PHP_EOL;
        echo "    Using Inspector extension (github.com/krakjoe/inspector):";, PHP_EOL;
        echo "        main.php -inspector <infile>", PHP_EOL;
is this beauty itself or what
 
samayo I think that is what it says
 
$ ~/Projects/2014/PHP/php-src/sapi/cli/php src/main.php -inspector test.php
Segmentation fault: 11
@Joe Inspector must be segfaulting for me, I'm probably doing something wrong
anyway
imma go eat ^^
 
anybpdy here with pdo firebird experience?
PHP message: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [335544352] no permission for read-write access to database /var/www/gshotel.fdb' in /var/www/connect.php:3
this is the error i am getting
but i can't find anything wrong
 
Well what do the permissions look like?
 
2:20 PM
user in firebird is set with all privileges granted
 
And the database file itself?
 
-rwxr-xr-x 1 www-data www-data 802816 May 5 16:09 gshotel.fdb
 
Is www-data the one aceessing the thing?
 
yes via a website
 
hi everyone.
 
2:21 PM
Is www-data in the firebird group?
 
hmm..
 
what's up?
 
let me check. i didn't add www-data myself
 
Can I nuke PHP?
 
@user3002233 It's a Pixar film
It's also a car made by Volkswagen
 
2:23 PM
@DaveRandom don't know what you're talking about.
write it in PHP.
 
@PeeHaa I have a zOMG uber-commit coming here I think, the log-in process needs a huuuuuuuuuuge refactor and it's one of those things that can't be broken up :-(
@user3002233 I don't know PHP, I write all my apps in brainfuck
 
Can you guys share your PHP website here?
 
@DaveRandom lel
 
Hi btw, I don't mean to seem unfriendly but I'm British so I have no choice
3
 
@DaveRandom modest.
 
2:26 PM
@user3002233 look at the SO profile of people in here
Most people don't have a site I think or they either don't work
 
I'm always suspicious of a developer with a working personal site
Suggests that they have enough time and care enough to make one, which suggests that they are unemployed
 
No-one likes a grass
 
@Saitama finally!
 
/brb smoke
 
2:28 PM
@user3002233 that's @PeeHaa's
 
@Saitama Yep. I'll consider that.
 
@DaveRandom The openid login thing or the ws auth thing?
Either way let me first push my plugin. Moment
 
Just gonna point out, for those who don't realize...
 
wow!
 
Anonymous
Now we know peehaa watches too much porn.
 
2:34 PM
Good job @PeeHaa.
 
!!version
 
@user3002233 ty
 
@PeeHaa the whole warm up routine really, it does a lot of wait() which we can't do for multi-room because we can't block the loop while joining a new room, plus need to fudge some data around to avoid a separate ChatClient per-room (which would be hard to manage and pointless). Anyway I'm a way off with it yet, might get it in this evening, will have to see how it goes. I'll let you know when I get to crunch time and I need to refactor the plugins (which will be quick)
 
2 messages moved to bin
 
2:35 PM
@PeeHaa Nice
 
inorite
 
ok, www-data was not in firebird group
i added it, rebooted but still no success =(
permissions in system are correct
 
@DaveRandom Great. Those waits were on my list somewhere. While you are at it decouple the http client from the openid providers because iirc I was hit by the coupling when I was abut to write tests for it
 
privileges to user are correct
 
I think it was the http client
Let me confirm
 
2:37 PM
Probably FKey
It does a weird abuse of DIC
 
Maybe that too, but it's the coupling of the providers in the client that bothered me
 
<?php

$db = new PDO("firebird:dbname=gshotel.fdb", "LUCKY", "dietpi");

?>
is this correct?
 
@Andrea send reproducing code, I'll look
 
@PeeHaa Ah yeh, there's a couple of news in there
 
@DaveRandom these are annoying me. Not just for tests, but it also prevents using other providers
 
2:40 PM
Yeh that should be fixed as part of this
 
Nice
 
Although I've not quite worked out how yet...
 
That's your problem :P
 
:-D
Also I agree, I think that FKey probably is "fucking key"
 
It's just full retard. BTW FWIW I'm still farily certain it could do with one less fucking key retrieval somewhere in there, but I didn't look at it yet to confirm
 
2:42 PM
It's always a great feeling when there are no major problems popping up after the first compile … :-)
 
No it's not. It's horrible. You missed something
Got to be
 
@PeeHaa Yeh there are two fetches of the main UI page in there atm I think
Luckily the chat fkey does not change, it seems to be global across the whole of chat.SO for a given session
 
@PeeHaa sorry, tests pass :-P
 
I was so frustrated when I finally got it and was too scared to touch it again
@bwoebi :-)
 
@PeeHaa Oh I didn't realise you wrote it in COBOL
 
2:44 PM
:P
 
Also @PeeHaa are you against having a functions.php? There's a lot of places where we do the whole libxml_internal_errors()/DOM thing and it looks like a good candidate for a bare function
 
I was just looking at changing that
 
GOOD
 
Sorry :P
 
:-D
k well I'll leave it for now and do a single commit with the function and all the replacements at once when I'm done
 
2:47 PM
cool
 
You guys are very active and busy.
 
Yeh, not with real work though :-P
 
hehe
 
I don't think so.
 
@JoeWatkins Can you remind me why test 71428.1 would give a warning if fixed and not a fatal error?
Is that what we do with all subclass violations?
I know the interface will fatal.
 
I'm forgetting PHP. I haven't written any PHP code in the past few months. Bad days.
 
We should unify that stuff in PHP 8.
Fatals for all.
 
agree, it's not nice ...
 
agree too
 
Ha, question: do I write "Fix bug #72119" even though we're not really fixing that?
In commit log, I mean.
I guess maybe "Fix bug #71428" instead.
 
3:01 PM
log for what ?
(I dunno what you are fixing)
 
I'm fixing 71428.1, 71428.3 and 72119.
 
as part of nullables ?
 
It's the BC inheritance break that was committed then reverted.
Yes.
 
that will be squished to one commit anyway
 
Uh... that should be a separate commit imo
 
3:03 PM
maybe but can you keep it at two ?
doesn't seem likely ...
 
At present I have one commit from Dmitry that adds return type code, one from me that adds it for parameter types and one that changes zend_inheritance.c for those bug fixes.
 
if you can keep it that tidy it's not so bad ... include both numbers if you are fixing both ... why not .2 ?
or leave that commit for after merging main patch ...
it's not part of the rfc is it ?
> If the union_types RFC is accepted then ?Foo will be exactly equivalent to Foo | Null.
:(
 
After rebasing on master this test is failing: Zend/tests/bug72162.phpt. Is that currently expected?
@JoeWatkins Sort of - if the RFC doesn't pass I'm not sure what will happen with that fix. It needs to go in.
 
yeah was just reading ...
 
It's just included in the RFC because Dmitry wants it to and I don't really care anymore. In principle I think it should be its own separate thing.
Like, I strongly think it should be its own separate thing.
 
3:12 PM
I can't find Zend/tests/bug72162.phpt
so, yes, it should fail :D
 
On master?
 
yeah don't see it
oh wait that doesn't list phpt
but I don't see it ..
(locally)
krakjoe@fiji:/usr/src/php-src$ ls Zend/tests/bug72162.phpt
ls: cannot access Zend/tests/bug72162.phpt: No such file or directory
 
ah
show diff ?
don't think it's supposed to fail
 
I get no output; that's the diff
No error.
 
3:19 PM
does it fault ?
 
$ sudo gdb --args ~/Projects/2014/PHP/php-src/sapi/cli/php
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin15.2.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@Joe Inspector causes this ^
 
reproducing code ?
 
@JoeWatkins 1) run the PHP interpreter
 
@JoeWatkins Usually I see an error on fault, yes? I guess I'll run it through a debugger if it persists after fully clean rebuild.
 
config line: YACC=/usr/local/opt/bison27/bin/bison ./configure --enable-debug --enable-phpdbg --disable-all --disable-cgi --enable-opcache --enable-inspector
 
3:22 PM
got SPL ?
 
@JoeWatkins SPL can't be disabled IIRC?
 
@JoeWatkins SPL is always compiled
 
@LeviMorrison Not surprising ... Xinchen's fix makes about zero senes
 
@NikiC yeah I totally can't get what that commit is doing
 
@JoeWatkins The actual issue is that err is assumed to be a long. The commit is just ... unrelated :D
 
3:24 PM
@Andrea hmm, I'll try a static build ...
 
lemme fix it...
 
@JoeWatkins looking at the gdb output looks like a NULL deref issue
notice the iface=0x0)
 
yeah you can see the iface is null
 
@NikiC Will you please ping me when you have fixed it? Thank you.
 
which is really odd because the only time I call zend_class_implements with with builtin classes :s
 
3:26 PM
:S
 
also, CI manages to run all tests against 7.0 and 7.1 and so can I ...
 
huh
 
maybe there's a bug in PHP-7.0
 
fetching, pulling, rebuilding, beavering ...
(wouldn't that be in nightly also ?)
 
3:29 PM
maybe opcache broke it
 
krakjoe@fiji:/usr/src/inspector$ php tests/001.phpt
--TEST--
Inspector tests (basics)
--SKIPIF--
--INI--
opcache.enable_cli=0
--FILE--
RECV                    -               -               $a              -
RECV                    -               -               $b              -
ADD                     $a              $b              T1              -
RETURN                  T1              -               -               -
--EXPECTF--
RECV%w-%w-%w$a%w-
RECV%w-%w-%w$b%w-
ADD%w$a%w$b%wT1%w-
RETURN%wT1%w-%w-%w-
spl_ce_Countable is null
spl wasn't loaded yet, I didn't declare dependency on spl in ext ...
 
@LeviMorrison fixed
 
Thanks.
 
Are there any online PHP evaluators that support writing PHPUnit tests?
 
3:36 PM
@Andrea fixed
(also woops)
 
I'd appreciate a code review on the Nullable Types PR.
Still missing tests for ? interacting with = null in inheritance. That's the only thing I am aware of.
 
@JoeWatkins thanks!
@Joe yep that fixed it ^^
 
cool
 
$ ~/Projects/2014/PHP/php-src/sapi/cli/php src/main.php -inspector test.php
object(Inspector\File)#4 (0) {
}

Fatal error: Uncaught Exception: Implement me in /Users/ajf/Projects/2015/ElePHPants Love Coffee/ElePHPants-Love-Coffee/src/InspectorOpcodeReader.php:15
~progress~
 
3:53 PM
lol @FélixGagnon-Grenier
 
@LeviMorrison There isn't much to review… :-D looks good
...
@Levi what about class A { function foo(); } class B extends A { function foo(): ?int; } … isn't this missing a check for proto->common.arg_info[-1].type_hint in that if? github.com/php/php-src/pull/1893/…
That's the only thing I could find
 
@PeeHaa hehe
 
anyone use password managers
 
keepass
 
I have a hard time managing my passwords =)
 
4:06 PM
@FélixGagnon-Grenier :P
 
lastpass. Yes, giving your (supposedly client-side-encrypted) passwords to a third party feels iffy, but the convenience can't be beat.
 
Having the plugin running also seems.. yea. it kinda freaks me out
but constant resetting or using variants of the same password is just too weak.. its like my gmail has become a backdoor to everything
 
keepass at least has plugins. It's a good alternative, you just don't get mobile and you need to figure out sync for it. Last I checked using it with dropbox had some problems with concurrent use or something
 
@Wes ping
 
even with strong passwords on services, if your gmail is your "reset your password" email, it's still the single master key.
so use a super strong password for it, and use 2FA.
 
4:14 PM
o/
 
!!chuck
@Saitama did you write that ^?
What's the status of it?
 
Afternoon internals,

    We are hoping for alpha one to be available on June 9th, this is a little over 5 weeks away.

    Beta one (~one month after alpha one) on July 7th will be our feature freeze date. - no new RFC's can target 7.1 after this date.

    PHP 7.1 has many things targeting it at the moment, some overlapping, all of them in various states.

    So that there is time to merge upcoming RFC's, and allow the dust to settle during alpha stage, we need to require that anything that does not have an implementation by the time beta one comes be pushed back to 7.2.
proof please
 
!!version
@PeeHaa Jeeves is dead?
 
!!version
 
@DaveRandom yes... I did... did, it turn out to be not working?
 
4:17 PM
does that read okay to you chris
 
@DaveRandom I actually added it to test things out... and removed it during the PR of the !!google but I was suggested not to edit it at that PR, because it was unrelated...
and, I forgot to delete it after that...
 
@JoeWatkins "require" seems wrong, maybe "ensure" or "insist"?
 
insist
good thnx
then ok ?
 
Also @JoeWatkins "alpha one" and "beta one" reads weird, I'd prefer alpha1 etc
 
4:21 PM
or should I write seven point one and seven point two ?
:D
 
:-P
 
with beta one to be followed by xbox one
 
@Saitama k, so it should work if I remove that line?
 
> So that there is time to merge upcoming RFC's, and allow the dust to settle during beta stage, we need to insist that anything that does not have an implementation by the time beta one comes be pushed back to 7.2.
also that
 
@bwoebi Handled below, I believe: github.com/php/php-src/pull/1893/…
 
4:23 PM
@DaveRandom I made a pr, removing that line :) github.com/Room-11/Jeeves/pull/47
 
k cool
 
:D
 
I've just done another uber refactor of doom so I'll see how that plays with the merge, might need you to resubmit it after the push but I'll see whether git likes me @Saitama
 
@DaveRandom lol k.. np ;-)
 
@JoeWatkins "RFC's" shouldn't have the apostrophe
 
4:26 PM
crap
too late
 
c'est la vie
 
gratz, you earned yourself a direct ping next time @PaulCrovella
 
and June 9th is exactly 5 weeks away, not a little over
 
I've never used a calendar so much, turns out, I'm not great at it ...
 
huehue
 
4:28 PM
@DaveRandom uhhm I did just pull...
 
@LeviMorrison hmm?
may you add that as test at least then?
 
I'm getting ch8nese now. Will look when home
 
@PaulCrovella yeah, it is ... two pings now ...
 
@Joe any objection to adding Scope::getLineStart()/End() for getting line_start and line_end?
 
none at all, do whatever you fancy (and is sensible/useful)
 
4:29 PM
great :)
 
I'd keep going but I suppose there's not much point. I can't handle more than 2 pings at a time anyway.
 
3 ... no 4, for smart assery ...
:D
I'm terribad at comms with humans
 
okay installed a password manager, now only a billion random passwords to change
 
80% of the time I answer stuff with code or links to code ...
 
@JoeWatkins heh
 
4:32 PM
I can't not read PeeHaa's starred message as "2 associative arrays are a lie"
 
fixed
 
thanks. that helps.
 
@kelunik so, the problem with using the interface is that the option constants are on the class (re. artax)
They need to be on the interface really, at least the non-impl-specific ones
 
I have this string, after serializing an object: string(131) "O:32:"Leloutama\lib\Core\Router\Router":1:{s:9:"\000*\000Routes";a:1:{i:0;C:31:‌​"Leloutama\lib\Core\Router\Nodes":17:{:140571216045952:}}}" And when I try to deserialize it, it just fails...
any idea why?
 
Anonymous
4:45 PM
; ??
 
Anonymous
Ah, never mind.
 
@Saitama the :140571216045952: part looks not right
 
Anonymous
Hmm, what is "fastly error"? githubusercontent.com
 
C:31 indicates there is a custom serialize handler involved
 
@NikiC pthread's serializer?
 
4:46 PM
oooh
In that case ... don't ask me ^^
 
:P
 
I think fastly is a cdn
 
Anonymous
Its a CDN site, but for G-d sake, have some index page
 
for an error?
 
Anonymous
Nope, just for the domain, like a home page that explains it's a cdn
 
4:54 PM
@Saitama what does "just fails" mean ?
 
@JoeWatkins Computer turns off.
 
I dunno.. I dont get any error message... tbh... The program exits with the exit code of 0
 
@NikiC lol
@Saitama everything sounds fine :D
 
Oh well, my guess was pretty close
 
@JoeWatkins umm... I actually try to var_dump the unserialize-d thing... but it never happens...
 
4:56 PM
if you can reproduce with simple test case, I'll have a look
 
K, wait...
 
@Sara hehe
 
can phpstorm use phpdbg
 
not so much
 
4:59 PM
Just had a recruiter email me to see if I'm interested in a 6 month contract to work on Laravel.
Seriously considering responding with:
No, I am not interested in contract jobs while I have a full time job.
I am also not interested in Laravel while I have any employment, even contract jobs.
I am not interested in people who think that Laravel is MVC, regardless of my employment status, because I like to be employed by people who base their thinking in reality.
 

« first day (2028 days earlier)      last day (2920 days later) »