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

'scone @PeeHaa
 
@JoeWatkins So if I was after pgsql in that instance?
 
cd /usr/src/php-src/ext/pgsql
phpize
./configure
make
make install
 
@JoeWatkins What is a 'scone? :P I doubt you meant the food :)
 
is gone ...
 
12:02 PM
@JoeWatkins Thank you
 
some stuff need external library, pgsql included, if you have it in a strange location you'll need configure to look like
./configure --with-pgsql=/strange/location
 
furry muff
 
@JoeWatkins Y U NO 10K?!?!?!?!?
 
where /strange/location/lib and /strange/location/include exist and contain libraries and headers respectively ...
 
@DaveRandom a year ago Joe was at 2k (: so it's a progress :p
 
12:05 PM
@DaveRandom because I don't answer much, only really answer stuff if I'm sure nobody else can give a better answer ... so stuff connected to caching or threading ...
doesn't come up much ... I am mostly here for the kittens ...
 
@JoeWatkins one day i'm a hero, next day i'm a wimp .. such confusing
 
lol
 
Hmmm, if you were making a php script that doesn't run through a web server, where do you normally put it on linux? Dir wise.
 
Glad to hear you have a nice employer btw :)
 
something/bin
probably /opt/bin or /usr/local/bin are good places ...
if lots of accompanying shit to go with it, folder in /opt and symlink main binary in /usr/local/bin is pretty common ...
 
12:11 PM
opt/bin it is. Cheers
 
@Fabien Is it part of an application or a global script?
 
@DaveRandom git checkout -b ini-scanner-plus ... :)
let the magic begin
 
@DaveRandom App
Any luck SSH'ing in to that box?
 
yay! PHP 5.6.0 released
 
12:27 PM
yeah it is :)
 
What package is libz.so again?
zlib-devel gotcha
 
If I want a function to accept a parameter as by-ref, do I have to use "z" in zpp, and type check it separately? (changing the value of an &long parsed by zpp isn't working)
 
@Fabien yeh, just making the script a bit less fragile, doesn't do any error checking atm
@Fabien Then put it with the rest of the app code... (outside docroot, obv)
 
@DaveRandom Cool cheers.
 
12:39 PM
@Ja͢ck I think ini's being always strings is intentional
@Leigh What are you using mpz import/export for?
 
@NikiC I guess, literally base256 encoding.
 
@PeeHaa omg
 
I'm doing a bunch of crypto stuff, and going between large ints and binary strings is a real pain when trying to keep it fast.
 
@NikiC yeah i know =/ it's related to this bug report.
 
Hi All
 
12:42 PM
especially when I need to specify endianness (i.e. bin2hex isn't good enough)
 
And by bug report, I really mean feature request ;p
 
Wheres the best place to log PDO errors, in a file or to a DB?
 
You want to log PDO errors to a database? Good luck with connection errors.
 
@CodeX if you can't connect to your DB, then logging to the DB is the obvious choice, right ;)
 
Definitely the right choice
 
Haha!
Im thinking about logging login attempts to DB, got confused
 
@CodeX I would suggest not logging the exception as is .. strip out the backtrace.
 
HUZZAH Y'al :)
 
Ohhh, login attempts .. that's a different story :)
 
12:45 PM
I want to log both, login attempts in DB and PDO to file
if i log to file where should the file go?
if(!isset($_SESSION['attempts'])) {
$_SESSION['attempts'] = 1;
}
else {
$_SESSION['attempts'] = $_SESSION['attempts']+1;
}
bad method?
 
That OnePlus phone looks really nice. I want it! -_-
@SecondRikudo Gimme yours if you get one.
 
i'm going to go back to killing ereg ...
 
if(isset($_SESSION['attempts']) && $_SESSION['attempts'] >= 5) {
// show captcha
}
 
Good morning
 
user895378
12:49 PM
morning
 
@NikiC this is where I am so far do you have a specific objection to exposing these functions?
 
user895378
@Ja͢ck do it! do it! do it!
 
morning @rdlowrey
i'm halfway through
 
@rdlowrey morning
 
Oh, $_SESSION['attempts']++ will count :/
 
user895378
12:51 PM
@JoeWatkins I don't know what a foundation degree is, but that sounds awesome man. Congratulations :)
 
@Leigh but doesn't a hex import work well for that?
 
@PeeHaa Or when you want the last row, and you fetch all records, run foreach, and then just use whatever the last $row is.
 
@NikiC You can't tell gmp_init() to import 16 bytes, stored as 4x4 byte words in little endian order, or 16 bytes as a 16 byte word in little endian order
 
@Leigh doesn't matter for base 256 though ^^
 
ok, so I described my original problem wrong
not technically base256
 
12:54 PM
@webarto Thaty's how auto increment works right? :D
 
@Leigh Do we really need the count parameter?
 
I guess not, it can easy be removed and have the user do a bit of substr()ing
 
I prefer substr over having to skip params
and I prefer everything over by-ref out parameters ;)
 
You're right, I should keep it simple, instead of trying to expose the full underlying API
 
How much memory is required to build php?
 
12:59 PM
by-ref out parameters must die!
hmm .. dafuq is oniguruma ?
 
user895378
@Ja͢ck kill them all. "Exterminate all the brutes!"
 
from memory. some i18n thing
 
user895378
Edited for great literary justice.
 
it uses something called regex_t ... not sure what that is.
hehe
 
@Ja͢ck something we should remove imho
pcre should be enough for everyone
 
1:00 PM
right :)
 
