« first day (1664 days earlier)      last day (3270 days later) » 

12:01 AM
@Andrea Yeah.
 
12:16 AM
The mono project bumped to C99 in their latest release. What do you guys think it would take to bump PHP to C99? @NikiC @bwoebi @ircmaxell @rdlowrey
Technically we don't use C89 anyway – we use some form of gnuc89 + other features.
 
Microsoft supporting it...
 
Some of which are actually part of C99.
 
@LeviMorrison I'd have bumped it long ago…
 
@ircmaxell Mono requires VS 2013 on Windows unless you use cygwin or something.
And they support most of it now.
 
"Most"
 
12:17 AM
Yes, most.
 
@LeviMorrison I have no idea, ask @Sara
 
Anyone here actually build on Windows? @rdlowrey maybe?
@ircmaxell Here's a partial overview: blogs.msdn.com/b/vcblog/archive/2013/07/19/…
 
@LeviMorrison this is about lib functions and not language support though…
 
@bwoebi Sure.
 
@LeviMorrison that's not what we need^^
 
12:25 AM
They support some features too.
 
yes, which ones?
 
@LeviMorrison I no longer touch PHP code obviously, but I think C99 would be good if only for one reason: not having to put variables at the top of their scope
define things close to where they're used
 
These are features added in VS 2013:
_Bool
Compound literals.
Designated initializers.
Mixing declarations with code.
 
this particularly improves the readability of larger functions
@LeviMorrison I'm not sure, but does zend_bool use _Bool where available?
 
@Andrea I haven't checked before; you have me curious. Going to look.
 
12:27 AM
@LeviMorrison what exactly are compound literals and designated initializers?
 
@LeviMorrison Oh, nope. Always char: lxr.php.net/xref/PHP_TRUNK/Zend/zend_types.h#45
 
@Andrea Not even uint8_t!?!?!
 
Probably for the best, because _Bool has special semantics
@LeviMorrison not like it makes a difference
 
@Andrea it has...?
 
@bwoebi Yes.
 
12:28 AM
and which ones?
 
some_bool = 4; sets some_bool to 1
 
oh
 
When you assign to a _Bool, it does a != 0 on it
 
@Andrea Where is this documented?
 
Because of this it's probably a good thing zend_bool doesn't use _Bool where available
@LeviMorrison C language standard
 
12:29 AM
Quick searches say including stdbool.h makes _Bool and bool the the same.
 
@LeviMorrison Makes what?
 
so, bool is basically an 1-bit unsigned integer which is padded to a full byte?
 
bool and _Bool are the same yes
 
@bwoebi Yes; this is common in basically all languages.
Having something smaller than a byte is usually a pain.
 
@bwoebi Yes, because CPUs don't let you address individual bits ^^
 
12:30 AM
Exactly.
 
It's a shame C didn't originally have a boolean type, using integers is a bit weird
 
I should try changing zend_bool to bool and see what happens.
 
@LeviMorrison you mean change the typedef to typedef _Bool zend_bool; ?
 
No, just normal bool and include stdbool.h
 
It probably wouldn't break anything whatsoever, unless someone's using a zend_bool where they meant zend_uchar
 
12:31 AM
@Andrea Right, but it'd be a good check :)
 
4 mins ago, by bwoebi
@LeviMorrison what exactly are compound literals and designated initializers?
^ @Levi ?
 
The problem is that it'd mask bugs in the opposite case. If you compile on a system using _Bool and someone else is using unsigned char, that other person doesn't get the magic normalisation
@bwoebi C99 has struct literals, I think?
Also nicer struct initialisation syntax
Ah
Compound literals look like this: structure = ((struct foo) {x + y, 'a', 0});
 
I don't exactly know which feature maps to which version^^
 
I've never used compound literals. I've used designated literals once. Once.
 
I think they could be good for clarity.
 
12:34 AM
Yeah.
 
Using compound literals would be a win for php-src, because zend_string * literals
 
@bwoebi yep
zend_foobar foo = { .some = 3, .foo = NULL, .other_thing = &ce };
// vs
zend_foobar foo = { 3, NULL, &ce };
 
definitely the former
 
I think you can do zend_foobar foo = { some: 3, foo: NULL, other_thing: &ce };
Maybe that's GCC stuff only.
 
> Another syntax that has the same meaning, obsolete since GCC 2.5, is ‘fieldname:’, as shown here:
From the page you linked
 
12:36 AM
Ah, bummer.
It would have been very JSON and made me happy.
 
