« first day (1454 days earlier)      last day (3510 days later) » 

9:00 AM
@FlorianMargaine It didn't update the bug report, though =/
 
@JoeWatkins I need a ReflectionType object.
 
it didn't update the bug report for the other PR I had merged a couple days ago
I manually updated it this morning
 
ah right yeah
so, questions ?
 
@FlorianMargaine For that you need to have "fixed #xyz" as the commit msg
 
ah damn
hm
it does have it
oh, "fixes #xyz" doesn't work, eh
 
9:01 AM
1) It appears that I just stick whatever data I need into the void ptr here: github.com/morrisonlevi/php-src/blob/master/ext/reflection/…
 
Mornings
 
@FlorianMargaine hmm, not sure :)
 
And I have no clure what 3) is.
It doesn't help that Reflection is all smashed into one 6kloc file.
 
9:03 AM
They also have their own smart string struct, it appears.
 
moin random one
 
Does anyone know of a good reason why we don't expose PHP_WIN32 to userland? There's a CPP macro for it that's only defined on Windows, but it's not exposed to userland, the only way to detect it is via PHP_OS, and there's all sorts of code out there doing stuff like if (stripos('win', PHP_OS) !== false) { which is a) nasty and b) broken
Seems to me like it would be harmless/useful to expose a PHP_WIN int 1 or 0 constant to userland, since that's really the only OS detection anyone does in userland
 
isn't php supposed to be cross-platform, i.e. userland shouldn't have to care?
 
3) minit register class (setting correct handlers)
4) implement object handlers (create_object etc)
5) implement methods on ReflectionType as needed
6) change as much as you need to for all methods that accept a type to also accept a reflection type
7) profit
@LeviMorrison
 
9:07 AM
Theoretically yes, but in practice specifically Windows is so different that people often end up needing to detect Windows-or-something-sane
 
/me is not sure
 
I've seen it a lot with people figuring out the argument format for e.g. exec('ping ...') in anything more than the most trivial case
 
can see a case for registering ... makes me think I don't know something because seems obvious ...
 
@JoeWatkins Can you explain #6 more?
 
9:10 AM
@DaveRandom time to write a PR :P
 
if there are any methods in the extension that currently take whatever the representation of a type is now (assume int), they also need to accept a reflection type ... either they need to take both, or the new reflection type, and if they take the reflection type then need to change all methods that return current representation of type to return reflection type
with punctuation and stuff ...
 
@JoeWatkins That's exactly what I think
 
BTW guys where are the photos from PHPNW? Not official ones that is.
 
not sure what is best ... it's probably best to not bother with a reflection type now, and get the rfc through and do a separate rfc for improving reflection
 
I'm going to copypasta this to internals in a bit I think
 
9:12 AM
also, I am probably wrong ...
 
no, you're always wrong!
 
Just to make sure I'm on the right page, ReflectionFunction::getReturnType() will return a ReflectionType that looks something akin to: wiki.php.net/rfc/…
 
but you very often do the right thing, so it's ok
 
@Fabien @Danack was walking about with a camera at one point, but I think most people were too drunk for pics
 
Drunk is the perfect time for pics!
How else do you remember anything.
 
9:13 AM
@LeviMorrison that's a horrible api
 
lol
 
please make the type a constant integer, or else switches on type are a huge pain in the ass and consist of if() else if () {} else if () {} ... horrible ...
 
@JoeWatkins Better than having all those methods on ReflectionFunction prefixed with Return.
 
yeah it's horrible now ... but if we are improving stuff, then no reason to repeat mistakes or be as awkward as everything around it ...
 
At present we haven't exposed 'type' outside of internals.
 
9:15 AM
who cares
if it's a constant, it doesn't matter what internal representation is, it didn't change from 5.2 till ng ... and if constant, it doesn't matter ...
 
So you are saying expose a kind() method or something which returns something we can switch on.
 
yes, just like everywhere, ever ...
 
Keep isArray() or no?
 
And I guess the constants could be ReflectionType::IS_ARRAY or something.
 
9:17 AM
yes
 
I'd still need allowsNull() since it is orthogonal to the kind.
 
on type ?
 
On ReflectionType
 
a parameter or return allows null, not a type ...
 
It's type information.
That's why you can't generally adjust it during inheritance.
 
9:19 AM
don't think so ...
it makes sense for a ReflectionParameter to have allowsNull but not a ReflectionType ...
 
