« first day (1412 days earlier)      last day (3539 days later) » 

9:04 AM
@Fabien AWS?
 
Nah. Tis fine though. Found my answer.
 
hey
 
So... today's the day for 5.6.0 GA?
 
Shouldn't it be 5.7.0 GA?
 
9:15 AM
@DaveRandom perhaps ... let's not countdown again ... that didn't work ...
 
Maybe we should merge some recurring jokes...
> To many developers this may look like PHP 6, but actually that's a facade, really it's PHP "7"
@JoeWatkins Where are we at now? Around -86400?
 
something like it yeah ...
 
Never! Joke reiteration for life!
 
@Fabien I think you meant 5."7".0 anyway
 
heh good point
 
9:20 AM
XHProf has a new maintainer, and a new CLA. Welcome https://github.com/FriendsOfPHP/uprofiler , community based and CLA-free.
 
/me grumbles about cla's and living in the real world ...
 
can we assume that pcre will always be there?
 
lots rely on it ...
but no ...
 
I think it's a safe assumption, --disable-all doesn't even disable it
 
i'm porting over extensions that still use ereg.
 
9:23 AM
ah it's one of them ... then yes ...
 
after i'm done i'm going to write up an rfc and kill that thing
almost done with opcache.
 
opcache ?
 
zend accelerator
 
I mean what you doin to it ?
 
Oh, I'm doing this to it :)
 
9:28 AM
ah
 
opcache done, 3 more things to go.
 
@SecondRikudo Indeed, I wonder why they chose that kind of procedure to buy.
 
1 message moved to bin
@TomášAresakMalčánek sorry, people are at work ;-)
We don't mind links and we don't mind oneboxes if they are temporary (i.e. delete/edit before 2 min window)
 
9:43 AM
:( ok
 
sup guys
 
he's got python in his name ... get him !!!
hehe, hi @pythonian29033
 
huh?
it's my fav language, even though technically i'm a php dev
most experience in php so... but I'm a programmer I'm adaptable to any language, just give me a spec
 
@pythonian29033 lol, I don't know if that was intentional or not "give me a spec"
 
@pythonian29033 any language is impossibru
 
9:52 AM
Weird bug, seems like it should be an easy win: bugs.php.net/bug.php?id=38409 /cc @Ja͢ck
 
nothing's impossibru when you're human
 
1 message moved to bin
 
(-_-)
 
@pythonian29033 Well there is knowing how to do something in language X, but there is also the thing of knowing the actual language
 
what d' you mean dunno if that was intentional or not? spec=specification
 
9:56 AM
@pythonian29033 because php until recently didn't have an official spec. I had to laugh :)
 
humans learn, i's what we do man!
 
I mean it in the same way as you have people who program, but you have also people who are programmers
 
oh ok then
aaah, true. . .
sorry, I'm still a noob only 24, little over 4 years working php exp.
 
@pythonian29033 age doesn't matter
 
that's what I tell the older woman I hit on all the time
 
10:00 AM
@pythonian29033 s/older woman/Lusitanian's mom
We all know her in here, so you can just call her by her name
 
^LOL
 
(00.) . . . .that must be an old people joke
 
@DaveRandom not sure whether undocumented or fix will cause bc heh
 
10:05 AM
:)
 
vs7
1
Q: Mailchimp template issue while using repeatable blocks

Roop KumarI have created form template in Mailchimp, I have been through the documentation and using all the Mailchimp tags respectively its even showing me the icons to drag/ movable content editable etc. whenever i edit the content its visible through the campaign test area but when i copy the block and ...

 
@Ja͢ck Just looking through it, even though it parses the value, everything gets cast to a string. I am guessing the reason for this is probably internal and possibly historic (something expects all php.ini values to be stored as a char * or something like that), I suggest - and will do a feasibility study on later - creating a INI_SCANNER_TYPED mode or something that returns things as the correct types
 
I solved it using Matches,pattern,ArrayList in java. Can we use regex to solve this? — Padmaja 35 secs ago
O___________o
 