if you need crazy encodings, convert back and forth to utf8
 
I've tried to use the pcreposix.h but somehow i couldn't make that stuff work =(
 
cc: Internal error: Killed (program cc1)
When trying to build php but my instance has 1gb mem. Should be plenty no?
 
@rdlowrey three quarters of honours, I'll hopefully get to take it that far, it'll take four years to finish foundation degree, that's enough to bite off in one chunk I think :)
 
user895378
That's a lot of school for old folks like us. Not sure if I'd have the patience to do that now that I'm not 20 years old anymore. That's awesome though :)
 
user895378
1:09 PM
I love academia, but I prefer to learn on my own terms these days.
 
oh, this is lovely .. so, now i have regex_t, mb_regex_t and onig_regex_t ... hngnnnnn~
 
user895378
Sadly, no one seems to recognize a degree from the @rdlowrey Internet University.
 
> ... now I want to get all files from root directory and subdirectories except one subdirectory.What will be the code?
 
@rdlowrey probably because you don't take in any students?
 
dat "request"
 
1:10 PM
@PeeHaa hmm filter iterator?
 
@rdlowrey I'm not a dumb blond chick so I doubt I will get in :P
@Ja͢ck over http ;)
-1
Q: w How to get all files in froot folder and subfolder except one folder

user3370495I was using file_get_contents to get index.html of my site now I want to get all files from root directory and subdirectories except one subdirectory.What will be the code? <?php $contents = file_get_contents('http://example.com'); //this returns only index.html ?>

 
user895378
@PeeHaa And here I thought my admissions process was super secret. How did you know!?!?!
 
Your profile... ;)
 
user895378
lol
 
@rdlowrey it is actually, but ... I really, really want it ...
 
user895378
1:11 PM
There's no such thing as time ill-spent in the pursuit of knowledge.
 
theology
ah hah hahaha ... I got ya ...
yeah but you're right .... I look forward to getting stuck in :)
 
I'm looking at a job at a uni locally; free BSC included.
 
it's going to cost me ~15k ...
do it
/s/me/someone/
 
@Ja͢ck NEVARRRRRRRR! BYREF FO' LYFE YO!
 
1:16 PM
Danka Dave
Sample usage match the one you stated above?
 
hmm, who has php-src checked out and has a working pgsql?
I need someone to help me test this change.
 
@Fabien If you pass a git ref as the first arg, it tries to check that ref out and bails if it can't. Otherwise it just builds the current state of the repo (although it always does git reset --hard and git clean -fd so it doesn't play nice if you are developing)
@Ja͢ck Almost certainly @rdlowrey
 
user895378
Actually I don't at the moment, but I can test it later. Just in the middle of a bunch of stuff right now.
 
@rdlowrey much obliged; here is the complete diff with master
 
user895378
@Ja͢ck just want me to try ext/pgsl/tests? or do you have specific things you need?
 