And then duplicate it for return types, and potentially properties... and so forth.
I guess I'll ask around.
I could be wrong too ^^
 
yeah ... you need to get to 6 first anyway :)
 
hm
with phpdbg
 
you could merge return, property and parameter into ReflectionVariable, they are all the same thing ...
 
how can I make it think I'm a logged-in user?
shouldn't filling in $_COOKIE be enough?
 
9:24 AM
depends on application doesn't it ... @FlorianMargaine
 
hm, true...
 
ThW
@FlorianMargaine coooool
 
@ThW it doesn't implement the interfaces though, only this is possible:
+var_dump($doc->getElementsByTagName('div')[0]->textContent);
+var_dump($doc->getElementsByTagName('div')['test']->textContent); // testing that weak casting works
+var_dump(isset($doc->getElementsByTagName('div')[0]));
+var_dump(isset($doc->getElementsByTagName('div')[1]));
 
ThW
so only get not set?
 
yep
set is tricky...
 
ThW
9:31 AM
makes sense
yeah
 
get should use the DOM methods anyway
 
(I made an auto-ish build system last night)
 
@DaveRandom excellent stuff, merge it ...
 
@DaveRandom lol @ dl.daverandom... I did the same yesterday with dl.margaine.com for when I want to share some files :D
 
:-P
Merged
 
9:35 AM
@FlorianMargaine can you help me?
 
@DaveRandom nginx + autoindex on, it seems we use the same :D
I had to use umask 000 to make it even easier...
 
Oh is that necessary?
 
@DaveRandom stripos('win', PHP_OS) !== 0 vs DIRECTORY_SEPARATOR != '\\' :)
 
I found that autoindex on just kind of worked
 
maybe it's the default umask of my system...
 
9:36 AM
Property is not defined error when i create new fields in yii
 
yeah but when I scp new files the permissions were something like 500... not good for nginx
 
@Ja͢ck Ridiculously, until 5.5 (?) OS/2 was supported
 
No-one cares, obviously, but yeh
 
Property "User.user_role_id" is not defined.

if rename user table to user1 than work

how can i solve this issues
 
Excuse me...I want to ask something
 
@DaveRandom Ehm ... okay ;-)
 
Hey guys, does anyone know how to export a local mysql database to azure?
 
When we hover our mouse on a question title in Stack Overflow, it will give a path to a folder. How does it work?
 
@HendryTanaka Erm... wat?
 
9:39 AM
I've tried exporting the local database, then importing from the azure database in workbench but it gives me an error saying access denied for user "myazureusername@123.456.678
but i can log into both of these databases no problem in workbench
so i don't see how?
 
any expert in yii
 
@DaveRandom: Well...when you hoverring your mouse to a question's title in SO, it will give you a link to folder path right?
@DaveRandom How does it work?
 
@hakre ping
 
@DaveRandom Some kind of strange for me. What is that?
 
@ThW can you help me?
 
9:42 AM
Hmm, doesn't C89 allow for scoped variables inside a condition?
 
morning
 
@JoeWatkins This would make it harder to migrate other code.
Not sure if worth it even still, though.
 
@NikiC hey, what did you mean by c89 compatibility? or rather, which part?
 
you could deprecate current methods ... @LeviMorrison
 
@Ja͢ck the convert_to_long call
 
9:44 AM
morning @NikiC
 
Is it a folder right?
 
@Fabien hi
 
uh hi
 
@NikiC /o\ kay, i'll take care of it
 
just a quick confirmation: it's in $_REQUEST that I fill in the request headers right?
 
9:45 AM
@Fabien can you help me in yii?
 
@JoeWatkins Possibly. Could add an E_DEPRECATED to PHP 5.7 as well (which I really hope we do and it basically only includes this kind of stuff)
 
Negative. And please don't random people out and request help. Ask the room and if someone can and wants to they will help.
 
@LeviMorrison yep
 
Does the server create a folder that contain an default document every time user post a question?
 
@Fabien okay, thanks bro
 
9:47 AM
@HendryTanaka Oh you mean the link to the question? It uses URL rewriting to extract the question ID (the number before the title in the URL) and do a database lookup, the question title is basically ignored, it's only there for SEO.
 
@Fabien
 
@JoeWatkins Part of me wants it to be release in tandem with 7 so we don't have anything stupid like E_DEPRECATED in 5.7 but OOPS! didn't actually deprecate in 7.
 
seems sensible ...
but far away ...
 
