« first day (1641 days earlier)      last day (3531 days later) » 

13:00
I'm buying the game once the launch is over and bugs are fixed
twitter.com/needadebitcard you'll see far more dangerous things people do
you can see front and back sometimes
ppl are stupid
> I have a new debit card!!! my last one was overused idk why...
lol... went ahead to post a picture of the new card
also a classic, ppl not checking possible reflection on things and ending up posting pictures of themselves in underwear etc.
user895378
@PeeHaa yes it's in releases somewhere. Not sure which bugfix numbers had it
@rdlowrey Did you see all the recent bug reports wrt ssl streams?
user895378
@NikiC ugh, really? Again?
user895378
13:13
So: no.
@rdlowrey There have been quite a lot of bug reports against 5.6.7
user895378
I think I need to just stop trying to fix all the non-blocking ssl behavior and let it stay broken because every time I do it screws up something else.
@rdlowrey tnx will hunt them down and update docs
user895378
Okay, the first two are easy to fix. The third is already fixed and just wasn't merged in time for the 5.6.7 release.
Anonymous
13:17
@MarcelBurkhard are there any retailers that allow buying PCs based on installment plans?
Anonymous
I have F-Permit, so I don't know what my options are.
@samaYo why would you do that? ...
Anonymous
@Patrick Too broke to pay upfront.
Anonymous
And I really need a new PC asap :/
Ask around if someone has an old laptop?
That should still be good enough for anything except gaming
13:21
@samaYo I'm not familiar with borrowing money and I don't know what the options are
you can get a cheap one temporarily (that's what I'm doing)
Borrowing money for a computer sounds like a really horrible idea
Anonymous
@MarcelBurkhard Not borrowing money, just paying small fee for upto year or more instead of paying everything upfront
@samaYo well I mean spending money you don't have
I'm sure you can find even cheaper ones on ricardo
13:24
That guy buys used hardware from companies
Anonymous
The problem with buying a used pc/laptop is not knowing how long they can last.
Anonymous
I have seen people who were scammed that way, so I put my faith on a new one with warranty
auctionline is trustworthy, I've bought from them before and I know the guy around 2 corners
Anonymous
@Patrick That is certainly affordable, but for that price and spec, I would definitely hold on for a new dell xps
If you can't afford it, don't even look at it
Going into debt for anything other than something that will make you more money is just stupid.
13:30
a computer will make you more money :P
@iroegbu Not if a cheaper one does the job
get a cheaper one then... buy a better one when you can afford it
@samaYo Price/Value of this: http://www.auctionline.ch/alshop/prod/?id=23066&lang=ger
Should serve you quite well, throw a cheap ssd in it and you got a nice dev machine
Anonymous
@Patrick Given my current laptop is pretty much sucking the life out of me, let alone to be productive ... I would say it's a fair trade
you might wan't to uninstall unused software and remove programs from the startup
13:34
Does anyone know what filters.php in laravel are for?
Anonymous
@MarcelBurkhard definitely. just checked out notebooks page also. pretty decent price.
Nvm i think I found "Route filters"
@samaYo What are the specs?
@BenBeri they are filters applied before/after the routing
Anonymous
@Patrick greater than 4GB ram, with SSD and I would buy it in a second.
13:40
@samaYo i mean your current
Anonymous
5 years old HP ProBook 4520s Core I3, 2GB RAM and 32bit.
Anonymous
I can't even go to the library with this crap, because the sounds it makes, makes me feel ashamed ... [I have been told] .. it sounds like it is ready for takeoff :)
@samaYo how much budget do you have? ( sorry if already posted, i joined not much time ago )
Anonymous
tbh ~ 150
per month?
Anonymous
13:47
@MarcelBurkhard Yes.
@samaYo I have an old one that has 4Gb ram I think. No idea about the other stuff. But I played some tf2 on it so it can't be too bad
Worked on it a few months while traveling
Anonymous
@Patrick Details?
Anonymous
Like mine?
I can check when I am home
Are you ever in zurich?
user895378
@NikiC on the bright side, those bugs were introduced by someone not me ;)
Anonymous
13:50
@Patrick Nope, I'm mostly in Lausanne/Montreux but feel free to let me know here anytime.
Oh, it has a german keyboard by the way
user895378
The problem is that non-blocking ssl streams have been somewhat broken for years and there are exactly zero test cases covering their functionality. So now when people try to fix things you never know if you've broken something else. It's not fun.
Anonymous
@Patrick Oh, couldn't even get used to Swiss keyboard, but no problem. I have a wireless keyboard.
Anonymous
@Patrick What brand is it?
@samaYo ping me some time after 7 and I can check
Anonymous
13:53
@Patrick will do
@Worf my computer battery died last night, couldn't reply anymore :P the latter for sure, the name should be enough to know the intentions of the callback. I don't do much distinction between calling it interface, but maybe callable interface sounds better?
abstract class Config {
        private static $arIni;

