« first day (1545 days earlier)      last day (3629 days later) » 

21:00
@PaulCrovella But I do not know how to do that :/
@LeviMorrison Any idea of what excuse totally legitimate question I could use for bugs.php.net/bug.php?id=60754 and bugs.php.net/bug.php?id=40666 to set them to feedback?
@Ty221 Sounds like the perfect opportunity to learn how to do it I would say
@PeeHaa Can you give me any startup tips?
no
Should be one manual page away
21:02
@Ty221 In the 3 minutes since it was posted you've read the answer and exhaustively followed up with research only to find that you need more help?
Also you might be interested in this project is you want to check multiple urls
@Danack that second one does make more sense, PHP should be auto-prefixing __DIR__ imo
Having to write require_once __DIR__ . '/vendor/autoload.php'; is weird
On the other hand, changing this breaks things
It could be introduced in php 7.
21:16
So? still breaks things
@AndreaFaulds many many things
Nothing a real_require_once can't fix though :P
@Danack for the first: any additions to php.ini should require an rfc and 7/8 majority vote
@Danack Closing the second one as wontfix with the __DIR__ workaround
@PHPeeHaa @ircmaxell If u use PHP version 5.3.2 u better disable GC because of many bugs in GC.
:X
@AndreaFaulds I think it would make more sense on the surface for 99% of the time. But if you want to include a file based on where the first file was located, it would be a complete nightmare that way round. So yeah, eal_require_once ftw.
21:18
That is the point I have to prevent myself from moving my head to my desk repeatedly
@Danack Yeah. Closed as Not a bug.
lolwut I think I actually know that guy :P
@SergeyTelshevsky yep, I'm sure it was intentionally just for fun
Sorry @salathe. It is funny, but it is starting to annoy me :P
1 message moved to Orphan GIFs
21:28
@PeeHaa you wouldn't do that if it was a cat would you?
A cat wouldn't have survived this long
that went from aww :D to aww :(
@PaulCrovella annoyingly, that's not a valid reason to close feature requests apparently.
21:33
@PeeHaa actually ext4 file system can handle up to 4 Billion files per directory (from wiki), i did a small test with 6 million files in ext4 and 6 million rows in mysql the time for retrieving the file was 0.000207 seconds and for mysql to get the id was 0.05 seconds :)
@someone I never said it couldn't
but it's not fair to compare it with mysql i will compare this with nosql databases
I said it depends
since they are key-value storage
One day I accidentally created ~2 million of files in a single directory in ext4
it took about 2 hours to drop it
(they have been created almost instantly though)
That's nothing. I once dropped a table and deleted ~2 million records ;)
@ircmaxell it's surprising me as well how many controversial things are in UB's blog these days
I partially agree, but completely disagree
@PeeHaa that's why I unconsciously put BEGIN in every sql window before start working
21:36
@AndreaFaulds is the unicode escape RFC merged into master?
okay, not many, but things that are controversial are so weird so that you don't expect them to be written by UB
this reminds me his post about microservices
@PeeHaa that's quite impressive, i think this would be better than using a nosql :)
@Danack Yes, I think so.
but the whole idea seems to be wrong
21:38
Cool.
Why'd you ask?
Do you want to use it? :p
holy shit what the fuck
@AndreaFaulds bugs.php.net/bug.php?id=60412 - this is just the user doing the wrong thing right? Doing "\xf1" doesn't generate a valid UTF8 string?
this email is impossible to parse: news.php.net/php.internals/80289
I like the signature.
@Danack I'm pretty sure it doesn't, no. All UTF-8 high-bit-set sequences are >= 2 bytes. All single-byte sequences lack the high bit and are ASCII
@Danack It clues me in to the fact that I shouldn't expect them to be comprehensible
21:48
Yeah....so I was going to test with the unicode syntax.
Rather than fiddle with bytes.
@Danack In fact, that code I just linked you? It's a UTF-8 encoder (one I stole from wikiped). Look at it: there are no single-byte high bit sequences
@Danack Ah.
@Danack Wait, I think \xf1 is supposed to be Latin-1 there
What they're complaining about (IMO) is that, say, n + ~ doesn't decode to Latin-1 ñ
Yes. But still a single byte char rather than the character he was hoping for.
Latin-1 is single-byte though.
\xf1 is just Latin-1 ñ
And since the first 256 Unicode codepoints map to Latin-1:
"\u00f1"
"ñ"
1 min ago, by Danack
Yes. But still a single byte char rather than the character he was hoping for.
So he meant 0xC3 0xB1
No he didn't.
He's converting the UTF-8 to Latin-1
He's expecting that UTF-8 n and combining tilde ◌̃ (which shows up as ñ) will convert to the single Latin-1 ñ character, which is perfectly reasonable
21:53
that's what normalization should take into account
Ah.
And normalization IS a rocket science: unicode.org/reports/tr15
Yep
It is a bit weird, honestly. mbstring should be taking that into account when converting to Latin-1
after I've read that paper I finally understood why it's not recommended to use tricky characters in passwords
21:56
Because nobody does normalisation :(
browsers do
some sometimes
UString should probably have normalize function
shouldn't precedence order prevent this collision? (no, I'm not actually using anything like that, I just felt like breaking something.)
@PaulCrovella I think with traits you're supposed to always be explicit?
@AndreaFaulds it's the same as example #2 from php.net/manual/en/… just with __construct() instead of sayHello()
22:07
@Danack …I have no idea.
k, np.
It does seem dumb to me leaving stuff open when it's just never going to be useful.
@PaulCrovella I think __construct is special for some reason (I think it's probably a good one, a constructor isn't just any method)
I'm not sure on why traits do anything the way they do.
I was around then but wasn't very involved and busy focusing on the website stuff.
I'm going through these ancient bugs: bugs.php.net/…
Some feature requests I'm just wontfixing, since it doesn't look like they'll ever be done.
Not all, of course
I'm okay with the liberal use of wontfix and not a bug ^^
22:17
This is an interesting one: bugs.php.net/bug.php?id=10527
They're basically asking for immutable vars
I think there's a use-case for that.
Rust and Swift have this
@AndreaFaulds I have to admit I've ran across a couple scenarios where I wish I could do a constant array of scalars
@cspray We have array constants since 5.6.
@AndreaFaulds ORLY?
I've been using 5.5 but haven't looked at 5.6 yet. Been writing a lot of Ruby lately
@cspray Yes, it's my #1 source of SO karma: stackoverflow.com/questions/1290318/…
@AndreaFaulds how is it different from scoped constants actually?
it definitely won't work with sessions as they asked
22:21
@zerkms It wouldn't be. But constants aren't scoped and we can't change that, I think.
yep
I don't see too much of use of it though
@AndreaFaulds oh no, I shouldn't have introduced them!
in a properly designed application you use value objects and you may make them immutable
:-D
err: they are immutable by definition
22:23
@zerkms What's wrong with immutable variables, though?
In newer languages they're a more common feature
And all pure functional languages have them
@AndreaFaulds nothing wrong. tbh as a person who is obsessed by FPs these days I like them
if other programmers clobbering important session variables is a problem, you've got more serious issues than immutable variables can hope to fix
@PaulCrovella Sure
I just don't think that it's suitable for php
(it's a highly personal opinion of course)
That would be my opinion as well
22:25
When I develop php it's unlikely I would do that
Since they won't bring anything good in my code
I think that immutable variable bindings integrate a lot better if you have a strong type system
@NikiC clojure
dynamically strong typed
Checking to make sure you and nothing you call mutates the variable could be a pain in Zend Engine, I think. It may be easier than I am thinking.
@AndreaFaulds Not sure I agree with your resolution in bugs.php.net/bug.php?id=8685&edit=1, especially given that we have an RFC on the topic that hasn't been voted yet.
Ah wait no
didn't read properly, as I tend to do so often
If necessary it can be reopened ^^
@NikiC ?
22:29
The bug is about a different issue
What was the RFC on?
@AndreaFaulds the the trailing ;
@NikiC Ah right
allowing other chars after the end delimiter as well
This looks sensible: bugs.php.net/bug.php?id=27022
If we can have private static methods, why not private constants? Keeps others from relying on implementation details.
22:41
I have been saying that exact same thing for a while now. I really want that
+1 but only for the invention of "modificator" in place of using the typical "modifier"
@AndreaFaulds my birthday is march 26th so now you know what you can give me
@PeeHaa :D
@PeeHaa Maybe. It's not a priority (bigints and scalar hints are), but I'll consider it and put it on my todo/wish list
22:43
@AndreaFaulds my birthday is march 29th, so now you know what then can revert for me.
(just joking)
All these March birthdays in one room!
I'm February 17th :p
@AndreaFaulds I wanted to ping @JoeWatkins about it tonight but havent seen him yet. Will bug him tomorrow about it :)
bigints is a really nice proposal
22:51
^^
I think they'd be very "PHP"
Why should $x = 10000000; work but not $x = 10000000000000000000000000;
user924016
yes, that would be awesome.
I would use it
^^
TODO list for bigints: wiki.php.net/rfc/bigint#todo
I really need to work on them if I want them in PHP 7...
Wondering if this is still a bug? bugs.php.net/bug.php?id=28864
It sounds pretty bad if it is. PHP accepting incomplete POST data? D:
Isn't it a web-server responsibility?
23:07
Possibly.
> The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers.
I'm not HTTP guru but I don't know how it's possible for a web-server to pass through incomplete request
Reproduced: 3 of 3 (100.0%)
WHAT?
Sending "Reproduced" must require a paste or a screenshot
I wonder if Apache just sucks(ed?)
@zerkms It is, if it sucks
how?
@zerkms I can't remember if it can be set for requests, but I've definitely seen incomplete data transfer on responses when using chunked encoding......which becomes 'fun' when that incomplete response is cached.
@Danack Oh god yeah :(
23:13
@Danack response is another story
for request it is required to specify length
So according to HTTP specification I don't see how a web server may be fooled to start processing incomplete request
to boost performance, is something like Zephir worth it?
@RobertBakker what kind of performance do you want to "boost"?
there is no abstract "performance" or "efficience"
Execution speed I guess, I wonder what the advantages would be to start creating C extensions for php over using HHVM for example
@RobertBakker what "execution speed" means?
If you have a 2 lines script that performs a full scan over a 10Tb database that takes 3 days to complete
who would you blame - php or database?
and what would you start optimization of this case with: by spending few days to optimizing 2 lines of php or rethinking the way you deal with your data?
@NikiC I found some bug in master when using yield as a function argument…
php -r 'function a($x) { var_dump($x); } function gen() { a(yield); } $g = gen(); $g->send(1);'
loops indefinitely (other incarnations of this involve segfaults)
23:24
is it even possible to pass yield as an argument?
cause is that execute_data->prev_execute_data == execute_data
Here's a pretty glaring bug: bugs.php.net/bug.php?id=31649
because vm_stack_top is set to generator->stack->top in the next resume after zend_vm_stack_push_call_frame was called in the ZEND_INIT_FCALL_BY_NAME
Or rather not a bug, but Unicode support issue
@zerkms it makes it act as a co-routine and waits for a value to be sent in.
23:28
@Danack that's funny. Any reference to doc?
oh there is a link to nikic blog already
/me needs glasses
There actually doesn't seem to be any documentation.....at least none I could find easily.
This seems like a sensible thing to be added: bugs.php.net/bug.php?id=43269
@NikiC I have analyzed that bug, but I'm not sure how to fix it. Probably copying EG(vm_stack_top) to generator->stack->top after a ZEND_YIELD in zend_generator_resume will fix it; but I'm not sure what implications exactly it would have.
23:42
The recording is shit because we just recorded a live jam
@NikiC just fyi: Added generator->stack->top = EG(vm_stack_top); on line 330, bug seems fixed and no additional tests fail. But didn't push because I'm not sure if that's really safe, could you please look at it?

« first day (1545 days earlier)      last day (3629 days later) »