Do you know some routing library that uses array routes?
And not Sinarta style
 
I want to encrypt the password same as wordpress does
 
10:07 AM
No you don't
 
and i am using this code <?php
include('wp-includes/pluggable.php');
$str = "test@123";
//echo md5($str);
$password = wp_hash_password('$str');
echo $password;

?>
 
what is a wordpress?
 
:D
 
@DaveRandom yeah, it's definitely aware of what booleans are ... just a matter of how much stuff depends on it, as you implied.
 
@akhilesh YOu're using single quotes '$str', don't use quotes at all in this case...
 
10:10 AM
@VeeeneX like this
 
@HamZa WTH wp_hash_password('$str'); ?? It hashes $str and not a variable
 
@akhilesh what are you doing?
 
@Ja͢ck Reason it came up is someone here was (not unreasonably, IMO) comparing a value defined in an ini file as foo=false as $data['foo'] === false, which obviously doesn't work
 
@VeeeneX euhm, wrong ping?
 
@HamZa i have removed this quote but i am getting this error Notice: Use of undefined constant ABSPATH - assumed 'ABSPATH' in /home/u1352km/www/wp-includes/pluggable.php on line 1836 Warning: require_once(ABSPATHwp-includes/class-phpass.php): failed to open stream: No such file or directory in /home/u1352km/www/wp-includes/pluggable.php on line 1836 Fatal error: require_once():
Failed opening required 'ABSPATHwp-includes/class-phpass.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/u1352km/www/wp-includes/pluggable.php on line 1836
 
10:11 AM
@iroegbu That's a Sinatra style
 
@akhilesh dude, what a pain. Stay away from wordpress if you don't know the basics...
 
@iroegbu it's a blogging platform thing
 
@HamZa Yes :D
 
@pythonian29033 he was obviously joking
 
@DaveRandom yeah, well, who does that?! :)
Don't they know php is all about the loose women types?
4
 
10:12 AM
@akhilesh what are you doing??
 
@HamZa i know the wordpress but please undrestand my problem
I am developing a web service for an android application and for that website has been already developed in WordPress so now if the user has signup from the website then can login from the android app an if they has signup from android app then they can login from website also but as i know that WordPress uses a special type of function to decrypt the password
 
warning, warning!
 
@RonniSkansing i want to encrypt my password same as wordpress does
 
no you don't
 
@iroegbu Something like this but with additional params
 
10:14 AM
@akhilesh the passwords are hashed, not encrypted
 
@PeeHaa Are you trying to use the Force, Jedi?
 
@RonniSkansing because i am developing a webservices for android application and website has been already developed in wordpress so user can login from website or apps with same login detail so for that i need to use sam eencryption method that wordpress uses
 
@akhilesh instead of trying to include different parts of wp and expand upon that (which does not work), the only "sane" option, is to make a plugin that exposes a api the mobile app
 
@akhilesh You obviously can't hack things together. My suggestion is: to search for a plugin that will create a REST API for you so that you can query this API and create a new user/post/ whatever
 
Does somebody know the smillar library to this which uses routes in array?
 
10:17 AM
@VeeeneX Room11 recommends fastroute
 
hello guys, i have a quick question, i made a little mistake and now in my database (sql) are some duplicated data (rows), so what is the command for this logic? : select all from table and if value of the question column exists twice then delete the whole row
 
My cat was going bat-shit most of last night. Really annoying me while I was trying to sleep. He's an indoor cat. This morning I get up to get ready for work, turns out the backdoor is wide open. :-/... fortunately our back door is just to the very small and locked car park but still. No idea how it opened. Also nothing seems stolen. Uncharacteristically my cats food is all eaten from his bowl. He rarely if ever finished his food.
 
@HamZa can i use this method wp_hash_password() to encrypt the password obviously i will use include('wp-includes/pluggable.php')
 
I am wondering if some other (hopefully) cats snuck in last night and ate it. I say hopefully because that's better than the rats. And if some did, did they leave? -_-
 
