« first day (2021 days earlier)      last day (2930 days later) » 

2:02 PM
@Naruto He's doing well, getting quite big now, fluffier than ever lol. Found his cat tree toppled over this morning
 
still following him on twitter ^^
 
He only has two states - sleepy or hyper
 
Hi, i have a filepath /tmp/ml/tg/text.csv , i want to take text.csv
 
@Devilion basename
 
@Oldskool That's great thnx
 
2:07 PM
Morning.
 
@LeviMorrison hey
 
hi all
last day I rebooted my server and execute sudo setenforce 0 to run the site .Now its working fine but file uploading functionality is completely stopped .is_writable() is not working .I know its permission level issue but have no idea how to fix it
please suggest..
 
@John You don't sudo setenforce 0 to run a site. You do that, because you have no clue how to setup SELinux and secure your server properly.
 
my httpd file contain User apache Group apache
@Oldskool yes may be I just googled it
 
facepalms
Anyway, make sure that the apache user/group is the owner of your upload dir too.
 
2:16 PM
directory is like this images(root:root)->user_folder(apache:apache)
where images folder contains 777 permission recursively
 
uuugggggh, I just died a little inside
No SELinux and chmod 777, you just want your server to be hacked do you ? :(
 
@Oldskool no never.. I will work on that... but please suggest me over this issue
 
It's like leaving your car with the engine running in a bad neighbourhood and go shopping in the local liquir store. Don't be suprised when your car is gone all of a sudden one day.
Anyway, all ranting aside (which you should really take seriously though), make sure apache is the owner of your upload folder.
And set chmod to 755, no more.
 
apache user to images folder or user_folder ?
 
Run this: sudo chmod -R apache.apache /path/to/your/image/upload/dir && find /path/to/your/image/upload/dir -type d -exec chmod 755 {} \; && find /path/to/your/image/upload/dir -type f -exec chmod 644 {} \;
Should fix all ownership and permissions problem in one go.
 
2:23 PM
@bwoebi I've adjusted the examples a little bit.
 
@LeviMorrison You may want to link to 3v4l to implicitly invite people to play with them
 
I did.
 
great :-)
 
I think I'll forbid intersections on scalars, arrays and null.
It's probably not useful and should it ever become useful we could always allow it then.
 
@Oldskool chmod: invalid mode: ‘apache.apache’
 
2:27 PM
The other way is less future proof; removing something that can happen in userland is a BC break.
 
@John Eh, yeah my bad. That should be chown, not chmod.
 
@LeviMorrison Impossible intersections are forbidden (means intersections between any scalars, arrays and objects in general)
@Levi the only thing allowed is intersections between callable and string, callable and array and callable and object
 
I know that's what the patch does; it was not specified in the RFC and I previously talked about not erroring in any impossible case.
 
Just saying that I think the RFC should reflect that what the patch does in that case currently.
 
@Oldskool still no luck
-type f -exec chmod 644 {} \; does it require 644 permission really?
 
2:32 PM
posted on April 28, 2016 by Niklas Keller (kelunik)

Typography plays an important role when designing, not only for the web. It’s most important for sites like blogs, where users are reading almost all the time. When writing the design for my blog, I already had in mind that font-size, line-height and width of the lines are important. I increased the default line height to 180% and gave all headings more whitespace for better readability. Wh

 
Regular image files? Yes.
 
@bwoebi I would encourage people to not do those intersections though...
 
@Oldskool yes profile images
 
Then yes, 644. Any more than that makes no sense.
 
> One more thing to point out - during the analysis, there was an impression that the code was almost entirely written with the help of macros. They are just everywhere. It makes the analysis much more complicated, not to mention the debugging process. By the way, their widespread usage did more harm than good, and caused a lot of trouble - the errors in the macros were found in lots of fragments throughout the code. So here is the proof of it.
Shocking discovery during PVS-Studio's analysis of PHP7!
 
2:34 PM
@Oldskool superuser.com/questions/581194/… I just read ..
 
