« first day (3558 days earlier)      last day (1375 days later) » 

3:48 AM
Minor Service Outage ・ API Requests has Partial Outage
Minor Service Outage ・ API Requests has Partial Outage ・ GitHub Pages has Partial Outage
 
4:07 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ GitHub Pages has Partial Outage
 
5:05 AM
Git mergin'.
\o
 
5:37 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ Gists has Partial Outage ・ GitHub Pages has Partial Outage
 
6:00 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ Gists has Major Outage ・ GitHub Pages has Partial Outage
 
6:38 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ Notifications has Partial Outage ・ Gists has Major Outage ・ GitHub Pages has Partial Outage
Syntax error in configure / unescaped "[]" in php.m4 ・ *Compile Issues ・ #79841
 
7:09 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Major Outage ・ Notifications has Major Outage ・ Gists has Major Outage ・ GitHub Pages has Partial Outage
 
7:34 AM
yay, github down again
 
7:54 AM
!!rfcs
 
8:19 AM
Incident on 2020-07-13 04:06 UTC ・ API Requests has Major Outage ・ Notifications has Major Outage ・ Gists has Partial Outage ・ GitHub Pages has Partial Outage
Incident on 2020-07-13 04:06 UTC ・ API Requests has Major Outage ・ Notifications has Major Outage ・ Gists has Partial Outage
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ Notifications has Partial Outage ・ Gists has Partial Outage
Can you, please, update the documentation.php file? ・ solr ・ #79842
Incident on 2020-07-13 04:06 UTC ・ API Requests has Partial Outage ・ Notifications has Partial Outage
All issues have been resolved!
 
9:09 AM
@IluTov That's somewhat surprising. I would expect the () to end the short-circuiting, and so an error to be triggered there. Which.....obviously wouldn't be a useful thing to do here.
 
@Danack () has zero effect in php 7
You can even write something like isset(($x)), something I only discovered somewhat recently :)
 
well, eww. But also the only place I an see that it could make a difference would be for something like ($foo?->bar)->barMethod() which I would expect to either call barMethod or error. Think that behaviour just needs documenting if/when the RFC is passed.
 
9:24 AM
@Danack But if you want to implicitly error at ->barMethod() why not just let it error at ->bar?
@Danack I don't necessarily disagree. Visually what you're saying makes sense. It would be rather hard to implement since params never make it into the AST.
 
@beberlei Just emailed you the talking points, sorry for being so late with them!
 
@IluTov btw rfc text looks good. tbh, the second one is kind of hard to read, but tbh that's probably best when documenting edge-cases, as it prevents people from providing "helpful" alternatives....
 
@Derick no worries :) see you in a bit
 
@NikiC Want to chat about Treat namespaced names as single token <https://wiki.php.net/rfc/namespaced_names_as_token>_ next Monday (morning)?
 
@Crell forgot to reply to this. The thing that makes reserving enum kind of pointless is that it doesn't make people's life that much easier. Similar to the discussion of the namespaces:
...
If we introduced enums to PHP 8.1 then people will i) Have code running on PHP 8.0 ii) They can change any use of Enum to UserEnum in 8.0 iii) Upgrade to PHP 8.1 and everything keeps working.
i.e. reserving enum as a keyword doesn't make life easier for many people....the only thing it does is prevent people quacking a bit.
 
9:43 AM
@Danack it's least surprising and gives people a hint that enums night be coming? That could be good or bad though. ¯\_(ツ)_/¯
 
@Imsop Absolutely do not ever email me off list if we're having a disagreement. It is completely unacceptable behaviour. Any disagreement that comes from internals email discussions needs to stay on internals.
@Tiffany I put usefulness above pretty much all other priorities...
And will look at your PR now....
 
I will probably have a few more... I've been too lazy to make branches and just remembered yesterday that it's still open...
 
Running intval to string value that is supposed to be INF returns 0 ・ Strings related ・ #79843
Wrong next array index for value add ・ Scripting Engine problem ・ #79844
 
10:30 AM
@Danack Which one do you mean by "the second one"? Returning by ref?
 
@IluTov yeah.
 
Morngins
 