10:19 AM
@Fabien cats very regulary sneek into other cats indoor area to eat their leftovers =]
 
@akhilesh ok, reread what I said and what @RonniSkansing said.
 
@KraziiKiiD GROUP and COUNT?
 
@RonniSkansing My cat also HATES other cats. Just starts hissing and attacking. Last night he was more scared than anything. -_- God I hope theres not a rat suddenly living in my place.
 
@HamZa Oh, But I want something like this:
 
Going to check all the cupboards and under the sink etc tonight.
 
10:20 AM
Toro::serve(array(
    "/" => "SplashHandler",
    "/catalog/page/:number" => "CatalogHandler",
    "/product/:alpha" => "ProductHandler",
    "/manufacturer/:string" => "ManufacturerHandler"
));
 
@PeeHaa can you tell me the right order to write them, cus i wrote something with group and it deleted almost everything
 
@Fabien =/ I wish I had a cat
 
@KraziiKiiD Y U NO BACKUP?
 
@RonniSkansing What's stopping you?
 
Nooooooooooo
 
10:21 AM
@SecondRikudo Manga?
 
@HamZa i didnt know it wont work that command
 
@KraziiKiiD just select instead of delete first to do some sanity checks :|
 
this is why im asking for the right command...
 
yesterday, by HamZa
No naruto chapter for today, probably tomorrow or friday source-fr
 
@Fabien living conditions, atm me and the gf is in a small space, moving in a couple months, but all the places we are signed up for a "no cats allowd" =[
 
10:21 AM
SELECT * table WHERE question ....
 
So, BCMath is twice as slow as emulating 128 bit ints with an array of bytes :(
Sampling Poly1305Native: 10000 iterations took 3.6792109012604 seconds
Sampling Poly1305BCMath: 10000 iterations took 7.4424259662628 seconds
Sampling Poly1305GMP: 10000 iterations took 0.69703912734985 seconds
 
@KraziiKiiD You can make a SQLFiddle
 
@akhilesh just look at this github.com/ircmaxell/password_compat
 
@RonniSkansing Those are fairly default. Often you can ask the Landlord if you can have one and there may be a stipulation like "As long as you hire a carpet cleaner when you move out"
 
@Leigh How is GMP so much faster?
 
10:23 AM
@KraziiKiiD haha, noob, at my first company I messed up the database, populated the entire table again manually, then screwed it once again without backing up. . .not the happiest friday of my life
 
@DaveRandom it's optimised for the platform (asm optimisations etc.)
 
@VeeeneX i dont know to use anything new, i just needed to know the sql query for deleting the duplicate rows... :|
@pythonian29033 yes, mine either..
 
@iroegbu let me check it
 
@iroegbu that won't really help. He has a WP and Android app and he wants to create a user from the android app. So obviously he needs some API
 
@Fabien I could try, would be great =] lets see in a couple of month, thanks for the suggestion, might seem obvious but I had not really considered it
 
10:24 AM
@akhilesh oh! Write a plugin then or drop wp altogether
 
@DaveRandom Also Niki's operator overloading has sped it up even more.
 
@akhilesh if it is just stuff like logging in and etc you could you the xmlrpc interface
 
@iroegbu dropping wp sounds like a sane solution :D
 
@VeeeneX i was already on this two sites =]
 
10:25 AM
@RonniSkansing Most don't. Another consideration most forget is rent is negotiable. Save up a few months if you can and offer the LL 3-6 months in advance for a reduced PCM rate. I've never failed doing this. Easy to get £50 PCM in uk this way.
 
@KraziiKiiD So?
 
@VeeeneX im trying somethin with:
:18544693 DELETE FROM table_namequestion A WHERE ROWID > ( SELECT min(rowid) FROM table_name B WHERE A.key_values = B.key_values);
 
but what is "A" and "B" here?
 
A stupid alias
 
10:27 AM
yes
 
so the logic is that i need to copy the table first?
 
