« first day (4057 days earlier)      last day (888 days later) » 

12:00 AM
@DaveRandom My instinct would be to say that private / internal always comes first. You also have the option to fully qualify the Baz class, anonymous classes go in the root NS I believe
 
@BenjaminDover unfortunately I (we) don't know about that particular service, you'd probably be better off on their forums, you have a platform-specific problem at the moment
@MarkR yeh same, there is a pretty logical and obvious resolution order for me, but "it's obvious" does not historically fly well as an argument...
 
Well as no historical code would ever be marked as a private class, there'd be no BC issues
 
no, but there may be legacy code which would suddenly start resolving the wrong type if you introduce a new option higher up the tree
 
Said code would need to include the private class in its own file
 
sorry just to take a step back here, I seem to have fallen into arguing against this which was not my intent :-P
I can see what you are getting at, I don;t think it would get past the gatekeepers, which I seem to be emulating, I thing it would have more chance if you make it "separate" somehow
if you have a solid set of well defined rules I am OK with it tho
 
12:50 AM
in related job-changing news, I'm starting a new job December 13 :)
 
@Tiffany Congratulations! šŸŽ‰
 
thanks :)
 
oooh, anything cool?
 
better tools :P
I think it will be pretty awesome
 
1:14 AM
@Tiffany Yay congratulations! :D
 
Thanks :)
 
 
2 hours later…
3:33 AM
@NikiC I want this last RFC to be your crowning achievement. Go out with a big ol' mic drop.
Dynamic Properties, Peyotch!
 
\o/
ya'll should organise a twitch stream or something to coincide with the launch =) invite people who've contributed etc
 
3:55 AM
and by should, I mean hope you might consider.
 
 
3 hours later…
7:19 AM
@PatrickAllaert @ramsey @JoeWatkins small questions about 8.1.0GA
I don't see the PHP-8.1.0 branch... (php-8.1.0 should have be tagged from this one)
NEWS file have not be merged (RC removed, and 8.0 entries pasted at the end) see /opt/remi/php81/root/usr/share/doc/php81-php-common/NEWS ("Preparing for the initial stable version (PHP X.Y.0)" §3)
and perhaps PHP-8.1.0 should have be created before last RC (so RC6 = GA)
OK, 7.4 entries are also missing in 8.0 NEWS file... :(
 
8:11 AM
@RemiCollet I wasn't involved, not sure what is happening ...
whoever answers next include ping at me please
 
8:35 AM
Can I ask anything about php here ?
 
9:05 AM
anything
 
@Tiffany Congrats! What's your new position?
 
Heh, looks like azure went belly up as well
 
@Tanker You can, but you can't task to ask ;) (Chat don'ts rule 3)
 
I sent a request to restore our parallelism allotment
 
9:24 AM
Hello peeps, been a while, hope you're all well. So I'm attempting to implement a Authorisation Grant flow in a Symfony project with the thephpleague/oauth2-server-bundle package. The objective is to create a native auth flow (apparently this replaces the password grant) and then an external auth flow with google or facebook login. I created an example project, feel free to point out what's missing or incorrect. Cheers!
 
10:10 AM
@JoeWatkins Do you have credentials for the php.azure.devops@gmail.com user?
 
10:26 AM
does anyone has experience in dealing with Symfony consumer async message response handling
 
I have a string "Elementsaber Molehu@2; Aleister the Invoker@3; Elementsaber Nalu; Elementsaber Malo; Cosmic Cyclone@3; Invocation@2; Palace of the Elemental Lords@3; Fiendish Chain@3; Treacherous Trap Hole@2"

how I can count number of after @ and every after 2; like above total is 20 words guys (@2 mean two, @3 mean three)
 
0
Q: Symfony consumer async message response handling