@Danack Ok, I'll see if I can improve :) You mean just the explanation, not the behavior, right?
I mean, the behavior sucks. But it's consistent with the rest of PHP.
 
Should typed float class constants allow int values?
Currently, typed properties allow that and implicitly convert integers to floats
But I'm not sure how useful would that be for class constants given that they are immutable
 
@moliata I would copy the behavior of typed properties here
 
10:47 AM
@IluTov is there any benefit to this approach? Implicitly casting from int to float makes sense when writing to a property but class constants are declared once and cannot be changed.
 
@moliata Consistency is important. Also, I don't see any particular reason why $this->someFloat = 1; should be ok but const float SOME_FLOAT = 1; should fail.
 
I guess, I'll update the implementation to match typed properties then.
 
11:15 AM
Loranom ・ *General Issues ・ #79845
 
@beberlei Are you making your recording available for download? :-)
 
@Derick yes, i need some time, got back to back things :(
 
Minor Service Outage
8c67c166996 broke simple regexp ・ PCRE related ・ #79846
 
@beberlei No worries!
 
11:30 AM
@IluTov No, don't change it.....I wasn't joking when I said describing edge cases is okay/good to be hard to understand.
 
@Danack Haha ok
 
All issues have been resolved!
 
11:50 AM
@nikic is this caused by the stable sorting change? Is it a bug that there are two notices for the cast?
 
@Sjon nah, it's not a bug - just beforehand it wasn't compared against INF, now it is.
seems pretty likely to be caused by stable sorting
 
ah, thanks. There are a lot of scripts coming up in the bughunt including a few buggy usort implementations
 
What is the latest date to start the voting phase for RFCs for 8.0?
 
depends on how long you think it takes from potential acceptance to PR being merged
 
@ArnoldDaniels 21st I think.
 
11:59 AM
accepted RFC does not mean its included in 8.0 if you don't have the patch merged at feature freeze
 
@beberlei That's the easy part.
 
crypt/sha512 with rounds<1000 returns failure ・ *Encryption and hash functions ・ #79847
 
I'm strongly considering withdrawing the strict operators RFC and creating a new RFC. But it might be to late. You should have a 2 week discussion.
@NikiC Are you proceeding with "saner string to number comparisons" for 8.0?
 
@ArnoldDaniels it is too late for a new RFC
 
@ArnoldDaniels Pretty sure he announced it on list again a week or so ago
 
12:09 PM
crypt - deprecation notice for short salts has disappeared ・ *Encryption and hash functions ・ #79848
 
@ArnoldDaniels I think any RFC that will make fundamental changes should be delayed.
 
Ucfirst and Russian cp1251 'я' letter ・ Unknown/Other Function ・ #79849
 
It can't really be delayed if it breaks bc.
In that case I might just as well put the strict operators RFC to a vote.
 
@MátéKocsis btw thanks for pointing the arithmetic thing out before voting, I'm changing that, should also reduce BC breaks
 
@ArnoldDaniels I haven't followed the discussion but how does it break BC? If it introduces a new declare type?
 
12:21 PM
array_walk / array_filter incorrectly warn variables should be passed by ref ・ Arrays related ・ #79850
 
@Girgias So foo("123abc") won't throw a TypeError?
 
Besides the introduction section, typed class constants RFC should be done. I would be very thankful if anyone can review it and tell me what to improve ;p
 
@moliata Oh wait, the string|null type is valid? I'd have sworn that only ?string is right
 
@moliata Since constants should never change at runtime but objects can, object and class name types are not supported.
So, const string FOO_CLASS = Foo::class; is not supported, or am I misinterpreting this?
 
@MátéKocsis both ?string and string|null is correct.
@IluTov I mean types i. e. const object FOO and const ClassName FOO is not allowed
 
12:34 PM
Where's "Warning: The magic method Foo::__set_state() must be static in /in/8DIgZ on line 6" coming from in PHP 8? (3v4l.org/8DIgZ) It doesn't seem documented, and the "magic methods signature" RFC hasn't been merged yet.
 
@moliata Yes, I tried that on 3v4l :) But I was in the belief before that it's not
 
@moliata Ah ok, the term "class name" seems a little misleading. I thought this was talking about class names as strings.
 