        private static function __static() {
            $self::$arIni = parse_ini_file('config.ini');
        }

        public static function getHostname() {
            return self::arIni['hostname'];
        }
    }
...
I know we shouldn't be exclusionary - but some people shouldn't be allowed to write RFCs.
10
I don't like that __static() thing
Anonymous
13:57
@marcio didn't know it existed till now.
Anonymous
/ goes to php.net to check
user895378
@marcio me neither
@Danack Seriously, the feature is crappy in intent but this syntax is at least more manageable:
@samaYo It doesn't and it won't.
abstract class Config {

    private static $arIni;

    static {
        $self::$arIni = parse_ini_file('config.ini');
    }
}
13:58
@LeviMorrison this feels more "organized" but I still don't like it
Anonymous
On a side note, $arIni ?? wtf
Hungarian ftw? :0
@LeviMorrison static constructors?
@DanLugg Basically, yeah.
public static function __constructStatic() {
    // just follow the existing convention
}
lol
Anonymous
14:00
@LeviMorrison Since when does an abstract class have a constructor?
Anonymous
This better not make it to 7
@samaYo Since always?
@DanLugg Except it cannot be called in user-land.
It's not even a function, really.
It's just a block of code that gets executed immediately after class definition, and only then.
class MyClass {

}

// my code, if this gets executed twice, learn to autoload
Anonymous
I mistook the fact, that abstract class can not be instantiated meant, it didn't have __construct(){}
14:02
Or are we thinking of preloading classes as a package?
Oh, but visibility
@LeviMorrison Couldn't I simply put some code after the class definition to achieve the same (in a less obvious way with more code, but without a new language feature). (Roughly: gist.github.com/anonymous/30d78c0ed04f5a026709)
Sure. The issue from their perspective is that it cannot access class privates.
@DanLugg That would fail if loaded twice, since you are redefining a class ;)
@AustinBurk Guessing wildly, you probably want to find out which of your queries are going to FILE intermediate results i.e. not being done in memory.
@LeviMorrison 3v4l.org/qSigW
14:06
@Rangad There are ways around it. Your particular example would be annoying for anyone who does reflection of classes as just loading the class would execute code.
Good mornink
@DanLugg The only sane reason I can think of using static constructors for is a user-land enum implementation… except we should just have enums and I'm working on that ;)
^^ Good sauce
Should be sometime this week when it hits the list for discussion phase.
Good morning evrbdy!
14:07
@Danack Actually, it was this :)
@LeviMorrison the rebound static closure should be a reasonable workaround for now.
Although some native syntax would be cute
@Danack I'm not saying that this is good practice(my example), but you are right, thanks for highlighting it ;).
(static bound(MyClass) function () {
    // self == MyClass
})();
@DanLugg oh god
lol, you know you love it
14:12
(static MyClass::function() {
    // self == MyClass
})();
user895378
@DanLugg should I have my optometrist send you the bill for fixing the massive eye hemorrhaging I just experienced?
oO???
@rdlowrey lol
update table set anImportantValue = 0; anotherImportantValue = 1 where rowID = 1234;