@FélixGagnon-Grenier I run find / -name soap.so command and give this as out put /usr/lib64/php/modules/soap.so....... i tried to set this path php.ini but couldn't enable soap library on apache server
 
@John Basically does the same thing. "-x" is just an alias for removing execute permissions.
 
Has someone an idea how I could do this? I am building an 'USB' flipbook page. Wauw cool that's so 90's
Has anyone an idea how to keep track of how many times a user has opend that 'index.html ' on a USB?
( Assuming every use has nowadays a internet connction )
 
@Duikboot Assuming there's an active internet connection, embed something like Google Analytics so it'll push a view event to your tracker.
 
@Oldskool yeah...
but still no luck
 
2:40 PM
Is that hard to do? I have a google analytics running for the main site
 
@John What's the actual problem? It's not showing any images?
 
@Oldskool no its not uploading image
 
@LeviMorrison there may be reasons to do so … I wouldn't encourage people to do it, but your specialized function only knows to handle string callables. (There may be a separate function for handling array callables)
 
@Oldskool and the error is Unable to write in the "/images/user_folder/" directory
 
@John What is the output for ls -ld /images/user_folder/?
 
2:42 PM
Hello
 
@Oldskool drwxr-xr-x. 2 apache apache 4096 Jan 7 01:56 /images/user_folder/
 
Should the owner of the event create an event? Which I can use in my html page? ( I am not the owner of the main domain in Google Analytics ) @Oldskool
 
@John That's what it should be. 755 with apache as owner. Can you trace where in your upload script the error is coming from?
Maybe it tries to do some other stuff.
@Duikboot The owner should just make it possible for the event to be pushed to their tracker / have it register it.
 
Cannot traverse an already closed generator Is there a way to simply reset/restart a generator, instead of recalling the generator function? trying to nested foreach over generators
 
@Duikboot Although probably the fact that it's on a USB drive instead of being served off the domain is problematic.
 
2:45 PM
@Oldskool I have never use dthat before but looks very usefull to see where a user clicks
 
@Duikboot Don't think Analytics will validate the event if it doesn't come from the domain.
 
that's wat I was thinking as well. The website is served from an other domain then the one of GA.
 
I am using laravel So my last line is `$move_upload = $image->move($pic, $tmpfname);die();`
$pic = /images/user_folder/
$tmpfname = 'abc.jpeg';
 
A default setup of Google Analytics is designed to track content and visitor data for a single domain, such as www.example.com. developers.google.com/analytics/devguides/collection/gajs/…
 
@LeviMorrison I'm disappointing they didn't link to the many bug reports they filed with PHP based on what they found
 
2:50 PM
gist.github.com/duikb00t/68397c4cb75823e995d787540a1e76c5 @John ( I wrote this for my L5 uploads )
 