@IluTov I'm not sure how to rename class name types :), if you have any recommendations, let me know
 
@moliata I would just drop the word "name". Class type makes more sense (at least to me).
 
actually yeah, makes sense, will do
 
12:37 PM
@OndřejMirtes I forgot about it, but finally I managed to find the PR via git blame: github.com/php/php-src/pull/5465
 
open_basedir no longer restricts access to http:// ・ Filesystem function related ・ #79851
 
@MátéKocsis Thanks, I'll let Gabriel know about this.
 
moin
 
@OndřejMirtes Although, by looking at the changeset, it seems that he only modified the error messages, but these checks were before before
 
Nope
As you can see in the linked 3v4l
 
12:42 PM
@moliata The rest looks good to me.
The polymorphic constant example seems a bit weird (nothing I'd encourage in the real world) but the RFC definitely makes sense for consistency.
 
@OndřejMirtes I mean, there could have been other changes in PHP 8 which caused this
 
@MátéKocsis Yeah right, that's the right one
 
@IluTov I updated the RFC (and added a code example) for class types. Hopefully, that is going to make everything more clear.
As for the polymorphic example, some frameworks (e. g. spiral.dev/docs/…) use class constants instead of properties for configuration.
 
@nikic are you sure 3v4l.org/mrEHA is also caused by the glibc update? php.net/crypt also needs updating as it specifies _Any selection of N outside this range will be truncated to the nearest limit. _
 
@moliata Yeah, in that case I'd definitely prefer an abstract method. But anyway, I know it can be hard to come up with examples that are simple and realistic at the same time.
 
12:50 PM
@Sjon Not a glibc update, an update of our implementation to match glibc behavior
 
Do we have that document somewhere, that magic methods *do not need* to be public, they can have other kind of visibility? I'm writing something for internals, as I believe either:

- we need to drop these warnings if they aren't true
- promote to an error if a magic method has any visibility but public
 
Docs need updating, but PHP 8 changes are not being documented yet
 
@NikiC right, cheers
 
@GabrielCaruso For one, I'd prefer the latter so that it's in line with wiki.php.net/rfc/lsp_errors :) Of course, the first alternative is also viable, but my guess is that people might think that if they make a magic method private then it is disabled.
 
@NikiC Anything else left to do on github.com/php/php-src/pull/5401 or may I go ahead and merge it?
 
1:11 PM
@ArnoldDaniels Not sure. I gave the thread a ping last week but there was no response
 
@MátéKocsis I think the same way. I'll throw something in the mailing list, let's see what people think
 
@MátéKocsis It will, I'm changing the one for arithmetics types to throw on "strigng" and warn on leading numeric but still evaluate to that value correctly
 
@nikic do you think 3v4l.org/LtSmU#v800alpha2 is a bug? While debugging I also found 3v4l.org/3WvQA which seems strange
 
@MátéKocsis Btw, about github.com/php/php-src/pull/4177#issuecomment-657268792: I'll spend some time this week trying to figure out how to get the non-trivial class hierarchy problem solved, thanks for pointing that out.
 
@Sjon In the first case, do I understand right that previously the second foreach loop (after iterator_count) just didn't do anything (empty iterator), while now it throws an error that rewinding is not supported?
 
1:19 PM
@GabrielCaruso I've just come across one of Nikita's comments: https://github.com/php/php-src/pull/5462#issuecomment-619810009 That's probably the way to do, but I think there are 2 problems with it:
- probably we ain't have time for that
- it was not clear from the RFC if variance is supported
 
I can't say I was aware of this change, but it seems reasonable to me
 
>- it was not clear from the RFC if variance is supported

I've answered that in the mailing list: yes, it will and it should: https://externals.io/message/110301
> - probably we ain't have time for that

Change what we have today, I agree, but I think we can have something working at least to validate the RFC's idea. I'll ping you later on
 
@NikiC I actually assumed IteratorIterator broke on DOMNodeList, caused by the simplexml-iterator. It's weird how count =1 for the second block but foreach doesn't output anything
 
@GabrielCaruso Oh I see. I didn't remember about this answer. :)
 
@Sjon At the least I'm getting a valgrind warning, so there's definitely something to fix here...
 