Faiz RasoolI have situation where i have to send async message and then show the result of that to the user waiting on loading screen. I am using doctrine base queue. My message object looks something like this: private string $messageId; private string ...; public function __construct(string $...

 
11:14 AM
@IluTov Ngl I'm also trying to figure out how much to ask as I have no idea, nor know how much time I can put into it for the next 8ish months
 
op gg dropping 10g just now :O
 
When a gaming website drops more money than some business lol
 
That may change over time as people become comfortable with the foundation and it distributing funds.
At least developers have something to point at now and say "Hey, funding this is good for us" whereas previously there was no option other than effectively hiring developers themselves
 
None of the big transactions have made it through yet
 
11:29 AM
Made in through, as in are listed on the site, or are tied up in paperwork?
 
Well, JetBrains mentioned $100k, and that's not in the pot.
 
Aye, well that being the case it looks like the 300k target will be hit quite easily.
 
@MarkR Not listed yet. It seems like the bank transfer option is pretty slow
 
Oh that's why
 
Has any consideration been given to using some of these funds for bug bounties or is that not in scope? It'd certainly be nice from a user point of view to incentivise research in that area
 
11:43 AM
The scope hasn't quite been defined, AFAIK.
As an interesting fact, I set up an OpenCollective for Xdebug last year too, but never mentioned it to anybody... (opencollective.com/xdebug), but... some people still contributed :-)
 
Hello All
need one help
can anyone tell me how to solve this
 
@MarkR My 2c: Absolutely not
 
We used to have bug bounties via IBB, and I don't think anyone was happy with the quantity of low quality crap
(Where "low quality" means "extensive write up and poc with not a single brain cell wasted to check whether something is a security issue under our policy")
If we wanted to have bug bounties again, we'd probably want to get back on the IBB program, but that would need someone to actually work on security response first :)
 
Why is someone at IBM interested in PHP's Travis CI build?
 
11:56 AM
@SebastianBergmann They have extensions under the PHP organization
 
cmb
and s390x is an IBM thing, isn't it?
 
12:11 PM
Looks like there's a problem with the PHP build system with GCC-11, which silently ignores -R (thus PHP thinks it is a supported rpath switch). Not sure what gcc 11 uses it for, yet.
-Wl,-R works though
 
@m6w6 I've no problems with GCC 11
 
@Derick ... as long as you do not try to link against a lib located at a non-standard location? (thus needing rpath)
$ gcc -o conftest -g -R/opt/lib c.c.c -lrt -lfoo
# $?=0, but cannot find libfoo at runtime
$ gcc-10 -o conftest -g -R/opt/lib c.c.c -lrt
error: unrecognized command-line option ā€˜-Rā€™
 
@Derick That reminds me, you were asking for ideas to add value to your xdebug offerings, how about adding a 60 - 90 minute zoom meeting to use as a tutorial on setup and configuration?
 
12:33 PM
@Maximious you already get answer, and link to howto.
Simply follow the howto explanation, and ask less generic question
 
Apparently -R spcifies a sysroot: github.com/gcc-mirror/gcc/blob/…
 
Morning guys
 
@m6w6 no issue with GCC, even with some ext where rpath make sense
 
Is 8.1 already released? windows.php.net/download
I thought it was coming tomorrow
 
@PeeHaa The release is tomorrow i suppose, but 8.1 was tagged already.
 
12:48 PM
Alrighty. Time to see what all the drama is about I guess
 
cmb
Yes, Windows uploads happen as soon as the build is done. Mainly for historic reasons, where these have been passed to QA this way. Still done, but could be changed.
 
@PeeHaa not announced yet, so consider these as QA builds ;)
 
@RemiCollet I read your post thoroughly but still I am not able to figure it out. In which file I have to set it
 
@Maximious again, you env seems a real mess, start from a fresh install, follow the wizard to install the proper PHP version you need, then the howto. Everything should work out of the bow. Impossible to help on a too much altered env.
 
1:03 PM
@RemiCollet hi Remi, I don't speak with you much, is it okay with you if I added you as a room owner? (of the like bazillion we already have)
 
@Tiffany I don't even know what "room owner" really mean, btw ok for me
 
@RemiCollet Waiting on fresh pecl builds anyway :)
 
@RemiCollet basically like "super user" in the chatroom. You can pin messages to the right or kick people if they're bothering you. :P
 
cmb
@NikiC yeah: bugs.php.net/bug.php?id=81654 (not filed as sec issue, though)
 
1:06 PM
:)
so much [-Wstrict-prototypes] warnings.... seems related to latest GCC
 
cmb
@PeeHaa mass rebuilds will have to wait a while (likely Jan or early Feb). Few snapshots are already available. I can trigger snapshot builds for some other exts, if you like.
 
I primarily use decimal, redis, pcov and imagick
Looks like just imagick and decimal need a friendly nudge
Don't really use imagick though. Mostly just for testing purposes and dicking around
 
cmb
1:23 PM
 