Some random idea: creating a browser plugin for SO. With this plugin we can mark someone as an helpvampire. The more votes he get, the higher ratio he has of being a helpvampire. This plugin is connected with a webapp independent from SO...
 
@KraziiKiiD I don't know
 
@Leigh Any idea what difference avoiding some DO_FCALLs makes to those figures (i.e. if you use funcs instead of operators)?
 
@Fabien yea, great idea but I can not use that one, all the places are signed up are public housing as in apartments where the rent is fixed only to cover the expenses (no revenue).
 
10:31 AM
@VeeeneX is there a way continuing this?
DELETE FROM Table tip_question WHERE question > 1
 
@RonniSkansing Ah fair enough
 
delete the whole row
 
@KraziiKiiD Best idea :D
 
@VeeeneX yes :))) but how im continuing? to delete the row or delete the column's names
 
@DaveRandom I don't have numbers, but it's measurably faster. I.e. c, h and r are all GMP objects
 
10:34 AM
@KraziiKiiD I don't have any idea
 
Actually the ridiculous chain in the import method is a better example of where fcalls are avoided
 
w00t w00t
my employer gave me the go ahead to do my foundation degree while working, and has offered to request financial help (and hinted that I'll get it too)
5
I'm registering to start in February next year :D
 
@JoeWatkins I believe you're a similar age to me, you could probably get straight into a masters based on industry experience.
 
Congrats @JoeWatkins
@JoeWatkins Going for that student discount :) #1 thing you should know is with a student card you get a free item from the 99p menu at McDonalds when ordering a meal.
 
@JoeWatkins congrats man
 
10:38 AM
@Leigh I could do that ... but it's 6 years of study, I can stop at foundation degree, do some real work for a year and then do another two years for BSc, I think ...
 