1:28 PM
okay, I'll report it properly, thanks
 
count(DOMNodeList) doesn't match count(IteratorIterator(DOMNodeList)) ・ SimpleXML related ・ #79852
 
@Girgias It seems good to me! However, what will happen with ZPP? Will foo("123abc"); also become a Warning?
 
@MátéKocsis I dont really want to, do you think it would be better to make a larger BC break for arithmetics or make that a warning ?
I think going the harder BC break route and force people to use an explicit (int)/(float) cast seems to be better
 
1:47 PM
@NikiC What are your plans for improving type checking for operators (breaking BC)?
If there is an effort in that direction, I might just withdraw my strict_operators RFC.
 
cmb
Are interned strings only supported on NTS, or is github.com/php/php-src/blob/… out-dated?
 
@cmb outdated
 
@Girgias For me, a warning seems to be the more sensible idea, since currently, only a notice is emitted. But I think what is more important to me is that foo("123abc"); and var_dump(123 + "123abc"); behaves the same way. Or shouldn't I bother about their consistency?
 
zts support has been added around ~7.2
 
cmb
ta
 
1:54 PM
@ArnoldDaniels I did wiki.php.net/rfc/arithmetic_operator_type_checks for php 8, but I don't really have any immediate plans beyond that
That fixed some of the most egregious cases, but dealing with scalars is a lot more controversial
 
\o Good morning.
 
@NikiC Oh, it's pretty unfortunate there was no answer on the list. But I'd be surprised if people wouldn't desperately want this (except for Tony Marston and a few others :D :D)
 
@MátéKocsis Well it's more that the weird -1 mode of allow errors is getting dropped and changed to disallow errors, and this makes type declarations and arithmetric ops behave differently because arithmetic ops would convert even "str" to 0 whereas that doesn't pass a type declaration
So it's already inconsistent in some way
But I did say that notices would just be promoted to warnings...
God this is annoying
 
2:16 PM
@Girgias Maybe Ok, I got it now. I'm not sure what the ideal solution is. I'd love to get rid of the "str" to 0 conversion, though. But probably this is the point when the changes would become too disruptive. ^^
 
Well the annoying thing is that I think TypeErroring is the best solution
"str" to 0 already emits warnings so making that a TypeError ain't too far fetched
The issue is if the Notice -> TypeError one is reasonable for strings such as "123abc"
Because if it just becomes a warning, the question becomes how is it meant to evaluate
Should it evaluate to 0 or 123?
 
I'd say 123, just like in the arithmetic case currently
 
currently in my patch it evaluates to 0 lol
cause I didn't double check that code path
 
I meant currently as in dev-master :)
 
Sure, so should that also pass type declarations?
 
2:21 PM
I think I'm not the most capable person to answer these questions ^^
What I feel is that increasing the consistency of arithmetic operations and argument validation is a good thing
 
@NikiC help, for saner strings should I just promote notices to TypeErrors instead of warnings :|
 
@Girgias Exactly, pinging Nikita seems to be more effective for me as well :D :)
 
Morning, room!
@PeeHaa Haven't seen you in a bit- what you been up to?
 
Busy with work while sitting on the roof of our hotel :P
 
@PeeHaa is it on fire?
(the roof)
 
2:37 PM
no but he is creatively
I'm also going to roll the dice and guess that he's at least 1 beer deep
 
3:06 PM
Almost
Just taking my last sip
 
INVITE sip:beer@PeeHaa SIP/2.0
 
:)
 
3:28 PM
@Girgias which notices?
 
@NikiC Non well formed numeric strings
 
@Girgias for which cases? arithmetic or zpp?
 
Cause otherwise I need to tweak how type declarations work
Opinion on both
Currently in my patch ZPP thorws, Arithmetic warns
 
Kennethniz ・ *General Issues ・ #79853
 
4:04 PM
WTF are PHP's bitwise ops doing
Okay again W.I.P. but made some slights edits: wiki.php.net/rfc/saner-numeric-strings
 
4:19 PM
@NikiC Turned out that me doing the "variable formatting" upon every function call... had already been turned into ZVAL_COPY ages ago.
 
@Derick so ... you were just formatting for nothing?
 
