« first day (1565 days earlier)      last day (3605 days later) » 

00:13
The other two votes passed :)
user895378
I'm more excited than I probably should be about FAST_ZPP passing :)
I like the FAST_ZPP API better.
@LeviMorrison Me too!
It's more explicit
Also, the types line up with the variables
It's also inlined, so it's efficient
There's no & necessary
etc.
Oh, and compile-time type checks!
and all the nice things!
@LeviMorrison by the way:
> Hi Levi,

> Do you like me to make final check and merge your pull request?
> We need it :)

> Thanks. Dmitry.
@rdlowrey Will you modstar my new -votes?
user895378
@AndreaFaulds yup :)
The answer is yes, Dmitry, but I am having an issue. The build fails on travis for basically all return types tests, but it doesn't happen for me locally.
00:26
@rdlowrey Thanks!
@LeviMorrison oh dear
user895378
@LeviMorrison PR 997?
@rdlowrey Yes.
user895378
k ... will build with it shortly and see what shakes out.
Anyone know if there's a config setting for not building the man pages - I can see the one to change the directory they're installed into but can't see a "who the fuck uses man pages" setting.
user895378
no idea
00:36
uuuuugghghghghghghgh
time for me to finally get stuck in and fix decbin/hex/oct
have been procrastinating
hello there folks
user895378
@LeviMorrison first test run on CentOS with kernel 2.6.32 has no Zend/test failures that aren't expected failures. About to do windows ...
Hmm. I wonder why Travis failed then.
can someone help me with a newbie question? Im trying to get my $url variable to print, but it will only output the variable name, not the actual value:
<?php foreach ($sites AS $site => $url) {
if ($site == $office) {
continue;
}
echo '<li><a href="$url">' . $site . '</a></li>';
}
?>
the value of the $url is set to 'http://www.#.com'
Single quotes don't get variable interpolation.
try this:
 echo '<li><a href="', $url, '">', $site, '</a></li>';