1:24 PM
@DaveRandom ref?
 
@rdlowrey The tests are mandatory ... the fix itself affects pg_convert() amongst others.
 
@rdlowrey ... riiight .. try to sell that one to the PM
 
As far as removing an extension counts as a fix hehe
 
@Fabien Usually just a branch or tag name. Sometimes (e.g. if you have multiple remotes and are trying to check out something that exists on both) you might need to do remotes/<remote_name>/<branch_or_tag_name>
It's just passed directly to git checkout $1
 
1:28 PM
@tereško just ordered that sql antipatterns book, thanks the tip
and thanks to whoever starred that msg
 
@DaveRandom so 5.6.0 would be php-src/php-5.6.0 ?
 
WTF ads now also on meta
63
Q: Volunteer to help mentor one of 16 women starting a career in programming

LauraDiversity in tech has become an increasingly urgent issue, both on- and offline. We have always tried to make Stack Exchange an inclusive environment, but we know we can and should do more. One thing that we're excited about doing is participating in a new fellowship at the Flatiron School, an...

Cannot be downvoted because fuck you that's why
 
hmm, in retropect the git reset/git clean should probably be after the git checkout @Fabien
 
switched
 
user895378
I hate when command line applications only accept --help and not -h
 
1:30 PM
YES!
 
@PeeHaa because fecking locked
 
@Fabien So first just do git clone git@github.com:/php/php-src.git, then configure $php_src_root as the directory where you just did that
 
@Ja͢ck Didn't I just say the same thing ;)
:D
 
Also, a moderator with only 101 rep can't be taken seriously.
 
user895378
$ psql -h
/usr/lib/postgresql/9.1/bin/psql: option requires an argument -- 'h'
 
user895378
1:31 PM
F U TOO POSTGRES.
 
Then you should just be able to do ./build-php.sh php-5.6.0 (where that references the tag, note that the "php" in tag names is lower case)
 
@DaveRandom Ah right
 
user895378
I don't care who you are, -h should always be "help" ... Figure out something else for whatever you wanted to use -h for.
 
@rdlowrey try /h ... haha
 
@DaveRandom So checkout to the version then run the build?
 
1:33 PM
@Fabien Well the point is that if you pass the version to the first arg then the script will try and check that out for you, otherwise it will just reset/clean whatever is checked out and try to build that
 
ah right
 
lol wut
If I say fuck u?? your crystal ball is able to aswer? — Domenico 25 secs ago
engrish cursing\o/
 
Running now @DaveRandom
 
Here. Have a star
 
1:35 PM
wow, fastest 5star ever seen!
 
configure: error: Cannot find enchant
Always errors -_-
 
@Fabien You almost certainly don't need that anyway, make sure you modify the extensions list to suit your needs
I'm not even sure why I still have that in my line, I think I played with it once for like 2 days 2 years ago or something
 
Editing! I didn't sign up for this!... cool cheers I will edit
 
@CSᵠ "php sucks" got 10 stars in few seconds, though..
 
@NikiC quick benchmark, mpz_import is giving me a 120% performance increase for simple cases (yes, 120, not 20), and for a larger example I'm getting 200% - obviously scales with the number of times int/bin conversions have to be done over the course of a program.
 
1:39 PM
@Leigh what does 120% mean?
 
over twice as fast (i.e. 18 seconds without, 7 seconds with)
 
@Fabien also if you find some extension dep is missing (like with that you just need to install libenchant I think) then just install it and run the build again
 
Yeah, I had those kind of issues with multi. Became a bit of a package hunter
 
@DaveRandom I'm tempted to just say "if you don't like .ini, go for json or yaml" :)
 
user895378
The more C I write the more I find myself hating echo and instead favoring printf and sprintf for things in userland PHP ...
 
1:41 PM
Good morning
 
user895378
@ircmaxell morning
 
@rdlowrey why use printf if there is no formatting?
 
@rdlowrey I know, me too, it's really quite odd
 
@rdlowrey I use those functions quite a bit actually :)
 
1:42 PM
Or, even, vsprintf() for that extra vararg street cred.
 
user895378
@RonniSkansing print() then
 
morning @ircmaxell
 
user895378
print() is a language construct like echo, so it's not any slower
 