No, i was already only formatting when I needed to show things
so nothing to optimise :-)
However, throw_exception_hook is called even when the exception is caught. Is there a way to hook into something only when the exception is not caught ? (ie, when PHP decides to show that stack trace)
 
There is none, but having one would be nice
At that point tje stack is alteady rendered though
 
I think it would be an excellent hook to add.
A zend_llist so you don't have to call prev handlers. Register a new entry with a function like zend_observe_uncaught_exception?
 
4:35 PM
Like what Benjamin added for error_cb?
 
@LeviMorrison oh reminds me of your new api methods
 
@beberlei Yes, which Nikita helped me with this morning.
The new approach using the run_time_cache is looking good.
 
ah i meant the exception ones :D
 
Ah :)
Well anyway, expect something new to play with this week :)
 
@LeviMorrison fun :D
 
5:04 PM
bench.php freeze on opcache.jit=1255 ・ opcache ・ #79854
 
5:32 PM
@NikiC Have you any further thoughts on the namespace RFC? Re Mark's suggestion of Ext in particular?
 
5:47 PM
@DaveRandom is your cellphone still connected?
Or just been away from WhatsApp?
 
6:00 PM
@Tiffany ignoring whatsapp til tomorrow lunchish because reasons
 
6:37 PM
👍
 
7:11 PM
Can i get some help with phpmailer? im trying to make an email verification but i get HTTP ERROR 500 whenever i go to the page my code is: pastebin.com/Hvntkb3j The XXX.XXX is me hiding my website.
Hey @STA Can You Help?
 
@EnzoTDZ Please don't randomly ping users about a question unless you know them. It may take some time for someone to respond after asking a question.
 
okay sorry
im new to the chats
 
(each room has its own guidelines, but they're usually linked in the room's description)
 
i get error 404
let me switch to my phone 1 sec
now i see it
ok sorry about that
 
Why are you assigning the password to the variable "username" is my first question?
 
7:25 PM
im not am i
the username goes to username and password goes to password when i look at it
oh
now i see
 
@EnzoTDZ first off, assuming this is a direct copy/paste from your code, I recommend breaking your code out into functions... the way it's currently written is pretty messy
 
its making them all empty

no i didnt copy and paste this i added a few comments to help me understand and yes i do aggree my code is messy but i cant do functions as often because my php seems to hate it
 
@EnzoTDZ "hate it" -- explain
 
im getting it reinstalled tomorrow tho
when i add 10 functions in one php document my php seems to crash
and give the http 500 error
 
7:28 PM
This block of code has too many responsibilities; too easy to get broken with every little change.
 
HTTP 500 is a pretty generic error which means there's an error on the server and check one of the logs for a more detailed explanation
 
You're explicitly creating a $token rather than generating one. I hope that was just a filler for showing us and you're not using the same $token code hard coded into your program.
 
$token = str_shuffle($token); shuffles the token and gives it to the user
 
Oh I see the str_shuffle... I hate this.
 
sorry
tomorrow it will be much cleaner once i get my new php installed
 
7:32 PM
are you on a shared host or something? what do you mean "new php installed"? do you have a local development environment?
 
i use byet hosting
and my php doesnt seem to update
so one of the support people are helping
 
do you have a local development environment?
 
no
 
that should probably be the first thing you set up ...
 
i do have a website i host on my pc but it only hosts my local website the one i use for my house. it has my music and pictures on it. should i do a dual host?
 
Rather than it being semi-random, you're basically obfuscating the token with a set of characters. You should create a token from something like $token = bin2hex(random_bytes(25))
 
i use windows not linux
okay statik ill go change that
 
user11867287
Guys, I'm suped pissed off and I don't understand this thing:

How can a process use 25MB/s of disk usage for extended periods of time (1 minute +)?

This HP download manager stuck at 25MB/s for 5 minutes just loading.
 
@EnzoTDZ I use Windows too, but I also use Virtualbox to set up a Linux environment
granted, that's only an option if your computer has enough RAM
 
user11867287
7:36 PM
That's like, Gigs of data being used in minutes
 
okay ill go setup vmware again
 
other option is using xampp, but ... xampp kinda sucks, but it's the easiest to use for people
 