note the commas - you can do that in echo to have it work on a list.
00:49
@Charles well, that worked. Wow. never seen it like that before
Beats the hell out of using double quotes and escaping them, or doing more string concats.
user895378
@LeviMorrison oh wait, I'm dumb. Didn't do a debug build on centos first. Please hold for real results :)
@Charles thanks for learning something new!
ok im out:)
@redshift good luck!
@rdlowrey Travis failed debug and release modes, so even still ^^
user895378
00:51
Oh, well release mode had no problems.
oh wait, has anyone here used plnkr before? if so, are you able to do php? for some reaosn when I write php it won't work (yes, I appended the .php extention to my filenames)
works fine in phpfiddle
user895378
@LeviMorrison In windows with --enable-debug I get zero unexpected failures.
user895378
Will try windows release mode for good measure ...
include 'data://,<?php function foo(){ echo "bar\n"; }';
^ is this worst than eval in some way? (not joking, real question)
user895378
Only worse because it's less readable ;)
01:05
@marcio why the fuck are you even asking this :o
user895378
@LeviMorrison windows Release_TS\php.exe has no problems either.
@bwoebi I've got a "crazy" idea that would need a language with good runtime code generation capabilities... wished it was PHP. The idea is:
"write unit tests and let some engine generate an implementations that passes the tests"
Like a "code jeopardy" tool
*generate implementations
I love writing a unit test case that will obviously pass, only for the function to fail...
also, mornin
user895378
@PaulCrovella those are the best kind.
if we had fake macros... this could be done in lisp but who uses lisp?
@rdlowrey not really concerned about readability because everything after "data://,<?php " is being generated.
@PaulCrovella got your point, well, at least the tests had to be done right xD
user895378
01:17
@LeviMorrison Zero unexpected failures with --enable-debug on CentOS. Trying Mac now ...
@rdlowrey my server… or do you have access to any other mac?
@marcio oh, that had nothing to do with the discussion here.. I just had a bug :)
user895378
@bwoebi yup, your server :)
@PaulCrovella lol, and yet you made a good point (how smart of you)
accidental problem solving all over the place today
@AndreaFaulds couldn't agree more.
Making a small leap every year is much easier than a massive leap every five years
"this forces users to upgrade" except it doesn't force anything. A lack of lts doesn't magically mean everyone upgrades, it just means what they're running isn't supported anymore.
@PaulCrovella having LTS doesn't mean what they're running is either
people happily use completely unsupported releases
Exactly my point.
user895378
01:40
@LeviMorrison No unexpected failures on Mac either. At this point I believe it's safe to merge. I'll add my two cents about "Don't know why travis hates this PR but tests pass everywhere for me"
user895378
^ for reference
Wow
PHP's base conversion stuff is an absolute clusterfuck
It's just... godawful
I was going to try (for a third time) to fix decbin/hex/oct for bigints but... I can't
I'd have to break everything
they're such a mess :/
base_convert, too
decbin($x) is NOT base_convert($x, 10, 2)
bindec(decbin($x)) is NOT $x
base_convert($x, $y, $y) is NOT $x
They produce DIFFERENT OUTPUT DEPENDING ON YOUR PLATFORM
what the hell
who wrote this crap
user895378
@AndreaFaulds where can you view the actual test output showing segfaults from the travis run?
01:49
git log and check ^^
@rdlowrey The build log.
@LeviMorrison Good idea, doing...
@AndreaFaulds break it, please.
s/break/fix
@bwoebi I'd break so much code though
if it was just decbin(-1) etc. then it'd be fine
but it's not
they're all awful
01:51
what else?
@bwoebi base convert IGNORES ALL NON-BASE CHARACTERS
base_convert("shdoasldasdasuhdasiuhdiu29038y49hrd9qhd9ashd9s0hdpoasndoasodihs0d‌​", 16, 10) just ignores all the non-hex chars and converts everything else
nobody is relying on that behavior. if you change it you're going to fix more people's code than you're going to break.
base convert IGNORES NEGATIVE SIGNS
but decbin and friends don't
dechex(-1) is ffffffff on 32-bit, ffffffffffffffff on 64-bit
@AndreaFaulds add negaive sign support to base convert
uh
@bwoebi would break shit
hexdec("ffffffff") is... 0xffffffff, not -1
They're NON-TRANSITIVE
01:54
needs <blink>
@AndreaFaulds and what does hexdec() do with non-base16 chars?
@bwoebi it also ignores them
what's the issue then, apart from signs?
you obviously have to break negative signs, because there's no two-complement in bigints.
It's inconsistent with the rest of PHP
@bwoebi huh?
I mean, yes, we have to break dechex(-1)
but making the base functions not do an implicit abs() (although that's not how they're implemented) is a big BC break
@AndreaFaulds well, twos complement requires you to set the highest bit… there's no highest bit with bigints… except well something around 2^(2^16) or such
01:57
@bwoebi Yes, I understand that issue, sorry
I doubt it'll break a lot of things.
What, support for signs?
dropping support for signs, yes
Still, the functions are awful and I really don't want to touch them
I'd rather we just deprecate them and add new ones that work properly
> SKIP Bug #62358 (Segfault when using traits a lot) [Zend/tests/bug62358.phpt] reason: Need Zend MM enabled

A LOT
02:02
@AndreaFaulds no, don't deprecate them. They're used too often for this.
They're just not used with negative sign
@LeviMorrison could not reproduce too.
You can send an email to [email protected] and they will send you ssh credentials to access a temp VM.
Hopefully you will be able to assert what's going on. Just ask for a VM with the necessary requirements (in the email) and they will spin up a debug VM for you.
user895378
Perhaps there have been changes to the current master branch in the two weeks since the travis run that fixed the segfaults?
02:24
@rdlowrey Unless you rebased/merged master in when you tested yourself, that'd have no effect
Hello does anyone know if the laravel validation for mime types jpeg also validate jpg extensions?
Just built the return types pr: related to the travis issue or an seperate issue: pastebin.com/U9RvaQiQ Testcode: pastebin.com/BVGhK5yK
win 7 x64 vc11
02:49
Ooh
That may well be related
@Rangad There's a segfault, and it's a segfault in code added by the pull request
fascinating
@Rangad Hey, I have a thought
@Rangad what happens if you comment out like 377?
        zend_string_release(op_array->arg_info[i].name);
this one
btw. i is once defined as uint32_t and once as int32_t. Waiting for nmake
and no segfault with 377 commented
@Rangad Aha
I think I know the issue
try this: if (op_array->arg_info[i].name) zend_string_release(op_array->arg_info[i].name);
I bet it's a NULL dereference issue
			if (op_array->arg_info[i].name) {
				zend_string_release(op_array->arg_info[i].name);
			}