More like JS, JSON requires quoting :p
zend_fcall_info_cache fcc = {
    .initialized = true,
    .function_handler = fun,
    .calling_scope = NULL,
    .called_scope = NULL,
    .object = Z_OBJ(zval)
};
wouldn't that be pretty
I wanted something more "real-world" than foo :p
 
@Andrea lol
 
@Andrea As long as there is a refactoring tool for when you change names.
 
@LeviMorrison We already mention struct member names explicitly, though.
 
@LeviMorrison the alternative would be a refactoring tool when you change order…
 
12:42 AM
zend_fcall_info_cache fcc = {0};
fcc.initialized = TRUE;
fcc.function_handler = fun;
fcc.calling_scope = NULL;
fcc.called_scope = NULL;
fcc.object = Z_OBJ(zval);
That's what you might write just now.
 
@bwoebi Indeed.
I wish we used CMake so I could use CLion.
 
@LeviMorrison Why does this need CMake?
Well… seems it's just not implemented yet
 
@bwoebi That's why ^^
It could be a while, honestly.
 
1:00 AM
you know what really grinds my gear in php
the wrong kerning in the logo
it's been years, i still can't unsee it :|
 
you mean the one p touching the h and the other doesn't?
 
yup :P
 
That's intentional so that you better keep the logo in your mind :-)
 
how to make a designer mad, basically
i can't look at it for too much
:D
 
@Worf I, uh, fixed it with the new php.net logo
There's still kerning that's maybe less than ideal but they don't touch.
 
1:04 AM
close :P
 
That's not close to touching lol
 
there's less space on the left than there is on the right #pedantic
 
@Worf Yeah, that's usually what "ph" does.
 
i'm joking :D so that's the new official logo?
 
@Worf It's been deployed for over a year now… maybe even two years. Can't remember.
So I don't know about official
But… basically sure.
 
1:07 AM
hi
 
:D btw did you look at my php.net pr?
 
since when is this chat thing?
 
@Worf Sorry mate, I haven't touched it
 
no prob, but again imho you can merge it without worrying too much
(last famous words)
 
Interestingly:
@salathe Do we have enough now?
 
1:11 AM
@Danack was it fixed?
 
@Worf I am not sure which is the official one - but I don't think the one you linked looks correct.
e.g. this is an example of the original "in situ" linux-france.org/article/devl/php3/tut/php3_tut2.html
s/original/as it was for PHP 3/
 
If you use automatic kerning like you get in most programs the ph will be closer together than the hp
 
automatic kerning is not always good, in this case having it being "symmetric" is better
 
@Worf Is it?
 
funnily the php3 logo didn't look to have the problem
 
1:19 AM
I can understand the difference between one that touches and one that doesn't, but that doesn't mean being uniform is better.
 
The vector files on php.net/download-logos.php don't appear to be the same image as the small files......I think we've discussed this before, and the result was the original files were lost?
 
the problem is accentuated by the white stroke @LeviMorrison you get two white lines really close and that look poorly made
 
@Worf The white stroke isn't there on php.net ;)
 
i know, it's not bad now :P
 
Ugh, this font they picked for the PHP logo is so bad except for exactly the two letters p and h.
Here's an example of PHP7 in Handel Gothic Italic:
(Ignore poor image quality; that's not what I'm talking about. I'm talking about the shape of that 7)
 
1:36 AM
Theoretically it could be worse. I have failed to find any examples though.
 
I've looked quite a bit at other fonts that have similarly shaped p's and h's.
Not many exist.
It's basically impossible to migrate to another font and have it look even remotely close.
 
2:08 AM
and now i want all php.net in comic sans
:D
tbh the 7 of handel gothic italic is not bad
 
2:28 AM
@Worf …are you okay, Lt. Worf?
 
:D
 
i like it
there's too much "white space" inside the 7 but it fits
 
nope :D
 
2:29 AM
Hey man, I freehanded that! :D
 
actually i quite like the yellow dot as in php3's logo :P
dont have illustrator here :P
 
Hmm.
Every time I export it the 7 looks like it doesn't have the same slant as the p and h
 
eheh
 
I guarantee it's exactly the same before export lol
 
it's not the export. it's your eyes :)
human eye perception != mathematic precision :D
 
2:42 AM
I think it might be cut slightly or something on export
If that's not it then it's perception
 
@adamculp find below my proposal for the new PHP7 logo #php #logo - @official_php @phpc @phparch @php_net @PHPWomen http://t.co/jBrsYMqcG0
 
cool
 
i prefer the yellow circle tho
 
2:53 AM
morning
 
That's the one I really like.
 