You should store that token in a table in your database along with a timestamp for when it was created. Whenever they click the link you should not only verify the token exists but also ensure it was generated within the last 30 minutes... or whatever amount of time you want to allow it to be verifiable. For confirmation of creating an account maybe 24 hours, for password recovery only 30 minutes.
 
i do have a created_at in my table
it gets the timestamp
 
You have a lot of other things that worry me about the code... but I don't have the time to dive into them. You caught me at a moment where I was procrastinating. =)
@EnzoTDZ good
 
7:38 PM
@GaryOak there can be an infinite number of possibilities... you don't give enough information to go off of
@GaryOak I don't exactly follow, when I download games off Steam, I use gigs of data in minutes...
 
user11867287
Windows 10, HDD, HP laptop which seems to be mostly constrained (is that the right word?) by the DISK. Constantly capping at 100%. It's a fairly good laptop and the HDD is fairly decent (I don't remember exactly what it is).

So I'm trying to find a way to have some sort of say about the allocation of disk-usage.
 
user11867287
Yes of course if you download
 
user11867287
but the HP downloader thing
 
user11867287
it's merely booting loading
 
sounds like a question for your computer's manufacturer
 
user11867287
7:42 PM
Not really
 
user11867287
Hello dis shaniqua from HP how can I help
 
user11867287
Yes... em... north n-north bridge issues?
 
user11867287
THERE MUST BE A WAY TO ALLOCATE A HIGHER PRIORITY OF DISK USAGE TO A SPECIFIC PROCESS
 
user11867287
manually
 
its painful when your pc updates randomly with no warning :/
 
user11867287
7:44 PM
@EnzoTDZ if Windows, just say to notify when updates are ready
 
user11867287
or schedule them at 2AM
 
they are well its scheduled for 3 am
 
user11867287
with shut-down script at 4h or wtv
 
user11867287
That's odd, updates rarely get pushed auto
 
user11867287
when did that happen?
 
7:45 PM
just
my screen when black then it booted back up then update
but its nearly done anyways
 
user11867287
Oh, atm?
 
yup
pretty sure i updated it yesterday tho thats what confuses me
 
user11867287
Installing (on-boot) or downloading?
 
installing on boot
 
user11867287
oh
 
user11867287
7:46 PM
prolly just queued to install on boot
 
user11867287
some updates require a fresh boot (probably to make sure no conflicts happen during install)
 
user11867287
so they get queued for "next boot"
 
but i never downloaded the update tho and its set for me to choose when it installs
i mean downloads
 
user11867287
Didnt you just said you downloaded updates yesterday?
 
user11867287
Like, moments ago?
 
user11867287
7:48 PM
Thank you Tiff
 
i mean like i installed it yesterday and downloaded
 
user11867287
yeah, some updates must've been requiring a reboot. So you downloaded, then installed. Now you're rebooting for the first time since this update?
 
user11867287
Since yesterday's download&install update
 
yup
anyways this is a php group xD
 
user11867287
I don't understand what you don't understand
 
user11867287
7:50 PM
Yiup
 
well its done now anyways time to do the linux stuff
 
user11867287
good
 
just 1 problem i gotta download a 4gb item with a 3mb/s download speed.. CURSE MY LAPTOP THATS GOOD AT EVERYTHING BUT DOWNLOADING
 
user11867287
This statement also irritates me
 
i would do it on my school laptop if the school wouldnt be mental
 
user11867287
7:51 PM
Where's the throttle happening
 
dunno
 
user11867287
Bad internet?
 
nope i got good internet this pc im on downloads at 25mbps and my phone downloads at 20mbps
and my xbox and ps download at 50mbps
but to be honest i dont care as much as im watching a movie
 
user11867287
Is it a IDE HDD lol
 
dont think so
its an ssd
the pc im on rn is a hdd
 
user11867287
7:55 PM
I think I'll just buy a 128GB SSD for $40 and switch it.

It's no liveable.
 
user11867287
Stuttering when doing practically anything
 
my sdd and hdd are both 1tb and my school laptop is 256sdd
 
user11867287
Woke up, hungover, almost cracked my screen in half
 