@Duikboot I dont think this is coding issue because over my production server its working fine ...problem started when I rebooted my server
this is definitely server level issue and obviously permission level as well :(
no directory is writable
 
@Levi got most of 'em, not touching w32 stuff and don't really like to touch spl ...
 
when I executed is_writable() to any directory its returning boo(false)
 
also, not really convinced about the size_t thing either ... I would have to look at asm, but I think, the compiler knows what you are doing ... comparing size_t to -1 is super common ...
 
Does size_t get converted to signed then compared to -1? Or does -1 get converted to size_t and then compared?
I would prefer to just not do -1.
There is a constant SIZE_MAX, for goodness sake...
 
2:57 PM
@John just for kicks, try setting the directory to the same permissions it is supposed to have. I had a wacky issue where my live server somehow was reporting my sendmail files were world writable. Reset them (even though they looked correct) and it worked again
 
oh ok
Someone else idea how to keep track of a html page which opens on a local USB drive? Let's say I send 10 000 USB drives to people. Is their a way I can check that 1000 of them have clicked the page inside?
 
@Duikboot You could simply put a pixel in it that you load from a server you control.
Than you can simply check the access log.
like <img src="http://example.com/usb.gif">
Than just check how many times that file is opened.
 
hmm
 
Is that waterproof? :D raw access logs would indeed show me that
 
@Duikboot Nothing is waterproof when you depend on a remote client to report something to you.
You'll just have to accept a "best effort" solution.
Since there is no real proper way to measure it.
 
3:10 PM
PhpStorm was having issue, so Jetbrains told me to copy-paste my source files w/out .git How do I configure that new project source to be tracked by git, as there are uncommitted changes
 
works
 
@SuperNoob Try cloning into a new directory and them copy your changes in
 
@Saitama 53k
 
Hmmm. Good idea. I'll just have to find the files that were changed.
 
@bwoebi In your opinion is this a bug? (Ignore the BC break for sake of argument)
 
3:16 PM
@LeviMorrison no, it isn't a bug (confused expected and actual)
You cannot pass null to the implementing class in this case
and will thus violate LSP
 
Ah, needs Array | Null $param = []
See, we do need this feature in parameters too.
Timely bug report.
 
@LeviMorrison correct, updated the bug report.
 
@bwoebi Hahah
 
But I'm always amused when bugfixes are reported a month later (i.e. after release) as bugs … :-D
 
I also updated it
 
3:25 PM
@LeviMorrison hehe, sadly we have no interactive bug updates like e.g. github has … ^^
 
3:41 PM
Dang, didn't change the 2 to a 3 when I copied and pasted in my last email >.<
Dang, my grammar was really poor in that email too
 
@LeviMorrison what mail?
 
@LeviMorrison Non-natives (or non-linguists) won't notice
 
We also had an UGLY perf email come through o.O
 
@LeviMorrison I'm always confused by these perf emails … they change on some days even if nothing related to perf was changed between two builds.
@Levi ah, there the 3v4l links are… I've searched in union types RFC before
 
3:55 PM
@bwoebi There will always be some variance but if you change something and perf is ugly then it may be an indication it was perf sensitive after all ^_^
 
@LeviMorrison Those results might be genuine
They ran after dmitry's scope change
gotta see if the numbers go back tomorrow ;)
 
Note: ugly here means something went up by 1% or more and something also went down by 1% or more.
So... yeah.
In this case microbenches went up; actual software tested went down or was negligibly different.
 
0
Q: How can I execute a script outside of root directory by another one?

stackI have a script named MakeAvatar.php. And when I pass a argument to it (as GET method), it makes a image (avatar) based on that argument: http://example.com/MakeAvatar.php?id=12345 // Output: 1234.jpg And I can simply save that image like this: file_put_contents("../img/avatar/".$id.".jpg", f...

 
@Naruto WOAH!
 
4:12 PM
happy prebecca!
 
!!rebecca
 
@Saitama Happy Prebeccaday!
 
\o/
 
@PeeHaa this one definitely requires the PR for discussion: github.com/Room-11/Jeeves/pull/44
/me away, bbiab
 
4:17 PM
lata
quite large refractoring!
!!google wikipedia
 
Wikipedia, de vrije encyclopedie Encyclopedie op het internet. Per onderwerp gerangschik… | Wikipedia Wikipedia Logo. English The Free Encyclopedia 5 077 000… | Wikipedia, the free encyclopedia A free encyclopedia built collaboratively using wiki so… | Search Url
 
@PeeHaa did you launch Jeeves in a server or your PC?
Or is the server in Netherlands?
@JoeWatkins, what does this error mean? RuntimeException: Threaded members previously set to Threaded objects are immutable, cannot overwrite arguments
 
@Saitama looks like you cannot alter properties of a Threaded class after you've set them to Threaded once
 
@Saitama This is the problem with using google.com, it uses an ip geolocator and gives you location-specific results
 
@DaveRandom It's not that hard to fix though… just search in the correct language
 
4:28 PM
There's a cookie you can set which disables it IIRC
(in which case google.com behaves as if you were in the US)
 
Google, tries to know too much about us....
 
Using .co.uk may also be an acceptable solution
 