also i don't think php7 needs a logo
it's just a version number
 
It's for marketing hype, bro!
 
maybe then :D
 
3:11 AM
need to start writing method declarations differently, coz the signature line is getting too long
was thinking to start using, always:
function baz(
    Foo $foo,
    Bar $bar,
    Baz $baz) : ReturnType{
or something like that
 
Do you even Java?
 
would be great to have "function" optional
@LeviMorrison what do you mean? do java developers format signatures that way?
 
Java routinely exceeds 80 characters because of its obscene verbosity.
 
also i still haven't decided, after years, if i prefer
if(){
}else{
}

or:
if()
{
}
else
{
}
i use the first in the tests because i want them compact, but mostly the latter in actual code
i find it easier to read sometimes
 
It's like a subscript!
 
3:17 AM
php-comma-dev
 
i have coders block, i think it's called obstr() that you use to make a data object of echoed output
 
@LeviMorrison imho previous one was lot more better
 
@NullPoiиteя I just really suck at this stuff ^^
 
3:56 AM
user image
6
@LeviMorrison
 
you know the movie right
ok i just wasted 20 minutes of my life :D
also sorry for spoiling you the movie @LeviMorrison :D
 
I'm not much of a movie buff anyway :)
 
hey guys i need help about get data from url,
Example = http://mysite.com/get.php?url=http://www.domain.com/live.php?id=99999999999999999&go=2093
I want to use id in webpage.. any help please? just for getting this id to webpage?
 
4:42 AM
2
Q: How to Hide OR Remove "The requested URL responded with HTTP code 401. " SoundCloud API

learnerThe issue is i continually get a 401 error on the $client->accessToken($_GET['code']) step despite $_GET['code'] being set properly. require_once 'Services/Soundcloud.php'; // create client object with app credentials define("CLIENT_ID","*****************"); define("CLIENT_SECRET",...

 
5:24 AM
moin
@krakjoe Like to delve into the realms of could be.I've got a number of corruption/conspiracies? I'm sure would interest you
must remove "believer in all conspiracy theories" from my twitter profile, apparently the joke is not landing ...
 
6:18 AM
Morning
 
'nin
 
6:35 AM
Mornog
 
morning
 
7:03 AM
1 message moved to Orphan GIFs
@SergeyTelshevsky Makes sense. Vista afraid of 7
 
@PeeHaa WHAT'S IN THE BOXXXXXXXX?
 
7:32 AM
elow
Peeha is a regular dev in this group ^^
 
@LeviMorrison there was some thread about it some time ago, might want to bring it up again
I think php 7 supports on very recent msvc version anyway
@ircmaxell Okay, that so does not match my experience
For me PHP 7 is something like 3 times faster for parsing
Have some notes lying around here that say 24.6s vs 8.4s
Probably for parsing all symfony files
Probably the diff is in the lexing, which seems to have regressed in php 7 for you
 
7:53 AM
@Danack No, it's worse than ever. :(
 
morning
 
good morning naruto
hows kunoha
 
Good morning, roomies
 
good morning salathe hows india?
 
moin @salathe
 
8:25 AM
Morning.
 
morning
 
posted on May 07, 2015 by kbironneau

/* by Tio */

3
 
@LeviMorrison Which font is used in the logo?
 
Anonymous
e_fake
 
9:02 AM
Morning fresh enterers of the realm
 
morning
does any one knows where to get all the possible combination of date formats
 
@FaizRasool Combinations?
Infinite
 
in php terms even
like in term of giving in drop down
 
Well eventually you would hit mem / execution limits
 
to choose
 
9:10 AM
What are we talking about?
What is the goal?
 
while importing csv
@PeeHaa we give user drop down to specify what is the date format
d/m/Y === 26/05/2015
m/d/Y === 05/26/2015
Y/m/d === 2015/04/26
Y/d/m === 2015/26/04
d/M/Y === 01/Mar/2015
d/m/Y === 01/March/2015

d-m-Y === 26-05-2015
m-d-Y === 05-26-2015
Y-m-d === 2015-04-26
Y-d-m === 2015-26-04
d-M-Y === 01-Mar-2015
d-m-Y === 01-March-2015

d.m.Y === 26.05.2015
m.d.Y === 05.26.2015
Y.m.d === 2015.04.26
Y.d.m === 2015.26.04
d.M.Y === 01.Mar.2015
d.m.Y === 01.March.2015
this is my current list but still lot more to go
 
Yeah the amount is unlimited
Why would you need that?
Are you trying to parse a user supplied date?
 
anyone know what this error is E_COMPILE_WARNING: Unterminated comment starting line 357
 
detect date time format php
 
What that its wrong?
 
9:14 AM
I would only use a couple and force the user to input a sane format instead
 
Yeah there's such a thing as too much choice
It's why datepickers exist
 
@FaizRasool or just give them a free form text field instead of a drop down.
 
Nope. Datepickers in this case are not about choice. It's about not being able to pick a parsing strategy
 
@StephenWolfe right what it says?
 
This page gives an overview of date formats by country, for the Gregorian calendar (see other calendars in use). (For time as well, see Date and time representation by country.) == Legends == All examples use example date 1996-04-22 / 22 April 1996 / April 22, 1996 – except where a single-digit day is illustrated. Basic components of a calendar date for the most common calendar systems: Y – Year M – Month D – Day Order of the basic components: B – Big-endian (year, month, day), e.g. 1996-04-22 L – Little-endian (day, month, year), e.g. 22.04.96 or 22/04/96 or 22 April 1996 M – Middle-endian (month...
Stupid world with their stupid date formats :P
 
9:16 AM
ahhh
 
why should a user pick format, then enter date... too much work
 
@Gordon i was being dyslexic and couldn't read it
 
民國95年12月30日
O.o
I just read the date format wiki page @FaizRasool and yeah you should really limit the inputs imo
 
9:31 AM
Morning all
I am trying to figure out a sql query at the moment, which could be troublesome
 
9:56 AM
@Jimbo grrrrrr
 
10:27 AM
For a work PC which runs VMs locally (dev stuff) what would you say is some of the more important components for speed. cc @tereško
 
@Fabor A crate of beer right next to it
 
lol
 
my vote goes to SSD's
 
is there any reason when I do a mysql query it is case sensitive...
 
Wrong collation
 
10:39 AM
@PeeHaa whats that mean?
its in utf8_bin
is that wrong?
 
utf8_general is the way to go in most cases
 
so change it to utf8_general_ci
 
cool
Can you tell me how to change it?
 
@StephenWolfe Why is it bin?
 
10:44 AM
@PeeHaa they guy that set it up didnt know what it was
I have changed it now
 
@StephenWolfe :P
That guy being back to the future you I assume? :)
 
@PeeHaa its good i finally found someone that knows less than me
 
good morning
 
@PeeHaa I am his expert lol
 
does is there any php library that does a separated treatment to the date and time objects?
just wondering if there is any project over there, because in our project we use separated objects for date and time
 
10:46 AM
@markcial o/
@StephenWolfe :-)
 