@Leigh return ((((((((((((( <-- lisp much? :-P
 
4 years is long enough to wait for a sense of achievement ... probably ...
 
@DaveRandom lol, have to make all of the operations go in the right order, or the elements get treated as numbers instead of GMP objects :)
 
@DaveRandom never thought lisp is so sad..
 
@AndreaFaulds I didn't read the whole backlog, what was your problem with is_long?
Ah, you mean that we don't convert is_int etc as well, good point
@DaveRandom @Leigh There's some numbers here: wiki.php.net/rfc/operator_overloading_gmp#performance
Even without the overloading the functions should be faster
 
10:45 AM
@NikiC If I add some tests, would you object to this: github.com/lt/php-src/compare/gmp-import-export
 
@Leigh there's no such thing as bool/false/true ;)
 
:x it compiles!
 
!!! The PHP Development Team announces the immediate availability of PHP 5.6.0 http://php.net/archive/2014.php#id2014-08-28-1
Stupid chat oneboxing
 
PHPDBG yay \o/
Now to wait for Remi to update his rpm
 
PHP 5.6.0 is now available
22
 
10:50 AM
@DaveRandom yeeee \o/
 
@Leigh I don't believe you
 
sigh I'm running 5.7 ..
 
I mean, the bool part might compile, but there are other things (like usage of undefined vars) that couldn't possibly work
Unless I'm going crazy or something
 
@NikiC there's probably a define somewhere making it work :D
 
for example, what's ordeere? github.com/lt/php-src/compare/…
 
10:52 AM
is expressionss the plurilisation of expressions ?
"Constant scalar expressionss."
 
@NikiC Opened laptop... looks like I didn't ctrl+s :(
 
typo @Fabien
 
@Leigh rebase && push -f All The Things! :-P
 
@DaveRandom Well, I have hacked this up ... /cc @NikiC
But God knows whether there's any regression with a fix like that.
 
I know @JoeWatkins :P
 
10:59 AM
hehe ... I knew that ...
 
I knew that you knew he knew.
 
die; // before it gets out of hand.
 
@Ja͢ck hmmm, seems like too easy of a win
 
inorite!
running test cases now
but regardless of its outcome, I think it's not a trivial thing ...
The good news is that booleans can be converted back into strings almost losslessly
Alternatively, we would have to pass a context to the hairy beast.
but i don't see any easy solutions there unless the user is completely in control over the type inference.
@DaveRandom I think someone else in that thread wanted to have special behaviour for null, numbers, and all kinds of shit, too.
Yay, 6 parse_ini_file() test cases broke ... probably expectedly.
 
Hey guys, sorry for getting in the middle. But if any of you are geeks who are really interested in science as a whole, check out this new Area51 proposal Scientific Imagination, and how it is supposed to be like.
 
11:08 AM
@Ja͢ck Well numbers should also be processed properly - the parse_ini_file change-log even claims they will be. I think what is required here (because this would cause an epic userland BC break if not) is to add a new mode constant which types the values properly.
 
Well, currently, booleans are already special in the lexer ...
 
And numbers aren't?
 
My point being that this particular step may still be considered helpful ...
I don't think numbers are treated differently in the parser, hang on
Hmm, interesting ...
Yeah, it supports some operators too.
And arrays :)
 
@Ja͢ck Well yeh, because you can do masks for error_reporting
 
Exactly.
And it understands constants, too.
 
11:15 AM
Actually @Ja͢ck changing the lexer is probably not an option, it won't play nice with INI_SCANNER_RAW
 
quite nifty, that.
 
or are there two separate lexers?
 
I didn't change the lexer.
 
parser then
/me never gets that distinction right
 
Yeah, it's the parser :)
 
11:17 AM
anyone hosting anything interesting on bitbucket?
 
@DaveRandom But it won't have an effect .. exactly because I didn't change the lexer.
 
@tereško You are asking because you want a review of the service or...?
 
With raw mode you get the "false" and "true" back.
 
@Ja͢ck So there are two separate parsers or...?
 
No
 
11:20 AM
I may end every message today with or...?
 
When you select raw mode it just skips the compiler altogether ;-)
Or rather, it doesn't do anything with the terminals
 
Oh OK, makes sense
 
@DaveRandom because I was interested in what are the major differences (compared to github .. aside from mercurial of course) at the surface level
 
Meh, later tonight I'll just put it together in a PR and see how it flies with internals :)
 
@Ja͢ck I highly doubt that changing INI_SCANNER_NORMAL is a good idea, both internally and in userland. I think a new mode is the only sensible thing to do here.
 
11:22 AM
So, INI_SCANNER_PHP7 then? <insert troll face here>
 
@tereško @Jimbo has used it a bit, I know, and I think @PeeHaa uses it as well
@Ja͢ck you mean INI_SCANNER_PHP"7" presumably
Seriously though, I think INI_SCANNER_TYPED
 
Okay, let me dig a little bit ...
I think that idea has merit.
But ... then it would need to extend to numbers, etc. yeah?
 
Can I sort this somehow?
 
Otherwise "TYPED" only extends to what we like
 
$this->request_method == 'get' && $this->request_method == 'post'
 
11:25 AM
@Ja͢ck Yeh it would type everything correctly (scalars, obv)
@Ja͢ck the changelog entry for 5.2.4 seems to be a total lie though uk3.php.net/manual/en/function.parse-ini-file.php 3v4l.org/K5RuJ
I'm assuming the same change would apply to parse_ini_string, would be pretty ridiculous if not
 
$this->request_method == 'get' && $this->request_method == 'post'
will never be true
 
@JoeWatkins Oh sorry not && but or
 
@JoeWatkins Schroedinger's HTTP request?
 
the cat is false ...
all the dang time ...
 
:D
 
11:31 AM
the god is true?
:)
 
yes
@JoeWatkins So how can i sort this ?
$this->request_method == 'get' or $this->request_method == 'post'
 
sort ?
 
Mistake
short it
 
@VeeeneX *shorten
 
yesssa
 
11:33 AM
no
 
Yeh, don't do that
Unless you have a very large set, or a set that may change in future
 
@DaveRandom It isn't an array
It won't be changed in future
 
-_-
 
You didn't write it as an array, but it could be written as one (you have a set of methods you are looking for)
 
@DaveRandom wasn't parse_ini_string() only introduced later? :)
 
11:35 AM
show moar code, missing context
 
In any case, I have a pretty good idea on how to get this working ...
 
@Ja͢ck 5.3, but the point is that the "octals and hex parsed as ints" should surely apply to both?
 
It doesn't?
 
Yet not only are they returned as strings, they don't seem to have been evaluated at all
@Ja͢ck Doesn't seem to apply to either, is my point
 
11:36 AM
haha, evaluated .. you must have it confused with something that gives a crap about types .. other than string lol
 
@JoeWatkins Tadaaa pastie.org/9509899
 
anyway, let me hack some stuff into lexer and see where that leads me :)
 
So how to make this code shorten? $this->request_method == 'get' or $this->request_method == 'post'
 
if (in_array($this->request_method, ['get', 'post'])) { ... } maybe ...
 
^ this is what I was saying. But probably don't do that
 
11:39 AM
Also make sure your PHP version supports []s if you do.
 
Would be nice if we had $var in [] syntax
 
@tereško Had some projects on it, but only because it had free private repos. Hated the interface
gitlab FTW!
 
@DaveRandom I was thinking exactly that the other day :)
 
There is also a Go selfhosted github alternative if you don't want ruby on your machine
 
$something in $array .. see, beautiful.
 
11:41 AM
Is in a reserved word?
no
 
We should make lol a reserved word
 
@Ja͢ck Yes, that would be beautiful
 
So unless we have keywords-as-identifiers it's probably not going to be accepted, there will be a crapload of codebases with function in() {} I expect
 
Yes =(
 
we can integrate it into @JoeWatkins ustring project: $foo = $string lol UString;
 
11:42 AM
^ yep
 
@DaveRandom Though, we can add an exception for function names =D
 
@Ja͢ck And thank you!
 
argh, too many things ...
 
@Ja͢ck That's actually all I want for keywords as identifiers anyway, method names and class constants
 
killing ereg, fixing lexer, adding in ...
 
11:44 AM
Functions would be good too I guess, but a lot of keywords that wouldn't apply to
 
functions and methods are treated in a similar manner.
brb, dinner.
 
@Jack meals are for wimps ...
 
@Ja͢ck Yeh but you can define a method called e.g. isset() and it won't be ambiguous, you can't define a function called isset() in a sane way
 
@DaveRandom there are some that would say, if you have defined any functions at all in php, you are not sane ...
not me of course ... I love punishment ...
 
How do new PHP version work with their extensions? Like when I install php55w-pdo for php 5.5, what do I do if I install 5.6?
 
11:52 AM
@JoeWatkins I do not subscribe to this. The people who say that are the people who have classes called Utils.
 
I actually meant any function ... because you should have defined it in jQuery or node, or dreamweaver, or CSS3, or one of those languages, obviously ...
@Fabien wait for 5.6 ext's ...
 
So probably not worth installing 5.6 yet :(
 
@Fabien just build it youself
 
yeah do that ...
 
php multi?
 
11:55 AM
the ones in repo's are generic
you could do that, or you could just install over your current 5.5 or 5.3 or 4.8 or whatever ...
 
No php version installed presently.
 
I just build straight from git, I have a script where I just pass in a ref name (tag, branch, whatever) and it just rebuilds the version currently in use
 
When I build it though, if I forget an extension, say.. pgsql, do I need to rebuild to get it?
@DaveRandom Share and share alike please :)
 
It's like 10 lines or something, hang on
Can't get at ssh on that box from here @Fabien, give me a few mins
 
nw cheers
 
11:58 AM
nearly all extensions can be built as modules after the build ...
by the way ...
 
Oh. I should learn how.
 
phpize && ./configure && make && make install
 

« first day (1412 days earlier)      last day (3539 days later) »