Avatar
Ben Ramsey
e653eb60b2db5edf906d354c2825bf00a80dfab1b1766cd97805155e8fcc0db3
Coder, Author, & Speaker. PHP 8.1 & 8.2 RM. ramsey/uuid. Open Source. Staff+ Engineer. he/him Co-admin of https://phpc.social All original content © me & licensed CC BY-SA 4.0, unless otherwise specified. :cc: :ccby: :ccsa: The opinions expressed on this profile are my own and do not necessarily reflect the views of my employer or any affiliated organizations. Any information shared is intended solely for informational purposes and should not be construed as professional advice.
Replying to Avatar Pianosaurus 🕴

nostr:npub15tepx7lk826fa82s683nqw85lte8mn8e2ujg2gvxavkvxl9asx9qv82c9n It shouldn't close the terminal, unless you 'source' the script instead of executing it.

nostr:npub18aaspershfy4cwjp4x5x0qzlw6pdp0ky4a9v773k8cmlselj62ascz705p nostr:npub15tepx7lk826fa82s683nqw85lte8mn8e2ujg2gvxavkvxl9asx9qv82c9n It’s a function with an exit in it, so if you execute it while in a terminal, it runs it as if you typed “exit.”

nostr:npub13klqm9frplhxwyamcpd66vp4k6w07rpm6anpk2r8tpsp5zs0hu0su2q6yp I’ll be at Dragon Con next weekend in 35C temps, and there will be tons of hot weather cosplaying that’s also not for the faint of heart.

nostr:npub10ltl3pugxhk4ht9parv2gs7fwedthv9af6epmn7au7gx7z70rv0spcvh2u Meta uses a monorepo, but because of speed problems, etc., they ended up developing their own file system and VCS so they could continue using the monorepo. https://github.com/facebook/sapling/blob/main/eden/fs/docs/Overview.md

nostr:npub14zr3e5jwdh2dgp44yc379q6g37jyt7wt7g4pvuqtzdvqhsvfjwsqpx9fx0 nostr:npub1y4s7hjcxn9e2dxakrl98taqevp8vk9fn4axpkejqcuvackcg7f6sgnvgt8 Maybe. The page for it says, “The very best managed WordPress experience with unmetered bandwidth, best-in-class speed, and unstoppable security bundled in one convenient package.”

So, I’m just assuming it’s a WordPress.com plan.

nostr:npub1y4s7hjcxn9e2dxakrl98taqevp8vk9fn4axpkejqcuvackcg7f6sgnvgt8 It’s not an archive. It’s a managed hosting plan on WordPress.com.

nostr:npub156yx5pyknkaeyfz32lrxxz77943lxz4qhxrtszll7efj8tpuxvfs4dladl nostr:npub17u92uyrrudrjq9pwpx888d960cn5fhq6tj5v7dkvxeq96nwf6x8qsxpvh2 I was trying to work on an internationalization extension for PHP, but I decided I really need a break instead, so I switched to playing Baldur’s Gate 3. https://github.com/php-ecma-intl/ext

nostr:npub15t7j6m70tv72xmgryk7ehvznx7eqs55y7avgel4j6k0t5fekm72q9vv9k3 There was a performance reason for HHVM, but the Zend Engine is now on-par with HHVM, from what I understand. Hack is a different programming language that interoperates with PHP, and HHVM doesn’t support modern PHP, so there’s no ecosystem benefit (e.g. Composer packages) when using Hack. I think Meta made a mistake with that decision; no one outside Meta or Slack uses HHVM now.

Hey, y’all! You know what it means that #WordPress will be offering a 100-year hosting plan?

It means we’ll have at least 100 more years of #PHP!

Replying to 955f09c8...

nostr:npub1jpp36eeycvlkkdy4d4l4lgswvf8jtdare5vly0w0sk7rc39pzgrqlyu59l That is an excellent question that I fear I'm not equipped to answer. I've tried groking the source code https://github.com/php/php-src/blob/master/ext/spl/spl_iterators.c but, not being a C developer, the closest I can figure is that the Callback / Filter iterator isn't considered 'valid' until it runs the callback and that only happens on rewind or next, not current or construct.

nostr:npub1hdsn205nadzd8d84hkqeq4djprsvdj9x9a3gxhrzqq8wympr2c9qj6u65c Why does the other example with the while loop work without the `rewind()` call, though?

Replying to Avatar Ben Ramsey

nostr:npub1c25hmmzjxfne2j9psplew985g7ac5jw0gajx437n7e4ae7v30scskk6m89 There’s a difference in the output of the two links in my original post.

nostr:npub1c25hmmzjxfne2j9psplew985g7ac5jw0gajx437n7e4ae7v30scskk6m89 Not between different versions of PHP… but between the examples in the two links (though I would expect both examples to produce the same output).