@rdlowrey Also, expressions and returning 1 and junk.
 
1:44 PM
how goes things?
 
@ircmaxell i'm throwing ereg in the wood chipper, so things go well here :)
 
@Fabien Built with that script, just now so it definitely works ;-)
 
@Leigh Okay, after long discussion we have approval for gmp_import/export in 5.6.1
 
@DaveRandom cool. Just removing libs for me atm
 
@NikiC long discussion where?
 
1:47 PM
irc
 
user895378
Just tried to DM @AndreaFaulds on twitter. Wouldn't let me because she doesn't follow me :(
 
@NikiC you mean badgering heh
 
user895378
I never knew twitter imposed that restriction.
 
Ok, could have invited me :p
 
@Ja͢ck I prefer euphemisms ^^
 
1:48 PM
hehe
 
@rdlowrey I don't follow you? Lemme fix that... done!
 
@rdlowrey What about that new thing they call email?
HELO and shit.
 
user895378
@webarto Don't bring your fancy intarnets knowledge into this @webarto.
 
Haha.
 
@rdlowrey To prevent spam. Spam is a serious problem for Twitter.
 
1:48 PM
@Leigh It wasn't really about the feature in particular, just whether it's okay to add functions in dot releases. Eventually jpauli got annoyed and gave in :P
 
Actually he gave in and then you asked him again lol
 
My opinion is - no API changed === no problem
 
user895378
@AndreaFaulds makes sense. I probably should use more appropriate tools like freenode for stuff like that but twitter is just easier sometimes.
 
@rdlowrey Options to contact me: 1) Twitter @reply, 2) Twitter DM, 3) IRC mention, 4) IRC PM, 5) ajf@ajf.me
 
Anyone knows how to use PHP EvTimer class, part of ev?
 
1:50 PM
Hey @rdlowrey did you know about the dechunk stream filter?
 
user895378
@DaveRandom yes, but it's useless for a non-blocking client as it currently exists.
 
user895378
Because you have to determine the message length yourself.
 
Oh that sucks balls
 
user895378
If you use the stream filter you never know when the last chunk was actually received.
 
user895378
So I have to parse chunks manually in userland (which is very slow).
 
1:51 PM
I am getting Class 'EvTimer' not found
 
^^ there's your problem.
 
user895378
@KoCour Because you don't have the requisite extension installed.
 
user895378
It's not part of PHP. It's an extension.
 
user895378
 
@rdlowrey Ive installed it using pecl
 
user895378
1:52 PM
Clearly you haven't if you're getting that error message ;)
 
Restart server.
 
user895378
People actually use those event extensions with the web sapi? Who knew ...
 
Uninstall OS, try again.
 
@rdlowrey I see it phpinfo, Ev support: enabled, Debug support: disabled, Version: 0.2.10
 
user895378
Then you almost certainly have installed it for a php binary that is different from the one you're testing with.
 
user895378
1:53 PM
It's just that simple.
 
@KoCour You already have your answer
 
I like how @rdlowrey makes everything so simple.
 
@Ja͢ck LOL
 
user895378
Everything is simple.
 
user895378
All my problems boil down to "@rdlowrey is doing it wrong"
 
user895378
1:55 PM
:)
 
@rdlowrey They say ev 0.2.10 is for PHP PHP 5.4.0 or newer, I use 5.5.9, so I dont think so
 
user895378
@KoCour you need to ensure that the same php binary you're using to view the phpinfo() output is the one you're using that gives you the "class not found" error. Because it's not currently.
 
user895378
And that's the problem.
 
user895378
Either that or you're using a different php.ini file for the two tests.
 
1:56 PM
Where'd that php debugging gif come from on phpdbg's site?
 
user895378
One way or another the one where the class is not found does not have the extension loaded.
 
@Fabien Almost certainly @webarto or @salathe
 
@Ja͢ck Then you're going to burn the wood chipper?
 
@Fabien @webarto done all the pretty things
 
1:58 PM
3 times I want in two sentences
wow
 
@Danack probably send the wood chipper into a black hole.
> ubantu!
 
@web-ART-o
 
I want a clearer question. — Ja͢ck 8 secs ago
 
hehe
 

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