@DaveRandom can't it just behave neutrally?
 
com?
 
@bwoebi No because the US owns .com, remember?
 
4:30 PM
fine … then they should launch google.to which is not subject to any nationality…
 
@Saitama He's on a Ducth server. Not sure if that's the reason for the duthc results though
@DaveRandom I can haz cookie?
Will review later. Still drinking beer and trying to get my button to behave :P
This is like CSS only with an annoying compile step in between
 
@bwoebi .to is for Tonga.
@DaveRandom The use doesn't "own" .com, it is just very common for US companies. It's a gTLD.
 
@Trowski I know. I meant not any nationality with stupid jurisdictions. ^^
 
.blackfriday?
 
@Trowski the main registry is owned by US though
 
4:44 PM
@Trowski </sarcasm>
 
@bwoebi Sort of like .io, without the British imperialism problem :D
 
We just need to unite under one federated government so that we can use whatever top level domain we like. (While we're at it, let's ramp up our antimatter capture efforts, build warp drives, and have replicators, so we can get rid of money, too.)
 
@DaveRandom Ah, my sarcasm-o-meter must be off today. Though what you said has some truth to it.
 
@Trowski The problem with text-only communication :-)
 
@bwoebi I believe it is managed by Network Solutions, which is a US company. Not sure how much that really matters though. Most of the new gTLDs are managed by US companies.
 
4:46 PM
@DaveRandom Need more emoji!!!
 
I think .com was originally supposed to be "communal" but don't quote me on that
 
@DaveRandom … or "commercial"?
 
I thought so too
!!wiki com domain
 
@PeeHaa Sorry I couldn't find that page.
 
!!wiki .com
 
4:47 PM
also possible, I just thought I remembered reading it somewhere
 
The domain name com is a top-level domain (TLD) in the Domain Name System of the Internet. Its name is derived from the word commercial, indicating its original intended purpose for domains registered by commercial organizations. Later, the domain opened for general purposes. The domain was originally administered by the United States Department of Defense, but is today operated by Verisign, and remains under ultimate jurisdiction of U.S. law. Verisign Registrations in com are processed via registrars accredited by ICANN. The registry accepts internationalized domain names. The domain was one of...
@PeeHaa Sorry I couldn't find that page.
 
ahh ok
 
@Jeeves why do you prefer bob over me?
 
heh
@Ghedipunk lelouch created one tho
 
I am so going to create a why plugin that responds with "because I hate you" to every message like that
 
4:49 PM
:)
 
I AM GONNA DO ITTTT!!!!!!!
 
@DaveRandom I'm still hoping microsoft will provide an easy API for their nazi bot
 
@Saitama please pay attention to that PR if you are :-)
 
yup, quite alot changes in the structure of the plugins ;-)
 
@LeviMorrison Should we weep at the the fact that PHP is benchmarked, in part, by Wordpress?
 
4:59 PM
That moment when you write a query... test it... and realize you forgot to execute it
 
@Machavity It's a widely deployed PHP application so... not really.
 
@bwoebi can't understand it.... could you explain me plz :)
 
it's a perf optimization, extend volatile
if you can't write code that sticks to the rules ...
 
hmm...
 
Hi, i have 2 virtual machines and i want to copy a file from the path of first machine to the path of the second,
 
5:04 PM
what u doin with threads anyway ?
 
tryin' to refractor my previous basic web server or rather re writing it completely....
 
don't use threads for i/o
 
i understand that, but still.... I actually wanted to try it out... :(
 
if what you need to do is service many sockets, then use nob-blocking sockets ...
if you intend to build some kind of enterprise infrastructure, some kind of application server, then threads make some sense, but probably still extremely wasteful ... and I don't think I could do it right ...
 
it's totally for learning purposes tho :P
 
5:09 PM
learning is good :)
have fun ...
 
:D will do
 
@JoeWatkins git push wrong remote ^^
 
bugger
sorry
why can't I delete that ?
nvm ...
@bwoebi dmity wants to revert that lsp change ...
 