works fine for me
Aha
Ooh, I also get the segfault with your code
Hmm, curiouser and curiouser
The php example or the modified zend_opcode.c
03:02
PHP example
If I modify zend_opcode.c, I also get rid of the segfault, but I now have a memory leak (debug builds report them)
Hmm, I think this must be an invalid pointer somewhere...
$ sapi/cli/php -r 'function f() : array { return -1; } memleaks, $ sapi/cli/php -r 'function f() : array { return -1; } f(); doesn't
anyway, I'm gonna sleep
goodnight everyone :)
Also thanks @Rangad, I think you spotted a bug :)
Atleast one good deed a day. Goodnight, I'll be away, too.
03:23
@AndreaFaulds what happened there on reddit… why did you delete the thread?
@bwoebi the asinine title was bugging me
@AndreaFaulds wasn't my idea… :-D
;)
anyway, sleep... need... night... good...
zzzz
(night)
also, going to bed now…
good night…
user3949359
What;s overhead in DB context?
user895378
03:49
@AndreaFaulds that's what I did ...
@rdlowrey "git fetch github.com/morrisonlevi/php-src typed_returns && git checkout typed_returns" gives the same test results as a rebase with master
user895378
@marcio Yeah I've been able to reproduce now
user3949359
What's data pre-heating in MongoDB?
@rdlowrey make test TESTS="-m Zend/tests/return_*" leaks on all tests
user895378
Not using -m was my problem :/
user895378
04:00
But it seems the PR was just merged. Am I missing something here?
I believe the issue is with "efree(op_array->arg_info);"
in fact, it was the issue
==21134==    by 0x656A83: destroy_op_array (zend_opcode.c:384)
user895378
Nice. Good find @Rangad and @AndreaFaulds :)
user924016
05:04
Mornings
Morning
zan
zan
Morning
user3949359
What's data pre-heating in MongoDB?
user895378
05:26
My 5.6 TLS server work is officially validated \o/
user895378
@kelunik's and @bwoebi's 100% php chat server gets an A grade from the Qualys SSL Labs test. Just one more step on the way to php world domination ;)
@rdlowrey One ping more please... ;-)
user895378
@kelunik sorry. Got a little excited there.
the contributors link at the bottom of dev.kelunik.com/auth is broken
user895378
@PaulCrovella ah it's broken because that repo is currently private :)
user895378
05:31
i.e. works for me :)
weird that github returns 404 for it
user895378
Well technically the http spec allows you to return pretty much any 4xx response you want if a client isn't authorized to view a resource. The logic being that you might not want unauthorized parties to know the resource in question even exists.
06:04
Still, I feel my trust has been betrayed. You lied to me, github. You lied to me :'(
06:26
as an aside, there are two pinned. clean your room, ya filthy animals.
Morning!
user895378
@PaulCrovella
07:03
I have a linux VM I want to install PHP on and I want to make sure I do it right (tm)
Can anyone here assist me for a few minutes with it?
@BenjaminGruenbaum i can help configuring php, no idea about compiling it etc
@JecebahnYaledimacOndestal Are you good :P?
I basically have a fresh new VM in front of me with ubuntu 14.10 server and port 80 open and nothing installed.
My instinct is to just sudo apt-get install apache2 php5 php5-mysql and see where it takes me. What do I actually need to do?
that is fine i guess but i'm not sure since i'm a windows user
what do you want to do with php?
you can try nginx and postgresql as alternative @BenjaminGruenbaum
or mariadb
user924016
07:10
@BenjaminGruenbaum is it for dev?
For production.
i think you need to add another ppa to get php 5.6, if that's something you're after
@JecebahnYaledimacOndestal host a simple php site. I already have the site written.
@PaulCrovella I'd rather use 5.6 over 5.5 but I don't really care that much. The site would work on 5.5 just fine.
I also don't want to host the sql on that server I already have a mysql server up (Don't like MySQL as much as the next guy but it is what it is)
I'm not sure why we weren't seeing leaks at all yet other systems were. That's actually quite worrying to me since we tried it on a fair number of systems. @rdlowrey @AndreaFaulds
Oh well; Dmitry seems confident he has fixed the actual issue.
user895378
@LeviMorrison The problem was the lack of a -m switch being passed to run-tests.php to tell it to run the tests with valgrind.
07:13
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get install -y php5
@rdlowrey I normally get memory leak information whether I pass it or not.
Or maybe that's only the ones the zend allocator is aware of or something.
@PaulCrovella roger
user895378
@LeviMorrison Yeah it only catches the things of which zend_mm is aware without the valgrind switch.
In any case, congratulations on your A grade for TLS work.
user895378
Thanks :)
user895378
07:15
The only way to get an A+ is unrelated to the actual TLS protocol handling -- you have to implement HSTS on your site.
user895378
E_TOO_LATE_AT_NIGHT_TO_MAKE_SENSE
Also, whatever was leaking was Dmitry's code anyway.
azureuser@trwphost:~$ php -v
PHP 5.6.5-1+deb.sury.org~utopic+1 (cli) (built: Jan 26 2015 11:51:35)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
@PaulCrovella so far so good.
user895378
@LeviMorrison yeah I think it was like a one line fix
Seems proper for him to fix it; I just tried taking an educated guess and it seemed to work so ^^
07:16
Is there any reason to choose apache over nginx or vice versa today for hosting a 200K hits per month php site on a VM?
Familiarity.
user895378
If you aren't serving static files on the same box I'd personally suggest apache
@rdlowrey How hard was that to do.
@rdlowrey I'm serving static files (at least hopefully) this is a static site that updates dynamically basically - if I can get away with it I will :D
07:18
(again, sorry for no question mark :)
user895378
@LeviMorrison How hard is the HSTS or how hard was the general server-side TLS stuff I worked on?
I meant the HSTS.
user895378
I'm not super familiar with it but I think it's not very difficult ... it's mostly just not serving anything unencrypted from encrypted resources. So like if you wanted to serve unencrypted images from imgur on an https site I think that would disqualify you.
user895378
It's basically just sending a couple of headers one header and making sure you don't mix encrypted/unencrypted things on the resources in a domain.
I need help.
as always on localhost everything works as on remote does not.
user924016
07:25
@animaacija that could be a billion things, be more specific
good morning
I scrape websites (incoming encode UTF8 (checked)), database names (utf8) -> the output breaks html. Ok, scraped info wrapped in utf8_decode -> shows gibberish(but html not bloken) - -> utf decode inside of encode - > html not broken, but question marks on acrylic and other specials,
312
Q: UTF-8 all the way through