@cmb the 1.4 version of decimal allegedly works on 8 pecl.php.net/…
just not the 2.x branch.
 
Yeah, we've been using it on 8.0 for a while
 
@PeeHaa lol
 
@PeeHaa for the record, that's the only uses I've used it for also...
 
@MarkR For individual users? I have been thinking about doing Friday afternoon mini-consults, but haven't really thought that out yet.
 
cmb
1:35 PM
@Danack ah, thanks, just triggered an 8.1 build (let's see).
 
@Derick I was thinking along the lines of group training, for your business plan
 
oh ok. Yeah. I have done a few of these, but not "officially", as in, not announced.
@MarkR What sort of price tag would make sense on something like that? It needs to cover time to work on Xdebug beyond that too...
 
Well if memory serves you were looking for things to increase the value proposition on your pro / business subscriptions. So either including 90 minutes in the business one, or offering a heavily discounted training session when you also have business, would seem applicable
 
@Danack :D
 
@MarkR Ah, ok. Yes.
@MarkR I am currently coming up with some kind of strategy and goals and stuff like that, instead of doing ad-hoc things.
 
1:39 PM
@cmb if you have some spare time... trying to find a proper way to fix gd (related to github.com/php/php-src/pull/7683)
 
1:57 PM
was there a force push to php-src master? I see there's a merge commit from the last git pull on heap.space
 
Thanks @cmb! This was an easy upgrade :)
 
@Ekin I have this script when that happens

```
#!/bin/bash

export CURRENT=$(git branch|grep '*'| sed s/'\* '//g)
export TEMP="temp_$(date +"%Y-%m-%d_%H-%M-%S")";

git checkout master
git checkout -b "$TEMP"
git branch -D "$CURRENT"
git fetch origin
git checkout $CURRENT
git branch -D "$TEMP"

echo "Branch udpated"
```
 
cmb
@RemiCollet ugh, that's ugly! Maybe we should deprecate imagecreatefromgd2part()? Until it is removed, we could do varargs (even uglier), or suppress the warning, or duplicate (parts of) _php_image_create_from().
 
@cmb for now I have something looking like paste.centos.org/view/be93fe0b
(the simple part for now)
 
cmb
@Ekin I don't think there was a force push.
 
2:04 PM
anyone know what the format is called for the info structure at the top of raw.githubusercontent.com/MicrosoftDocs/architecture-center/… ?
 
looks like some kind of yaml
 
looks like yaml
 
cmb
@RemiCollet LGTM :)
 
@cmb but _php_image_create_from is not fixed (the hardest part)
 
2:18 PM
<3
 
stackoverflow.com/questions/254514/enumerations-on-php this has an answer based on PHP 8.1 now, this one in particular stackoverflow.com/a/66208862/2524730
 
@cmb nice one... trying to fix the warning allow to find a real issue...
https://www.php.net/manual/fr/function.imagepng.php => $quality, $filer
So => (*func_p)(im, ctx, (int) quality, (int) basefilter);
But gdImagePngCtxEx only accept a "level" arg...
Can you please check that I'm right ?
 
cmb
2:36 PM
@RemiCollet Attention: La paramètre filters est ignoré par system libgd.
we should "fix" that
 
arg... you're right, this is only in sysytemgd
 
cmb
we need to deprecate the basefilter parameter; otherwise unbundling libgd will be harder (for Windows) users who rely on that parameter; or better, add that param to libgd (github.com/libgd/libgd/blob/master/src/gd_png.c#L837-L839)
 
@cmb so, my proposal github.com/php/php-src/pull/7684
only for master... as quite some bug changes, but also fine for 8.1
 
3:22 PM
@Danack This is called Front Matter and is a YAML document in the text-stream.
 
@RemiCollet I didn't get your comment at github.com/php/php-src/pull/7684#issuecomment-977962688
 
And thanks for asking, didn't know there was YAML spec 1.2.2 released on 1st of October.
 
3:37 PM
"No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form https://aka.ms/azpipelines-parallelism-request"

On last build of branch PHP 8.1: https://dev.azure.com/phpazuredevops/PHP/_build/results?buildId=21725&view=results
Is this like Travis CI, where we need some more credits?
 
I think I saw that somebody here at already requested it (today)
 
@NikiC because misunderstod your question (-Wno-strict-prototypes vs -Wstrict-prototypes)
 
3:52 PM
@NikiC btw this flag is only for bundled libgd... (I notice the warnings using system libgd)
/me is tired, already a long day, enough for today
 
4:20 PM
@hakre thanks. And apparently github.com/spatie/yaml-front-matter is a thing that exists.
 
@Danack oh and postcard ware - haven't seen that for decades.
 
4:39 PM
morns
 
Theory time! Let's say I have an entity that I want to perform actions on by abstracting them out, would you:

a) Wrap the entity in an abstraction $someFactory($entity)->someMethod()
or
b) Pass the entity to a general service as an argument e.g. $someService->doAction($entity, $arg1);
 
