PHP

tcurdt,
@tcurdt@mastodon.social avatar

CVE-2024-2961 sounds pretty scary.

Supposedly especially problematic for PHP.

Exploit demonstration is scheduled for May.

https://securityonline.info/cve-2024-2961-glibc-vulnerability-opens-door-to-php-attacks-patch-immediately/

Stay safe out there.

s2b,
@s2b@norden.social avatar

This was a great TYPO3 camp in Zurich! Yet another part of the community I haven‘t met before, and in hindsight it was overdue. I‘m already thinking about coming back next year.

Thank you to the organizers @andri & team for this lovely event!

Edent,
@Edent@mastodon.social avatar

🆕 blog! “Where you can (and can't) use Emoji in PHP”

I was noodling around in PHP the other day and discovered that this works: <?php $🍞 = "bread"; echo "Some delicious " . $🍞; I mean, there's no reason why it shouldn't work. An emoji is just a Unicode character (OK, not just a character - but we'll get on to that), so it should […]

👀 Read more: https://shkspr.mobi/blog/2024/04/where-you-can-and-cant-use-emoji-in-php/

cybersmog,
@cybersmog@phpc.social avatar

TYPO3camp Switzerland has already ended far too quickly! Two days with exciting talks and many nice conversations with the community. A big thank you to the organizing team with Manuel, David, @andri and Nicole for all the work that goes into such an event!

ramsey,
@ramsey@phpc.social avatar

Who will I see at next week? I’m giving a keynote on Thursday, and I’m super nervous. It’s only the second keynote I’ve ever given, and the first one was over 10 years ago. 😬😰

omnicolor,
@omnicolor@phpc.social avatar

@awoodsnet I would have loved to attend both, but some jerk is speaking at the same time as your first one, and I gotta attend that one. Looking forward to the dotfiles talk though!

sarah,
@sarah@phpc.social avatar

@ramsey I’ll be there! My whole team is coming.

mandrasch,
@mandrasch@social.tchncs.de avatar

I love for its stable deploy process (project config in git). But I haven't found a quick way for setting up & deploying hobby projects yet on small VPS. Same with other CMS / frameworks.

Laravel Forge or ploi are great helpers, but with extra costs.💰 But ...1/

mandrasch,
@mandrasch@social.tchncs.de avatar

Would be a dream if I could just deploy hobby projects by selecting my repository from GitHub (like on Vercels interface) 🥰

alessandrolai,
@alessandrolai@phpc.social avatar

@mandrasch maybe @platformsh can work for you?

blog,
@blog@shkspr.mobi avatar

Where you can (and can't) use Emoji in PHP
https://shkspr.mobi/blog/2024/04/where-you-can-and-cant-use-emoji-in-php/

I was noodling around in PHP the other day and discovered that this works:

<?php$🍞 = "bread";echo "Some delicious " . $🍞;

I mean, there's no reason why it shouldn't work. An emoji is just a Unicode character (OK, not just a character - but we'll get on to that), so it should be fine to use anywhere.

Emoji work perfectly well as function names:

function 😺🐶() {   echo "catdog!";}😺🐶();

Definitions:

define( "❓", "huh?" );echo ❓;

And, well, pretty much everywhere:

class 🦜{    public int $🐦;    public ?string $🦃;    public function __construct(int $🐦, ?string $🦃)    {        $this->🐦 = $🐦;        $this->🦃 = $🦃;    }}$🐓 = new 🦜(1234, "birb");echo $🐓->🐦;

How about namespaces? Yup!

namespace 😜;class 😉 {    public function 😘() {        echo "Wink!";    }}use 😜😉;$😊 = new 😉();$😊->😘();

Even moderately complex Unicode sequences work:

echo <<<🏳️‍🌈Unicode is magic!🏳️‍🌈;

I've written before about the Quirks and Limitations of Emoji Flags. The humble 🏳️‍🌈 is actually the sequence U+1F3F3 (white flag), U+FE0F (Variation Selector 16), U+200D (Zero Width Joiner), U+1F308 (Rainbow).

Take a complex emoji like "Female Astronaut with Medium Dark Skin Tone" - 🧑🏾‍🚀 - that also works!

$🧑🏾‍🚀 = 1;$👷🏻‍♂️ = 2;echo $🧑🏾‍🚀 + $👷🏻‍♂️;

Probable the most complex emoji has 10 different codepoints! It looks like this - 🧑🏾‍❤️‍💋‍🧑🏻

And it works!

$🧑🏾‍❤️‍💋‍🧑🏻 = "Kiss Kiss. Bang Bang!";echo $🧑🏾‍❤️‍💋‍🧑🏻[-1];

There are some emoji which don't work;

$5️⃣ = "five";

The 5️⃣ emoji is U+0035 (Digit Five), U+FE0F (Variation Selector 16), U+20E3 (Combining Enclosing Keycap). PHP doesn't allow variables to start with digits, so it craps out with PHP Parse error: syntax error, unexpected integer "5", expecting variable or "{" or "$" in php shell code on line 1

You also can't use "punctuation" emoji as though they were normal characters:

echo 5 ❗= 6;

And, while not strictly emoji, you can't use mathematical symbols:

echo 5 ≤ 6;

So, there you have it. Is this useful? Well, probably. It is easy to get lost in a sea of text - so little pictograms can make it easier to see what you're doing. If the basic ASCII characters aren't part of your native language, perhaps it is useful to make use of the full range of Unicode.

Does your favourite programming language support Emoji?

https://shkspr.mobi/blog/2024/04/where-you-can-and-cant-use-emoji-in-php/

michael,
@michael@thms.uk avatar
maxiorel, Czech
@maxiorel@mastodonczech.cz avatar

Can I... Určitě znáte webovky, které vám odpoví, jestli danou technologii či zápis v CSS podporuje určitá verze webového prohlížeče. Ale takových služeb je více:
https://caniuse.com/ - frontend
https://www.caniemail.com/ - kódování mailů
https://caniphp.com/ - pro PHP

V širším měřítku ještě můžete mrknout:
https://node.green/ - pro JS developery
https://whatwebcando.today/ - co dnes umí weby

cybersmog,
@cybersmog@phpc.social avatar

Second day of the TYPO3camp Switzerland🇨🇭
#typo3 #t3cch

s2b,
@s2b@norden.social avatar

The first day at TYPO3 Camp Schweiz was a lot of fun. It was the perfect combination of insightful barcamp sessions, a delicious social event menu (see pic) and interesting conversations with fellow TYPO3 people. Looking forward to the second day! 👍🏼 #typo3 #t3cch

davidbisset,
@davidbisset@phpc.social avatar

As a ( and other) i think the “rollback” work that has been done in (and looks like more coming) is very impressive given the complexities and the scope:

https://make.wordpress.org/core/2024/04/19/merge-proposal-rollback-auto-update/

cybersmog,
@cybersmog@phpc.social avatar

TYPO3camp Switzerland is in full swing!
Session planning is done and we started with a presentation of all the community teams where everybody is invited to contribute.

image/jpeg
image/jpeg

oliklee,
@oliklee@chaos.social avatar

@cybersmog Ah, you're using the team contribution fair slides. I love seeing that this session doesn't depend on me being there! ❤️ 💪

marustiweb, German
@marustiweb@mastodon.social avatar
typo3, German
@typo3@typo3.social avatar

Grüezi from 🇨🇭🚀

We started the event with interesting talks and insights into the world.

Thanks for having us 🧡

image/jpeg
image/jpeg

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • mdbf
  • everett
  • Youngstown
  • slotface
  • Durango
  • khanakhh
  • thenastyranch
  • rosin
  • kavyap
  • InstantRegret
  • GTA5RPClips
  • Backrooms
  • JUstTest
  • hgfsjryuu7
  • tacticalgear
  • cubers
  • osvaldo12
  • cisconetworking
  • tester
  • normalnudes
  • ethstaker
  • modclub
  • Leos
  • anitta
  • provamag3
  • lostlight
  • All magazines