im better than my school xD
 
user11867287
like a hard shell taco
 
7:56 PM
lol
 
user11867287
SSD OP
 
yup
im gonna get back to coding my house website until my linux is done cya
 
user11867287
house website?
 
user11867287
smarthoming?
 
yh so it has music pictures and light and that
 
user11867287
8:41 PM
Websrv managed? Careful with OPSEC if 8080 capable
 
user11867287
443*
 
what it does is i hit a button on my page and it sends a msg to my arduino or whatever its called and it will move this pointer do a button and it will be pressed down and then my lights will be changed all i got to do is move the remote that came with the light to not let it change
 
I want a dumbhome, I don't trust IoT
too much of it is cheap shit where security is an afterthought, usually ends up in a botnet
 
user11867287
9:08 PM
This ^
 
user11867287
Also, I downloaded chipset drivers and Intel Rapid Storage Tech
 
user11867287
If fixed like 80% of my issues (apparantly)
 
user11867287
I'm surprised that Windows Update didn't fetch the proper/latest/important updaes
 
9:23 PM
What about this idea: You should only share immutable dependencies in DI.
 
9:45 PM
argh!!!! Somebody rescue me from this loop. I need to save the alpha channel on a png, but I also need to get uploaded files to a reasonable size. I am essentially making quick and dirty image compressor... but it isn't working with PNG... I have only tested it with jpeg and png so far. codebin.herokuapp.com?s=5f0cd5ba12082d0004000001
update for file typing
http://codebin.herokuapp.com?s=5f0cd61112082d0004000002
 
Why not use a proper tool for it?
 
Proper tools assume that the server has certain resources
I am making the fallback first before doing that
 
@NikiC I'm hitting a sigsegv when trying to use php_printf in my bundled observer extension.
(gdb) bt
#0  zend_get_executed_lineno () at /home/levijm/Projects/php/php-src/Zend/zend_execute_API.c:561
#1  0x00005555558deeeb in php_output_header () at /home/levijm/Projects/php/php-src/main/output.c:112
#2  0x00005555558dffc5 in php_output_op (len=12, str=<optimized out>, op=0)
    at /home/levijm/Projects/php/php-src/main/output.c:1067
#3  php_output_write (str=<optimized out>, len=12) at /home/levijm/Projects/php/php-src/main/output.c:252
#4  0x00005555558cd26a in php_printf (format=<optimized out>) at /home/levijm/Projects/php/php-src/main/main.c:883
I think Sammy hit this in his observer too, but we never looked into it. Maybe I'm hooking the call handlers too early in some case, or something.
Example script:
<?php

function foo() {
  echo "Hello\n";
}

foo();
 
10:03 PM
If there was an easy way to get these on windows I would use a composer package that uses them

JpegOptim
Optipng
Pngquant 2
SVGO
Gifsicle
cwebp
 
It appears to be un-initialized memory; it has an address but it's not reachable.
 
10:50 PM
@TylerLazenby image magic?
 
I assume you are refering to this php.net/manual/en/book.imagick.php
 
I have done something similar. I forget what I used. Let me check the source.
I used imagecreatetruecolor(), and imagecopyresampled(), then for png imagepng()
The first function creates a canvas 2nd one copies from the uploaded file and shrinks depending on the quality specified.
 
11:07 PM
Sal do you worry about saving alpha?
 
transparency
I did not account for that. Never really tested for transparency.
 
Yes that is what I mean by saving alpha
See that is where I got hit by my stakeholder. PNG's on email logos need to be transparent.
 
hum
that's the requirement.
 
Oh well, I will continue to try and figure out how to get this to work on windows
https://github.com/spatie/image-optimizer
 
Let me test.
 
11:17 PM
did it work?
 
negative
gives it a black background
101
Q: Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled?

CheekysoftThe following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. Even though imagesavealpha is set, something isn't quite right. What's the best w...

scroll down some guy says he was able to achieve transparency
skipped these two lines and it still worked: $transparent = imagecolorallocatealpha($tmp, 255, 255, 255, 127); imagefilledrectangle($tmp, 0, 0, $newwidth, $newheight, $transparent);
 

« first day (3558 days earlier)      last day (1375 days later) »