b
just so you can keep your service stateless
 
5:14 PM
depends. perhaps c) where you make the entity the parameter of the action method.
 
@hakre isn't that b?
 
it has $someService where its unclear to me how that is not the result of $someFactory($entity).
 
A is effectively taking an entity and turning it into a rich model via a factory that injects additional services into the constructor, along with the entity
 
do you need the inversion of control for the abstraction?
 
the inversion is for additional services such as IO
 
5:19 PM
okay. and is there a reason why b) has $arg1 but a) not?
 
I got a report of compilation error of PHP-8.1.0 on 32bit arch having many errors like:
make_x86_64_sysv_elf_gas.S:34: Error: bad register name `%rdi'
 
Yes! ... I forgot to add it
 
(or just quick drawn examples)
 
@PatrickAllaert They did not specify --build
Assuming by "32-bit arch" you actually mean "32-bit arch cross-compiled from 64-bit arch using -m32"
 
5:21 PM
mhhh, yes, but then it worked before PHP 8.1 without the --build?
because that's in the CI that is already in place
 
Yes, it worked previously
 
then I think a) and b) are having only differences on the injection of $entity into the abstract action "service layer". b) is perhaps easier to pass along as you can provide the entity with the argument as multiple parameters. b) could wrap a) inside doAction().
 
32bit? What the hell is this? 1996?
 
Now you need something like --build=i686-pc-linux-gnu
 
@Sara Can't agree more with you, for the same reason I wish we wouldn't support 7.0, 7.1, ...
 
5:22 PM
Oh shit, I have big hair and am wearing pastel colors
 
I had to fight for dropping support of PHP 5 ;-)
@NikiC ha, ok, thanks! Then it makes sense
 
@hakre a is supposed to be $someFactory($entity)->doAction($arg1) as far as i understand, where the factory creates a service for that entity specifically, making it stateful.
 
@NikiC Would -march=native fix the issue too?
 
Basically our root aggregate would be... enormous, with something like 40 different role specific children. So I'm wanting to break out that functionality into individual services for testability sake, right now they're built within a larger model
 
@SaifEddinGmati and in b) you can still decide to implement it with a) : doAction($entity, $arg1) { $this->someFactory($entity)->someMethod($arg1);} - IMHO state of the factoryis less to make a decision but how its to be called and the state there.
this sounds really like a large model.
 
5:32 PM
It is, hundreds of methods,
 
Classic example is refactoring with extracting method objects. Does the entity "class" change (multiple, different entities) or is it always the same?
 
Always the same, it represents a live stream, which is the parent of 30 to 40 individual features.
So right now, as I don't want a 20,000 line class, I take each one of those features, wrap their behaviour into a distinct class, whose constructor takes the livestream entity, along with any other services it needs, and then operate on that.
 
I'd go with what looks easier to break apart and b) makes the method object exchangeable so that you can extract method after method and can decide if you put them on a new object or another one is still fitting.
 
@hakre i'm assuming the factory returns a services that wraps $entity, which makes it stateful, for me that's a big NO-NO since there will always be a reference to that entity.
 
@SaifEddinGmati only temporary.
otherwise big nono, sure.
 
5:37 PM
@MarkR yea, i would instead make the live stream entity a parameter in the methods, so the service instance can be used to operate on multiple entities, without having to construct and new service.
@hakre in my experience, all problems start like that :p
 
@SaifEddinGmati that method only delegates the call. no state is kept.
 
My "problem" with that, if it's the right word to use, is that it doesn't feel like it's encapsulating the behaviour. It feels like it's procedural with a few extra parameters via the constructor instead of passing them as extra params
errr, functional I meant
 
i'm assuming the doAction is implemented as follow:


public function doAction($arg1) {
$foo = $this->entity->getFoo();
// do work
$qux = bar($baz, $foo, $arg1);
$this->entity->setQux($qux);
$this->otherService->doBizz();
}
which means that the service instance can only be used with that entity; resulting in having to destroy the service and create a new one to operate on a different entity.

meanwhile, this can be avoided by having $entity as a parameter
 
@MarkR Think of $this being the first parameter of every class method only that you don't need to pass it.
Now making $this explicit by using $entity as first parameter.
You can still use your (now) 20k lines object, but move the functionality out. Keep the old methods which are then shallow. There delegate the calls into the new, right places of the method objects that now have the (isolated) implementation.
software at the end of the day should be functional, if it feels like that, I don't think its wrong ;)
 
I don't currently have a 20k line object, because each feature has its own handler which wraps the entity (currently) and they're much smaller.
 
5:45 PM
okay, but you have already the testing problem?
 
Somewhat, these things deal almost exclusively with integration tests with a live DB (the DB contains necessary logic as well)
 
integration tests. well you have not said that earlier. puh. do you need the integration tests (guess so otherwise you wouldn't write it, right?) to test the methods?
because for finding the right design I would favor unit tests strongly over integration tests.
 
Yes, almost all of them deal with DB manipulation
 
and creating the fixture blocks you from unit testing?
 
Nah, it's just requires a fair amount of setup for each one. The bigger problem is that these individual module instances are generated from a service builder injected into the main model.
 
5:56 PM
sounds like ioc where it is (perhaps) not needed. however at least you can configure it, right? ^^
 
Yeah, although 99% of it is handled via autowiring
 
so the problem is less that the methods of that main model aren't yet growing out of proportion, but creating the main model is expensive and turns out to become more and more expensive. would that sentence describe what you have?
and I guess you're using constructor injection?
 
Correct
 
okay, split the main model. delegate via a factory on that $entity (lightweight representative) the method calls. that is (I guess) a bit of b). You will now be able to test methods individually by each method object.
You would not need inheritance nor state (apart from the one in encoded in the service / injection layer) but you method calling semantics change a bit to what you call "functional".
 
I'll keep those comments in mind as I continue my research, thank you for the input =)
 
6:08 PM
If that is a problem for you, you could on top create a wrapping object that decorates $entity with the method()s. then you won't need to pass $entity always as first parameter.
which can be a must if you refactor / renew in a running application and need to keep the calling semantics and instances etc.
have to go shopping now.
but I won't leave here today without saying: I ALREADY MISS YOU NIKIC. THANKS A TON.
11
 
 
2 hours later…
8:27 PM
@Danack Org mode maybe?
 
5 hours ago, by hakre
@Danack This is called Front Matter and is a YAML document in the text-stream.
 
ohhh
Also thanks @RemiCollet for fixing the strict-prototype warnings with libgd, I really couldn't figure it out myself
 
@Sara Maybe it's easier to discuss here: What do you expect for the fiber example on the release page?
 
8:46 PM
insert inappropriate reference to 'bristol stool chart' here
 
9:12 PM
._. .-.
 
10:11 PM
so er... it might sound naive, but when setting an utf8 character set on a mysql db's table, field, as well as a utf8 unicode collation, shouldn't that mean that I can count on what being inside actually being that?
as in, mysql, or PDO, or php would magically recognize non-utf8 stuff at some point and convert them I don't know
 
@FĆ©lixAdriyelGagnon-Grenier utf8_mb4 is what you want.....probably
utf8 = 3 bytes only....
though apparently utf8mb4_0900_ai_ci is the new hotness.
 
yes, I should have said utf8mb4 indeed, I believe I've made the changes on pretty much all fields I could see
however, let's check again, reality being what it is and everything
 
and you need to configure the mysql config to detect invalid sequences, which escapes me for the moment
 
oh that doesn't ring any bell, I don't think I've willfully done that in any capacity
 
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
STRICT_TRANS_TABLES - If a value could not be inserted as given into a transactional table, abort the statement.
or STRICT_ALL_TABLES
 
10:22 PM
huh, interesting, thanks! I was vaguely aware of strict mode, but didn't think it'd had that deep of an effect on something so seemingly unrelated
 
...hmm. a composer library that just shipped a sanity test for DBs might be a useful thing to make.
 

« first day (4057 days earlier)      last day (888 days later) »