That's not a good way to start your day..
why are you using static anonymous functions anyway? They should go away
14:14
lol, I know, I'm a huge proponent of killing static closures
I was being a bit of a twat. that's all.
Apparently it worked on @rdlowrey
user895378
@DanLugg And here I was hoping your imminent marriage would soften those tendencies ;)
@rdlowrey lol, no, just exacerbated them :-P
user895378
hehehe
user895378
Sounds like you found the right girl, then.
;-)
We were gonna do Vegas, but now we're thinking of doing city hall and running off to Mexico for awhile
14:16
Can anyone help me? I need ssl on my CMS admin area/folder My provider/Host in phpinfo() states that openssl library is installed.. all set. What do I do? I researcher whole internet - nothing!
user895378
Both sound like good options to me.
user895378
found out this weekend I'm going to be an uncle. Now my mother will stop hassling me about not having any grandchildren.
9
Is it just some line i need to add in .htaccess file ?
you researched the whole internet? woa
that's impressive
> We were gonna do Vegas
Great porn title...
14:17
Yeah, now i know everything on heartbleed
@PeeHaa What happens in Vegas stays in Vegas but a few RFCs sometime result
And even more - SSL states for Student Service Learning as well
Why need to abbreviate ?
@animaacija But what about POODLE? And RC4?
In all seriousness, tho, if you want free SSL, switch to CloudFlare and make your own self signed certificate. blog.cloudflare.com/…
Padding Oracle On Downgraded Legacy Encryption.. ouh internet is free again
> micro-framework
I wouldn't call 70% of laravel micro
14:28
Gawd, they made another laravel thing?!
urrrrrggghhhh
Atleast @NikiC s fast-route gets some attention.
@Machavity Ouuuh my guts say not to trust cloud flare. Sorry for that. Btw i have no acces to CLI... im not there yet
$this->dispatch(new Energy($framework));
14:30
Well, what do you have access to? Plesk? cPanel? Some other control panel?
tcl uplevel just made me remember that "Nested enclosing returns" RFC.
I have only ftp access ..
But open ssl is installed on server
Does your FTP access give you access to the web server config?
@Rangad It's because it's good. See this: reddit.com/r/PHP/comments/32kajb/…
I know, I use it in two of my smaller private projects ;)
That message got away the wrong way in the context of laravel.
14:34
user image
3
Ordering imports by length is still something I'll personally never understand, though: github.com/laravel/lumen-framework/blob/5.0/src/…
class Application extends Container implements ApplicationContract, HttpKernelInterface
@Rangad HOLY MOTHER OF SRP
@Patrick SRP at it's best
14:40
@Machavity not that i know of. I have access to a folder which contains "web" <-SERVER dodument root folder| "private" and "ssl" <- empty folders
and ftp client forces to connect using ssl
@Rangad oh noes
that means even more bug reports of the "I have no idea what I'm doing, how do you use this" kind
user895378
Jan 19 at 15:30, by rdlowrey
The only thing worse than no one using your libs is people using your libs.
user895378
@animaacija ?
@ThW I succeeded, thx soooo much for your code it helped a lot :)
ThW
ThW
14:52
@MarcelBurkhard XPath is nice, isn't it :-)
yes it is
about as confusing as regex though :P
^ his reason why everything is in one class/file
@ThW oh and I unfortunetly I had to rewrite it to not use yield :( PHP 5.3.3
ThW
ThW
@MarcelBurkhard I removed the yield in the last link
@Patrick because class packaging isn't invented yet :P
14:56
@Patrick You should chastise him for using functions and classes then, because that gasp eats overhead!
@ThW are you sure? I used the last bookmark out of 3
@ThW oh well I must've missed that, sry :(
only had 04, 10 and 12
just so stuck ;( weeee
@animaacija Without access to a web server's config files you can't make it load a certificate
15:04
@Machavity thx a lot! srysly. So there i contact my provider. Is there anything i have to do PHP side regarding ssl secured admin login on site?? before i upload
I did another "book" answer:
9
A: Why can't you inherit from a not-yet-defined class which inherits from a not-yet-defined class?

ircmaxellSo, PHP uses something called "late binding". Basically, inheritance and class definition doesn't happen until the end of the file's compilation. There are a number of reasons for this. The first is the example you showed (first extends second {} working). The second reason is opcache. In order...

user895378
@animaacija You simply specify your server's certificate (and any other SSL settings) in your web server's config file. Encryption is handled at the web server layer and is completely transparent to your php application.
@rdlowrey thx, so i upload! Can you believe this?! youtube.com/watch?v=hJnfTAs4BtM
@animaacija Possibly of use SSL configuration generator
user895378
@animaacija that looks extremely fake. Like ... MS Paint graphics.
15:11
Next enum test for me: newInstanceWithoutConstructor. It should fail according to the docs but I need to check.
After that I need to figure out opcache, or have someone else figure it out for me.
> Fatal error: Uncaught exception 'ReflectionException' with message 'Class Zeroton is an internal class marked as final that cannot be instantiated without invoking its constructor'
Ta-daa!
user895378
@JoeWatkins evenin'
The perfect way to end a work day:
> Error: Revert failed:
Error: error: corrupt loose object '03494b52cd3276228a7afe726aab1aed651d4144'
Error: fatal: loose object 03494b52cd3276228a7afe726aab1aed651d4144 (stored in .git/objects/03/494b52cd3276228a7afe726aab1aed651d4144) is corrupt
I'm #11 all time in , but with less than 1/2 the answers of anyone else in the top 10 (the only one in the top 20 with less answers than me is @NikiC)
Anonymous
15:27
we could be expecting a call from the president any moment now.
So… Invoking newInstanceWithoutConstructor on an enum segfaults because it tries to clean up an instance of the enum. I'm not sure where this instance is getting created based on the newInstanceWithoutConstructor code.
@Rangad looks promising
  ZEND_METHOD(reflection_class, newInstanceWithoutConstructor)
  {
          reflection_object *intern;
          zend_class_entry *ce;

          METHOD_NOTSTATIC(reflection_class_ptr);
          GET_REFLECTION_OBJECT_PTR(ce);

          if (ce->create_object != NULL && ce->ce_flags & ZEND_ACC_FINAL) {
                  zend_throw_exception_ex(reflection_exception_ptr, 0, "Class %s is an internal class marked as final th  at cannot be instantiated without invoking its constructor", ce->name->val);
The exception is thrown, but I'm not seeing how an instance of the class is being created when that path is taken.
why don't you return; in the if?
the object_init_ex is still called?!
zend_throw_exception_ex isn't one of those noreturn functions?
o.O you are correct.
15:34
@LeviMorrison no, surely not... the noreturn functions all call zend_bailout() (or something else which does a longjump)
Well, time to fix this bug.
@tereško I I know knew how to fix this without breaking everything else ;(
@LeviMorrison zend_bailout() is only called in case we'll do an unclean shutdown later.
user895378
If I do a commit just to update the NEWS file in the 5.6 branch do I still need to merge that into master?
@ircmaxell Bleh. It's got 4 close votes. No good deed goes unpunished...
15:36
@Patrick especially since the HTML is actually invalid
@LeviMorrison iirc you can't rely on no_return anyways ...
@rdlowrey no
(well, at least I don't)
@rdlowrey news files should have their own merge strategy if you setup git correctly (that they are not merged)
user895378
Right. I have git setup correctly but I'm still never confident about what sort of voodoo is supposed to happen with NEWS
@rdlowrey when in doubt, merge
15:49
@rdlowrey shakes fist you pushed between my pull, commit and push
lol
All good though.
I just hate it when that happens
user895378
@LeviMorrison Haha @NikiC did the same to me!
user895378
I was all ready to push and then I got the rejection message :)
ok
I am dumb
what was the trick behind using two submit buttons in a form ?
@tereško Give them different value properties?
Is that what you mean?
Anonymous
@tereško two different submits, with different name value
15:53
hmm ...
it looks like problem is actually in the XHR part
well , FML
Anonymous
xhr and submit buttons? something must be wrong..
has there been any discussion/development on making arrays/strings "implement" Traversable?
Such that they pass type checks?
No.
I am unsure how I feel about that.
@DanLugg no
The issue is essentially taken care of with union types, but who knows if that will happen.
Futhermore arrays and strings aren't objects, so how can they implement anything?
15:59
^^ hence "implement", not implement
"implement" as in PHP "7" :-P
@DanLugg oh, and strings are definitely not going to be Traversable
only arrays might be...
Really? Dammit.
@rdlowrey it looks like I have a bug report for your Artax lib
Define string_iterator() and call it first.
people are saying that your lib is eating shitload of memory
user895378
16:00
@tereško cool
the given example was that with Artax the memory usage was 4MB+ but without it ~2MB
@LeviMorrison You mean, define bytes(), codepoints() and graphemes() right?
@LeviMorrison Well, with a switch, I could define make_iterator_from_anything(), but I don't want to do that :-P
Seems like the business of core, not userland
@rdlowrey is that a known issue ?
@NikiC Dammit.
16:01
Hi room, I'm wondering if it is possible to use a DirectoryIterator to iterate in alphabetical order?
@NikiC What is unicode?
@DanLugg And this is the reason why you can't iterate strings ;)
Baby don't hurt me.
No more.
for the record, a string iterator already exists - it has the very obvious name of IntlBreakIterator
16:02
bwahaha
Fuck unicode. Strings are byte arrays.
user895378
@tereško No one has yet provided me with a simple reproduce case demonstrating the problem.
user895378
If someone could do that I'd be happy to resolve it.
Unicode is a parsing concern.
user895378
16:03
But my current stance is that long-running programs make it very easy to create memory leaks yourself. It's not necessarily artax at fault.
I just noticed that php.net/intlbreakiterator always returns ReturnType...
those docs are even better than usual :D
What is ReturnType?
Placeholder, I think.
(Baby don't hurt me)
it's "THE" ReturnType
16:03
(Don't hurt me)
(No more)
you don't mess with THE ReturnType
@rdlowrey it wasn't a long-running request. Script was used for HTML scraping and communicating wit pagerank API
user895378
@tereško if you can create a simple reproduce script demonstrating the problem I will fix it
@DanLugg bro-fist
user895378
16:04
@LeviMorrison I see what you did there ;)
@LeviMorrison Word up. Now make strings traversable.
@rdlowrey well, it's not my bug. I will try to make the coworker to reproduce it.
DO IT INTERNALS MAN!
@rdlowrey I'm glad there are people at least as old I as am.
Generators got even more powerful! Just merged coroutine delegation mechanism into #PHP (yield from). https://github.com/php/php-src/commit/f3e124d58dc4627eb89625a7c264cb009130f725
user895378
16:05
@bwoebi \o/
Shoot, I barely make the 80's by birthyear.
I'm lucky I am aware of such a wonderful piece of music.
It was easy to merge :-)
I was like 4 years old when that song was released.
@bwoebi would you mind adding the explanation you gave here in chat as a comment?
So other people get what it's all about
@NikiC Yeah… let me just open it quickly…
16:08
@bwoebi oh and NEWS and UPGRADING and stuff ^^
@NikiC yeah, was about to do that in a separate commit
Anyone happen to have time to help me with opcache support for enums?
You just have to day "help with opcache" and everyone hides. And… when someone says "Ask me if you need opcache help" everyone runs to you…
Here's some debugger info:pastebin.com/MT2T0iRS
<?php

enum Zeroton {}
That's the opcache.php file.
user895378
@bwoebi and be sure to move the link on the main wiki page out of the Pending Implementation section
16:13
@rdlowrey Oh, I'd have forgotten that
@tereško There is a memory issue caused by the PHP garbage collector being a bit dumb. Basically, if you have really efficient code that doesn't generate variables all over the place, then the garbage collection of cycles doesn't kick in, and so there is a lot of memory 'used' that could be freed. Example of this effect
user895378
@Danack may I request that you change the file type on your gist to PHP so I can haz syntax highlighting?
user895378
thanks :)
@rdlowrey done
@rdlowrey Done. I was trying to find the workaround you suggested before, of setting thing to be fired every second to call the gc_collect_cycles, but am failing.
user895378
16:19
@Danack It would just look like this ...
user895378
// force php to garbage collect once every 1000ms
$reactor->repeat('gc_collect_cycles', $msInterval = 1000);
user895378
Or if you're using the global event reactor like most folks do with artax:
user895378
Amp\repeat('gc_collect_cycles', 1000);
cc @tereško ^^ that.
Alternatively, you could add some code that allocates and then throws away 10,000 variables every few seconds to achieve the same effect.
Which is where Guzzle certainly beats Artax.
o.O
Shots fired.
16:29
i.e. Guzzle is far better at allocating huge amounts of variables and then throwing them to do the same stuff that artax does.
user895378
I just wish I had more time/motivation to work on artax right now
@Danack do you know if the PHPSW stuff was released somewhere? (the talk recordings)
@Ocramius Steve is still processing the videos. It's the first time he's done it and so he didn't have a decent workflow.
And I suck at clarifying things; having a library allocate a huge number of variables is bad and you don't want it to do that.....which is why Guzzle is quite inefficient to run. But having inefficient code does avoid the problem with the Garbage collection being a bit crap when it's handling code that has less large but few allocations.
@bwoebi why you have an egg account?
@marcio I didn't bother with any image…
16:36
I usually ignore egg accounts because bots.
@NikiC done
@marcio okay, well… uploaded my SO avatar :-D
@Danack I see, cool :)
@marcio Now you don't have to ignore me anymore xD
@bwoebi lol, still looks like a bot but a recognizable one :D
@marcio arrrrrghs :-D
16:42
I fear the description on this repo: github.com/c9s/CodeGen
> Transform your dynamic calls to static calls!
Is this a helper library for recki-ct? :-D
I don't think you'd need "twig/twig": "*" for that
huuuuh oO
My hope is that the README is just wrong
@marcio I doubt it.
but I have no idea what this is for…
16:54
Me neither, it appeared on the "Github Explore" today email. Apparently it's a hacky way to generate code. Does PHP already has a serious ast based code gen tool?
you can work with Nikitas PHP-Parser lib I assume
Just constructing the AST yourself instead of from existing code.
yea, that's preferable all these code gen tools using twig are a waste of time.

« first day (1641 days earlier)      last day (3531 days later) »