because:
Mar 19 at 23:54, by NikiC
BC is short for bug compatibility, in case you didn't know
 
5:20 PM
@JoeWatkins Reverting on 7.0.x is reasonable as long as it stays in 7.1
 
yeah, I just said that ...
I did discuss it with you guys though, we thought it was a bug ...
 
@JoeWatkins I don't think it's a good idea to revert it.
 
he already done it ...
 
> We should not introduce such BC breaches in a minor release. This is really one of the basic OOP usage cases, the impact is unknown. I'd say keeping BC in this case is more important.
but well, Anatol has spoken
In that case, fine.
 
yeah probably a mistake ...
but it's hard to know what we can fix ...
nearly everything is a bc break for someone ...
 
5:26 PM
@JoeWatkins It is a bug.
The big thing in this case is it is one that has been there since PHP 5.1...
And based on bug reports it's definitely used in wild.
And, in my opinion, can't reasonably be fixed until 7.1 and we get some kind of nullable types option.
 
what ?
it was reasonably fixed
 
It broke production code...
There's no way for them to what they want until nullable types sans null default is added.
 
well ... fuck
 
(I should clarify that it's not a trivial change; it can be done just not as trivial as a signature change in the child)
Just to clarify, Joe, it was definitely a bug and I'm glad we know how to fix it.
 
5:43 PM
reverting reverts is brave @bwoebi ...
 
@JoeWatkins Uhm, I assume his merge wasn't intentional??
 
it sounded like it was
 
yeah, his mail from 17:29 (UTC) seems indicating otherwise
@JoeWatkins okay, sent something of an apology in reply to that mail … hope it's all fine now.
 
we have time to answer the question anyway ...
 
yeah
@Levi I think extending Dmitrys return type patch to work with properties should be minimal work … please just do it instead of arguing a lot on internals … if not to just appease Dmitry ;-)
 
5:51 PM
I am happy to do it, really.
I'm just busy ^_^
And I think it's unreasonable to say "no, I won't withdraw because you don't have a complete impl"
In this case.
There's no reason for dmitry to think it cannot be done; he's just playing the card for politics...
 
@LeviMorrison looks like. That's why, just do it…
should be work of less than one hour
 
For you, not for me.
Several hours at least
Since I work in the codebase less often it takes me a lot longer because I have to keep looking up things.
 
I guess it's rather 20 min for me… hence I guessed like one hour for you…
But have to go now … if you really don't have time, I'll spend 20 mins this evening…
 
I'm going to work on it in a few minutes (lunch break).
 
I believe all you need to do is setting the allow_null flag and an appropriate parser rule on top of his patch
 
6:02 PM
@LeviMorrison why is that unreasonable ?
the two features do not conflict, do they ?
@bwoebi should that be disabled in master ?
 
@JoeWatkins what are you referring to?
@JoeWatkins Actually only union types conflict.
 
every bug fix is a backward compatibility break if you rely on buggy behavior.. enjoy never fixing another bug without an RFC and vote in the future.. the lsp bug is trivial to not rely on - it's a single line of code to set a default empty array should the function receive null
the fuck is with the madness on internals
 
@JoeWatkins but union types may have an additional voting widget to not allow ?, but only null| (with 50%+1)
 
6:18 PM
they don't have to conflict ...
 
@PaulCrovella totally true.
if you want, you can just add that to the discussion.
 
this isn't really about the lsp bug ...
 
@bwoebi I unsubscribed again some time back, just occasionally flip through the archive.
 
@JoeWatkins both
 
Hit my first hiccup:
Not at all.
> Fatal error: Scalar type declaration 'int' must be unqualified
From:
> function foo(?int $x) {}
 
6:24 PM
if they don't conflict they why block it ?
tbh, it's not really okay to go around asking people to revoke their RFC's ...
 
I don't think you understand it properly, Joe ^_^
 
understand what ?
 
We have to work out vote order.
We can't have 4 semi-competing RFC's going on all at once.
 