@DaveRandom Database lookup? What is that? How does it work?
 
@HendryTanaka It's fully database driven. The URL has nothing to do with the underlying file system. This is true of almost every modern web application, (almost) nobody uses direct mapping from URLs to files
 
9:49 AM
I guess if I deprecate in 5.7 I'd have to include the new ReflectionType API as well ^^
 
yes
 
So I'll keep deprecation and migrating parameters to use this as a separate RFC, which I was already planning on.
 
I remember mentioning another rfc ... consider it ... you don't want the return type changes dependant on bc concerns we can't let go of, because we psychopaths when it comes to bc ...
 
@HendryTanaka Go and read about "URL rewriting", something like this might be a good basic guide (although I don't know, I didn't actually read it)
 
@Fabien good mornings :)
 
9:51 AM
Morning Hakre :)
 
:)
 
@JoeWatkins Exactly.
 
@DaveRandom So interesting pal. Have you use this method before?
 
Plus, I'm perfectly BC already. Doesn't make sense to introduce BC in Reflection when the rest of the RFC is completely BC.
 
@DaveRandom So, it was not a directory?
 
9:55 AM
@HendryTanaka I basically never do anything else. Public folders full of PHP files is a thing of the distant past, most modern applications will have no more than 2 or 3 - often only 1 - "entry point" scripts (usually called index.php for historical reasons) which are responsible for analysing the URL and executing the appropriate parts of the application.
 
what would you call it if not index.php?
 
@FlorianMargaine main.php maybe? We can set the default document right?
 
@FlorianMargaine main.php? Never really thought about it. It's nothing like an "index" in the original sense of what it meant though.
It's an application entry point, not a directory index...
 
true...
I still call index.* my main files though :D
 
@JoeWatkins already had a look at that? I still have no idea…
 
9:57 AM
even in js
 
I'm happy to call it index.php though, not suggesting we try and change the status quo, everyone knows what it does, it just doesn't actually make sense if you really think about it but it also has almost no bearing on anything so fuck it.
 
@bwoebi not yet, will be today or tomorrow ...
 
okay fine
 
@DaveRandom So, what is the benefit by using URL rewriting?
 
if you'll have a fix, don't forget to merge into xml-protocol
 
10:00 AM
@Fabien you've a question or done it already?
 
@HendryTanaka Sane application structure, less repetition (no huge collection of includes at the top of every file), easier debugging if you have a single entry point, loads of things really. I'm not generally one to say "do it because everyone else does" but this is what everyone else does and it does make sense.
 
hm...
I can't get my cookie to work in phpdbg...
 
No success yet. Basically getRandomBool() to me is an AJAX function which returns instantly because... well that's how it works. Naturally the return is false/null rather than the return of the ajax call which comes later.
 
@Fabien ummm... wat?
 
@HendryTanaka if you have existing URLs but you change the content/processes behind it, it helps you to ensure that w3.org/Provider/Style/URI.html.en
 
10:02 AM
@DaveRandom Nice info pal, thnks. But, how I can stated? I was developing an application based on php and I think I'd like to use this method
 
@Fabien in my example code the doRequest is a stub of the AJAX call. maybe I should have made that more clear.
 
@DaveRandom It's relevant to this which hakre put together for me yesterday.
The arr is in actuality a list of urls and the getRandomBool() is an $.getJSON call
@hakre OOH. Lemme switch it then :P
 
How do I view my chat bookmarks?
I can't seem to find out how, and couldn't find a question on meta either.
 
@JoeWatkins let's say I have a default php installation using session_starts(), so the session id is in the cookies the client sends. I login in the browser, and I have my session id. How do I use this session id in phpdbg?
 