mercutioI'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL and...

hi guys
07:32
@John good morning
why this is not working
URL::
http://example.com/index.php?pg=home&submit=true
in php page
if($_GET['submit']==true) echo "INN";
@John echo ($_GET['submit']==true)? "INN" : ''; sythax
@animaacija no syntax is correct
I want to process form when submit==true
var_dump($_GET);
07:36
why is there that example site ? do u know which parameters it takes ?
@tereško morning!
@tereško why there is a need of var_dump()
@animaacija that is sample URL (just consider)
to dump GET variable on screen to see whats there, if not working enable errors or lint php file for syntax errors (cmd on mac: php -l path/to/file.php)
HI in my consideration if user add boolean value(true/false) in url then it is considered as string and when we compare that with boolean it doesnt work..Am I correct?
07:40
true :D
Morning
user924016
Morning @PeeHaa o/
so: if($_GET['submit']=='true') echo "INN";
morning
07:41
every body is waking up! Good morning folks!
user924016
@John you probably want to validate each field of date that is send to you, the submit has no value
@animaacija yes that will work :P
user924016
@animaacija use single ' when is it a string with no parsing needed
@RonniSkansing true, performance gain there.
user924016
not really, it would be so small it does not matter.. it more a case of, it is unneeded.. =]
08:00
Morning
echo 'Good morning';
Is there a way to flatten text to somewhat raw encoding ? so i could encode it clean utf 8 again?
everything is right! but the only way scraped data do not brake HTML is if i put utf8_encode(utf8_decode($p)); around it ... and then i get the question marks! Any ideas ?
@animaacija this question makes no sense. I suggest you do at least a little reading on what encoding is.
I think that's the guy who writes the ev exts ...
user924016
Morning @JoeWatkins
08:13
moin
Is there a large difference between ASP and PHP? ( Never touched ASP before)
@JoeWatkins that's disappointing
also, mornin
I'm glad someone else said it ... it really is ...
&& moin
@Duikboot quite a bit ... one of them is evil, a product imagined by a bunch of idiots with no problem solving skills at all, the other is ASP ...
user924016
08:17
lol
@Ocramius did you see my ping of yesterday about a green elephpant? I want to adopt one somehow
@PaulCrovella still this character brakes page Ð
return mb_convert_encoding($p,'utf-8',mb_detect_encoding($p)); even with this
Oh, I've never seen this one before: oi61.tinypic.com/i1z91s.jpg
I made changes to my ini file... but what is the right option to check? Show the differences shows me : 'file too large'.
@Duikboot You have never seen dpkg?
08:25
I am new to linux.
@animaacija don't rely on mb_detect_encoding. Encoding detection is a non-trivial problem (it's actually impossible to do with certainty.)
@Duikboot Welcome to the darkside :)
:D I see it's a kind of 'package management tool where you are able too install applications with'
@Duikboot Yeah kinda
@Duikboot I usually just keep my ini file
08:29
You normally used aptitude on debian
What @MarcelBurkhard said
Yes sudo apt update & upgrade
hello
i have a problem in syntax but i can't solve it :( :(