hi @PeeHaa
 
@markcial I would just marge them behind the scenes and do whatever you need
 
its not our fit
just because there are some datetime objects that when compared even when the date is the same it gives weird results
and what happens when you want to match objects in a range?
$date->isInDelta($anotherDate, new Delta('+2 days'));
this way you have a match for a +-2 days date
 
@Ocramius What was this in response to? You found out about me and your mum as well?
 
lol
no, mainly the picture :P
 
10:50 AM
most libraries are mainly wrappers to the datetime object, would be nice to have only date or time objectes, this way when storing back and forth from databases data would be more consistent
 
@Ocramius It's bloody lovely here! :-P
Rented a 125cc scooter, going to go around the cliffs on the island in a bit
 
spring breaking on the php chat?
not what i would do xD
 
@markcial I don't see how separate time objects could reliably work. Considering leap and/or DST and other stuff
@Ocramius What picture @Jimbo?
 
would reliably work because when we store a date object in the database when we hydrate back the entity we do not need the 00:00:00 time data
 
Sipping lemon ice water in the best suite in the hotel http://t.co/U7GQroChrK
 
10:53 AM
Fuck you too asshole
 
:D
 
illes balears?
welcome to catalonia then
 
No idea, I'm pretty lost atm. So lucky I have unlimited data so I can use google maps lol
 
lost?
but they are tiny islands lol
you can walk all over in less than an hour
 
@markcial It's very different driving on the wrong side of the road, disorients you a lot
 
10:55 AM
you are from england? xD
 
Yeah man
 
from island to island
 
Haha, I suppose you can look at it that way. So good to be away from all the British people though
 
british people were nice when i went to london
even with my clearly poorly spoken and written english
maybe there were making fun of me
 
Something I've noticed over here - everyone is so much more polite on the roads
 
10:57 AM
hahaha
 
No cutting each other up, leaving correct stopping distances etc
 
maybe on les illes, but do not try to drive in Barcelona city
 

« first day (1664 days earlier)      last day (3270 days later) »