10:04 AM
@HendryTanaka I suggest you just follow some mod_rewrite tutorials (I'm assuming you are using Apache?) and play around with that first. Don't try and apply it to your existing application until you understand the basics of how URL rewriting works - if you have an existing application it will require major refactoring to apply this principle to it if you didn't design it like that from the start.
 
@LeviMorrison conversations tab
(asked the same question 2 days ago)
 
session_id in bootstrap (before session_start)
 
in $_COOKIE['sessid']?
 
@DaveRandom No, I'm using IIS as my php server in my intranet service.
 
Hey, can anyone suggest about mysql feild datatype for encrypted strings
 
10:07 AM
 
encryption done through codeigniter encrypt class
Please provide a suggestion
 
@HendryTanaka Then you are probably in for a world of pain and I can't help you I'm afraid...
 
Any suggestion guys ?
:(
 
@FlorianMargaine Are there still any other issues apart from the socket closing?
 
@bwoebi I'll have to see if the info f issue is still there
and I'll try all the commands to see if there's any parse error :P
 
10:09 AM
@FlorianMargaine php.net/session_id
 
@LeviMorrison you mean starred messages? I guess those aren't bookmarks so you don't have a list (sadly). You can only search which of your messages have been starred.
 
@HendryTanaka think about donating your project to a museum ...
 
beautiful @hakre :'(
 
@JoeWatkins oh. Thanks.
 
@hakre No, I meant bookmark ^^
 
10:10 AM
@JoeWatkins Why?
 
because you're using IIS+PHP and have something called an intranet ...
 
@FlorianMargaine have fun :-P
 
well, I'll have to do it for the extension anyway
 
@DaveRandom What's wrong with IIS?
 
@HendryTanaka I kid I kid, carry on ... (although think about that museum thing) ...
 
10:12 AM
@JoeWatkins I can tell you haven't worked in an office for a while. These things not only still exist, they exist in almost every business with 10-300ish employees.
 
IIS+PHP ?
 
300+ too, can confirm
 
Not necessarily the PHP part, but certainly IIS+intranet in every business with a Windows domain
 
@JoeWatkins Yes
 
Some people even use them
 
10:13 AM
I'm lucky though
last company was full geek, so it was an LDAP
 
it was a joke ... almost nobody uses IIS + PHP ...
 
and current company uses google apps
 
@JoeWatkins Again, you'd be surprised. Maybe not to power public websites, but intranet sites? All over the place.
 
@JoeWatkins It's me.. I'm using it right now
 
I personally favour using IIS as a reverse proxy to a sane environment though
(Which it's surprisingly good at)
@FlorianMargaine I have a complicated relationship with LDAP. AD sucks but there's a good reason that many phone systems still use it (what it was originally designed for), it makes sense there.
 
10:15 AM
I wouldn't be surprised, I'm aware there might be a considerable number of people doing stupid things, but in comparison to the number doing sensible things, it is almost nobody ... we all do stupid things behind closed doors ...
 
@JoeWatkins Excuse me
 
VirtualBox + CentOS + Nginx + IIS reverse proxy (despite being a lot more complicated) is waaaaaaay easier to maintain than PHP + IIS
 
@DaveRandom personally I love AD. Worked with it for a few years as a sysadmin, it was really great
 
Nah it's like LDAP's retarded younger brother. Not even sure how that's possible but... Microsoft found a way, as always.
 
@Florian I agree. ad is awesome. It's so much fun to work with
 
10:18 AM
IIS is perfectly fine, if you are running other stuff from Microsoft stack
 
@DaveRandom I can't any simple tutorial about mod_rewrite. Any sugestion?
 
Also the ACL system in AD is... really weird.
And the AD "forest" concept makes literally no sense. Like, at all. I've tried many, many times to make sense of it, and there's just no reason you'd ever create that structure instead of a simple replication set up.
 
why would you wanna use IIS with PHP anyways. I'm sure there are more suitable things for use ewith PHP than IIS? IIS is for MS stack usually
 
@NikiC Interesting, when the engine does a read_dimension it doesn't increase the refcount of the offset =/
 
@Jack that's ... not interesting :D
 
10:20 AM
Okay fine, it sucks
 
have you read the header ?
I think the way it all works is explained in the header
 
ehm?
 
@HendryTanaka Well it wouldn't help you with IIS anyway. You'll need to find out about however IIS does URL rewriting, which varies wildly depending on which IIS version you are using iirc. The one saving grace is it means you'll get to use the .net regular expression engine which, slightly surprisingly, is very good.
 
> ERROR 2006 (HY000) at line 6973430: MySQL server has gone away

... :(
 
10:21 AM
@Leigh \o/
What did you do?
 
zcat seven-gb-sql.gz | mysql -u user -p db
 
Oh, you sent a 7 million line query.
 
@DaveRandom Are you think the same with me that SO using Apache too?
 
LOAD DATA INFILE
 
^ that
 
10:23 AM
@JoeWatkins :*(
 
@HendryTanaka SO uses IIS. I can say this with confidence because it was largely built by engineers from Fog Creek, which means it was built in ASP.net.
(Also, I think that's pretty well known)
 
@JoeWatkins It doesn't say that the passed offset will have refcount 1 though ... so a straight convert_to_xyz doesn't work the way you expect it to.
because it only makes a copy if refcount > 1
 
If you are using .net technologies, IIS is the only think that really makes sense atm, not sure what the status of mono is now but last time I checked it was "cool toy, but not production ready if you are sane"
 
oh no, you can't change that ...
 
@HendryTanaka IIS + PHP is horrible, avoid it if possible. We use it because the original site was built in asp.net... :x
 
10:25 AM
yeah, i found out heh @JoeWatkins
 
@Patrick That... makes no sense.
 
I sent tyrael a message asking for karma so I can sort out my own PRs
 
@Leigh I have karma, I got it for that reason, and I daren't use it for fear of breaking shit
Esp. with the merging-up-to-7 mess.
 
Same reason I cited for not asking for it
Joe and Anthony have both basically said to me something along the lines of "man up"
 
...says Joe, the person who also won't commit stuff for the same reason :-P
 
10:31 AM
well, today I'm feeling brave
 
@DaveRandom Thnks...I will back soon...
 
@DaveRandom what? that we still use it? I know but those decisions are above my paygrade...
 
@Patrick Well yeh, but that it was used in the first place really.
15 mins ago, by DaveRandom
VirtualBox + CentOS + Nginx + IIS reverse proxy (despite being a lot more complicated) is waaaaaaay easier to maintain than PHP + IIS
s/Nginx/Apache/ if you are that way inclined
 
@NikiC Isn't offset only NULL in write_dimension()?
 
@Ja͢ck nop
$foo[][] = $bar
(I think)
 
10:37 AM
Ah okay, I see they do this check in SPL.
So you're probably right :)
It will probably do read_dimension with _W
Yay, segfault :D
 
10:53 AM
hey all
 
which vnc viewer do you use ?
morning
 
People still use VNC?
 
i never used vnc so wants to check it out
 
@bwoebi what separator do you use to split lines in the msg attributes of your help tags?
 
@JoeWatkins What's the status of github.com/php/php-src/pull/523 ?
 
11:08 AM
@bwoebi ^
 
@obiNullPoiиteяkenobi What are you actually trying to do? If using Windows, use remote desktop. If using *nix for a server, use ssh (servers should not have desktops). If using *nix as a workstation, maybe vnc is what you want, I don't know though as I've never had this issue (I almost never need remote access to a workstation anyway)
@FlorianMargaine Yay for multiple root elements!
 
yeah I think that's the issue
let me bandaid that
 
@DaveRandom i just installed Linux in other computer now trying to connect it with vnc
 
@DaveRandom looks closed ... I think wants revisiting and just merging ...
(dunno why closed, may have deleted branch, not sure)
 
11:13 AM
@JoeWatkins the last comment seems pretty reasonable actually
 
@DaveRandom that was it ^^
 
> "This is better than what's been done in core because this was done by us"
never said that
> but saying this is better than the optimizations in core? no.
never said that
 
@JoeWatkins wut
 
is \n 10 on the ascii table?
 
@FlorianMargaine in almost every table.
 
11:25 AM
@Danack k, thanks
wasn't sure whether LF was \n or not
 
@NikiC almost done; this is where i am now ... gotta go for dinner first :)
 
@JoeWatkins can confirm, even when closing gracefully the socket, the SIGABRT happens
@Ja͢ck lol, changing everything in the code that was just merged? :P
Hm... What are you fixing? I'm not sure I get what you're trying to do
 
11:44 AM
@SecondRikudo @hakre @tereško Predictions for end of this fight?
 
which fight?
 
Naruto vs Sasuke
 
@Fabien it will end with some lame bullshit , as always
 
Suggestions on this one? :
www.specialsite.com/form/form30103/index.php has got a form with a confirmation page. But we have a domain: cooldomain.com is it possible to have that one used for that page and also for the confirmation page?
 
@FlorianMargaine well, the current code would a) turn string variables into long when used as dimension and b) segfault if the offset is null ... the other changes were to use SUCCESS and FAILURE instead of 1 and 0 (it's common practice) ... and reduce duplicate code.
so i've fixed those ... now i'm beefing up the test case(s) to test more code paths.
it seems there are three different paths possible, objmap->ht, a DOM_NODESET or something else ... but I believe there's only one path being tested.
 

« first day (1454 days earlier)      last day (3510 days later) »