I'm not talking about four
 
Well there are four...
 
6:25 PM
I'm talking about one, the nullable return types, why can't that go to vote first ?
 
Why should it get to go first?
Specifically, I mean on what grounds should it go first.
 
it's been ready for a long time, there's a consensus that we need it, it's ready to go to vote
 
I don't find that a compelling reason.
We can vote on generalized nullable types.
So again, why should his go first? Or why should mine go first?
 
his was ready first
 
I'm trying to establish reasons for vote order.
 
6:27 PM
I'll reject return types only.
 
@JoeWatkins False.
 
what ?
 
Depending on meaning about "ready"
 
you are doing the implementation this evening
it's not false, at all ...
 
There is not anything requiring an impl to vote.
I promise you
 
6:28 PM
But eventually accept general nullables.
 
And in this case there is no reason to believe we can't implement it.
So that's not a blocker.
 
can you point at a feature that was voted in without any implementation other than NCE, which was an obvious mistake ?
 
We voted on a few things that were trivial before impls were available.
 
which things ?
 
6:29 PM
I wouldn't vote on anything that has no implementation
 
But in any case it's not required, so please don't play that card. If it's not a requirement it's not a requirement.
Whether you would vote for it or not.
 
in your opinion, it's not a requirement, in mine, it is ...
 
We have requirements for RFC process.
 
you can't actually point out a thing that we voted in without an implementation ...
 
Point to something in the RFC process documentation that requires it.
You can't point to that either.
This is getting off topic
 
6:31 PM
> If you don't have the skills to fully implement your RFC and no-one volunteers to code it, there is little chance your RFC will be successful. To learn about PHP core development see References about Maintaining and Extending PHP.
 
Anyway, mine should go first because it's more general and solves an apparent issue as demonstrated by that recent bug report.
Is that not decent grounds?
 
It's been more than 2 weeks since it was brought up on the list, the rfc author can take it to vote anytime they want after that.. if you don't like the rfc because it's missing something or conflicts with another you prefer, then vote no on it.
 
Dmitry's technically hasn't been 2 weeks
Mine has (I think as of today)
Of course he delayed because I asked him to
But if you want to play stickler it actually favors me...
 
Okay, so put yours up today if you like. There's no need for anyone to withdraw anything, nor need to jockey for position in vote order.
 
You want four competing RFCs to go to vote at once when two of them are essentially redundant?
 
6:35 PM
not at all
 
I'm sorry but that seems quite unappealing.
 
unions and intersections cannot be voted on
 
Intersection cannot, that's true.
What is blocking unions?
 
@LeviMorrison it's preferable to the politicking
 
And you had better not say impl because we just went over that.
 
6:36 PM
no, I'm going to, you can either ignore it, or not ...
but it does need an implementation ...
 
We have a proof of concept.
That was good enough for return types.
 
no we don't
the patch and the rfc's don't actually match
 
... Joe, you wrote the thing. We have a proof of concept.
 
I remember
we don't ...
 
Joe... what makes it not a proof of concept?
 
6:38 PM
proof of a concept but not the one in the intersection rfc, definitely ...
 
That blocks intersections, not unions.
 
that does require proof
but you already know that they are built on the same feature ...
 
I'm not seeing where ZEND_NAME_NOT_FQ is getting set in this case.
 
Hi, any ideahow can i launch a PHP script each x mins without using cron?
 
Ah, it's from namespace_name (I think)
Doh, I spent all that time looking for the wrong condition.
 
6:52 PM
@TechTreeDev Find a hosting provider who lets you run cron jobs. Assuming you're working on a web site, then if you can't get a halfway decent hosting plan, if your site is busy enough, or your system is tolerant to having certain jobs be skipped during down time, you could have a something call your periodic script at the end of each web request, and if enough time has passed, your script will execute.
 
@Ghedipunk Okay, thanks. Will do it via my homeserver then
 
Alright, I think I have it hooked up right; running tests now.
 

« first day (2021 days earlier)      last day (2930 days later) »