$query=mysqli_query($con,"insert into qett(filename,project,qsystem,client,evaluated,`evaluated_lines`,from,to,evaluator,absolute,result,total_lines,n_m_lines,loaded_lines,errors_rate,errors_no,translator)values('$name','$project','$System','$client','$Evaluated','$EvaluatedLines','$From','$To','$Evaluator','$Absolute','$result','$totallines','$nmlines','$loadedlines','$ErrorRate','$ErrorNo','$Translator')");

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
@Bassem Look up reserved words in mysql
also, please stop using mysql_*
08:31
how do you write quotes here
@tereško Its mysqli_query but yeah he ain't using it the right way
mmmmmmmmmmmmmm , i will try to change from and to
@tereško why ? what is the alternative solution
user924016
@Bassen read the docs
@Bassem you don't have to (but you should), you can use those weird single quotes you got around evaluated_lines
@MarcelBurkhard what is the right way ?
Make use of PDO / Prepared statements.
user924016
08:32
@Bassem reading the doc is the right way
@Bassem parameterized queries to avoid sql injection
@MarcelBurkhard What option should I take from the printscreen I've send?
i know sql injection but these input will comes from Excel sheet , not user interface
keep the local version currntly installed?
@Duikboot yes
08:35
Ok
@PeeHaa can I include another ini file in php.ini at the end, so that I can update php.ini and just need to add the include?
@PeeHaa nvm I'll google it
i think i found it! strtr does byte by byte translations so, i need to encode single byte encoding before performing this. I men which encoding is single byte ?
Thanks @PeeHaa problem solved after change from and to ,
what is the best gridview to use in php ??
i use PHPGrid free version but i think it not fit all my needs , i need a gridview to display all records ,sort , seach and display each record individually , is there any suggested library ??
08:41
there's two of them :)
FireDB ? :-P
user924016
This GooglePlus is abit confusing atm..
Fire&Stick DB? :-P
@Sergey DolphinSteak
@Sergey MyBBQ 5.6 ?
08:43
how developers work with gridviews everyday in development companies ? are there develop gridviews from scratch or use libraries that made before ?
what is the best gridview to use in php ??
i use PHPGrid free version but i think it not fit all my needs , i need a gridview to display all records ,sort , seach and display each record individually , is there any suggested library ??
@RonniSkansing nice CV link in profile.
user924016
@SergeyTelshevsky thanks, I spend some time making it look good =]
too bad I opened it so early this week
user924016
Yea, it is abit early..
please look at my inquiry
08:48
Are there any apps in PHP that allow you to make SQL queries and show the results (just like the SQL command runners in phpMyAdmin and it's alternatives, but standalone) ?
@Bassem just make your own library, you will know how it works, and i guarantee it will fit your needs
@Bassem well, I just render a table with a twig template, quite simple I don't need a library for that
@marcel what is twig ?
all about that twig, 'bout that twig
@DejanMarjanovic what is twig ?
@animaacija , i will try but u know , it is a time wasting
08:52
all about the bass, no treble
not wasting .. it will pay back later
@Bassem Twig is a template engine
user924016
@Bassem stop asking, start searching "twig php" =]
twice!!!
@animaacija sometimes it really is a waste of time
@animaacija and I'm pretty sure the way he would code his grid library it wouldn't pay back later, it'll bite his ass :P
08:54
@MarcelBurkhard thanks , i will search on it
well if you are about producing one project and make other people to support it, and never again develop, then true, use libraries
@MarcelBurkhard :(
@RonniSkansing OK
@Bassem no offence, everyone needs to start at some point. I just don't think its a good idea if you develop a library at this point.
I myself wouldn't
yes @MarcelBurkhard , why to develop something that already developed before
@Bassem developing libraries is the best way, to learn
08:57
@animaacija it might be, but some can't afford to spend that amount of time
and the less you know the more is possibility to discover unique approach, better approach and to DEVELOPE not reproduce
@MarcelBurkhard in that case, sure
time IS money
@animaacija but the less you know the more probable it is for you to make mistakes that others already have made and you could learn from
UK first impressions: warm, wet, grey, lots of wrong-way driving
this place is weird :D
I said it will payback twice, later on, will win time, knowledge and the library

« first day (1565 days earlier)      last day (3605 days later) »