Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Ben Ramsey
> On Mar 16, 2020, at 13:48, Sara Golemon wrote: > >  >> On Mon, Mar 16, 2020 at 12:49 PM Ben Ramsey wrote: > >> > On Mar 16, 2020, at 12:48, Sara Golemon wrote: >> > >> > On Mon, Mar 16, 2020 at 11:17 AM Ben Ramsey wrote: >> > I’m currently working on a patch for this, so this might help

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Sara Golemon
On Mon, Mar 16, 2020 at 12:49 PM Ben Ramsey wrote: > > On Mar 16, 2020, at 12:48, Sara Golemon wrote: > > > > On Mon, Mar 16, 2020 at 11:17 AM Ben Ramsey wrote: > > I’m currently working on a patch for this, so this might help with one > aspect of your proposal. > > > > Here's a quick&dirty for

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Ben Ramsey
> On Mar 16, 2020, at 12:48, Sara Golemon wrote: > > On Mon, Mar 16, 2020 at 11:17 AM Ben Ramsey wrote: > I’m currently working on a patch for this, so this might help with one aspect > of your proposal. > > Here's a quick&dirty for AF_PACKET, looks like OSX/BSD might need AF_LINK > though...

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Sara Golemon
On Mon, Mar 16, 2020 at 11:17 AM Ben Ramsey wrote: > I’m currently working on a patch for this, so this might help with one > aspect of your proposal. > > Here's a quick&dirty for AF_PACKET, looks like OSX/BSD might need AF_LINK though... https://github.com/php/php-src/compare/master...sgolemon:

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Ben Ramsey
> On Mar 16, 2020, at 11:22, Aran Reeks wrote: > > Hi Ben, > > Thanks for the feedback, I wasn't aware of net_get_interfaces, but that's > really helpful and agree that post your patch, implementing a > get_network_mac_addr() function (or similar name) would be amazing. > net_get_interfaces

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Aran Reeks
Hi Ben, Thanks for the feedback, I wasn't aware of net_get_interfaces, but that's really helpful and agree that post your patch, implementing a get_network_mac_addr() function (or similar name) would be amazing. Many thanks Aran On Mon, 16 Mar 2020 at 16:16, Ben Ramsey wrote: > > On Mar 16, 2

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Ben Ramsey
> On Mar 16, 2020, at 11:06, Aran Reeks wrote: > > Hi Internals, > > I'd like to open up a discussion around the implementation of a new > function within PHP for generating a UUID. > > Whilst there are libraries out there already for PHP which can generate a > UUID, all of those libraries have

[PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Aran Reeks
Hi Internals, I'd like to open up a discussion around the implementation of a new function within PHP for generating a UUID. Whilst there are libraries out there already for PHP which can generate a UUID, all of those libraries have the possibility to generate IDs that *could* have a collision.