SymfonyUniverse Hot

ramsey, to php
@ramsey@phpc.social avatar

Here’s an example of a good headline, but it’s the only one I’ve seen that doesn’t have a “ is insecure,” “the sky is falling” vibe. https://securityaffairs.com/164302/breaking-news/php-critical-rce.html https://phpc.social/@ramsey/112590116600250809

sean,
@sean@scoat.es avatar

@derickr @ramsey Thanks!

derickr,
@derickr@phpc.social avatar

@sean @ramsey Written by @nielsdos !

ApiPlatform, to Symfony
@ApiPlatform@fosstodon.org avatar

There's a new #APIPlatformCon partner in town! Please welcome #Emagma, a web agency specialized in #Sylius as a Silver Sponsor. Thank you for your support, and see you in September 😉

Get your ticket: https://api-platform.com/con/2024/

Schrank, to php
@Schrank@phpc.social avatar

I have a cli script which looks like this:
->run($argv[1], $argv[2]);

the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into

run(): Argument #2 ($path) must be of type string, null given

Or do I need to test this and have two different calls?

theseer,
@theseer@phpc.social avatar

@Schrank ?? 'default'

derickr, to php
@derickr@phpc.social avatar

It's PHP's birthday! 29, years old today.

#php

A cake cut out a slice off, and the big side taken.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@derickr @rasmus happy birthday

derickr,
@derickr@phpc.social avatar

@maswaba Yes! Without users like you (and me) back then, it would never have gotten big.

kubikpixel, to php
@kubikpixel@chaos.social avatar

I still need to take a closer look at the toots of @shadowserver but it seems to be an other argument against and on Windows to the boss and customers… 🙄

»[…] A critical vulnerability in the PHP language can be trivially exploited to execute malicious on devices, security researchers warned as they urged those affected to take action before the weekend starts. […]«
– on @arstechnica

⚠️ https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/

martijn,
@martijn@ieji.de avatar

@kubikpixel @shadowserver @arstechnica
Only hits the windows version. But I haven't heard anyone doing webdev on windows that doesn't use wsl anymore. Wouldn't really know why you would want to use xampp or windows specific versions anyway except for some obscure use cases (like directory access etc)

kubikpixel,
@kubikpixel@chaos.social avatar

@martijn ...I absolutely agree with you, but I still have such cases, even from bosses who call themselves professionals 🙄

supergarv, to php German
@supergarv@phpc.social avatar

Fährt hier jemand auf die von Köln(-ish) aus mit dem Auto, und würde mich mitnehmen? 😬

Stelle gerade fest, ich komme mit ÖPNV da gar nicht wirklich hin - müsste um 3:00 nachts los um um 9:30 dazu sein 😱

Skoop, to php
@Skoop@phpc.social avatar

I wrote something about making the choice between upgrading or upgrading: https://skoop.dev/blog/2024/06/07/upgrade_or_upgrade/

Skoop,
@Skoop@phpc.social avatar

@ralphschindler Laravel Shift seems to be Rector on steroids?

ralphschindler,
@ralphschindler@phpc.social avatar

@Skoop for what shift is doing, I'd say rector might get you nearly 1/2 way there.

The primary goal of shift is to make your application code look as if it were installed into a fresh modern application skeleton, down to the comments... that is in addition to doing the application code refactoring and composer updates.

ultimike, to drupal
@ultimike@drupal.community avatar

You had me at “weird”.

https://blog.horizontaldigital.com/try-one-weird-trick-migrate-api

I can totally see where this might come in handy in some situations when migrating data into #drupal.

Blog post by Daniel Flanagan

ekes,
@ekes@drupal.community avatar

That for sure falls into why didn't I think of that. 🤯

Of course get defaults to the value passed. It does that all the time implicitly. I had never thought you could explicitly make it do that so you can say where the source pass on is.

Example from the issue:

process:  
 processed_value:  
-  
 plugin: callable  
 source: field_product  
 callable: ucfirst  
-   
 plugin: concat  
 source:  
- 'constants/i'  
- null  
ramsey, to php
@ramsey@phpc.social avatar

It boils my blood to hear folks insinuate that is the source of their performance problems and they should switch to microservices in another language to fix the performance issues. Maybe spend a little bit of time figuring out where your bottlenecks are and fix those, first!

(This may or may not be a sub-toot.)

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@ramsey: This pool cue is warped.

I totally meant for it to go in that pocket after banking off five rails (I mean API calls).

It’s gotta be the shoes.

ramsey,
@ramsey@phpc.social avatar

@preinheimer This is usually the case for developers who rewrite things in a different programming language, too, so it’s rarely the programming language itself that made things more performant.

ramsey, to php
@ramsey@phpc.social avatar

What’s the difference between memory usage and peak memory usage?

(As in 's memory_get_usage() and memory_get_peak_usage() functions.)

Crell,
@Crell@phpc.social avatar

@ramsey @sean That is my understanding. Though as usual, when the current memory goes down is rather unpredictable.

alfredbez,
@alfredbez@phpc.social avatar

@ramsey keep in mind that there is also memory_reset_peak_usage(). Take a look at how these functions behave here: https://3v4l.org/60tlE#v8.3.8

wowa_TYPO3, to php German
@wowa_TYPO3@techhub.social avatar

🌟 Das Programm der Developer Days 2024 ist online! Von der Eröffnungskeynote bis zu Networking-Sessions – sei dabei und vernetze dich mit der TYPO3-Community! 🚀
https://t3dd24.typo3.com/schedule

mobileatom, to drupal
@mobileatom@flipboard.com avatar

Experience Builder (XB) week 3: shape matching.

http://wimleers.com/xb-week-3?utm_source=flipboard&utm_medium=activitypub

Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the

wimleers, to drupal
@wimleers@drupal.community avatar
derickr, to php
@derickr@phpc.social avatar

@SecondeJ kicking off tonight's PHP London meeting.

#php #london #meetup

ultimike, to drupal
@ultimike@drupal.community avatar

Admittedly, this free plugin pack for @ckeditor for looks very useful, but try finding out how much the realtime collaboration feature is. Go ahead, I’ll wait…

https://ckeditor.com/blog/drupal-ckeditor-5-plugin-pack/

hotsauce,
@hotsauce@drupal.community avatar

@ultimike @chrisfromredfin
One of the folks from CKEditor did a presentation for us at Lullabot about the paid features and I asked. He said because it’s all cloud based, it’s scaled based on the size of the project/site so they price accordingly on a project by project basis, no standard plan or anything (yet). Not exactly helpful but at least its something 🤷‍♂️

ultimike,
@ultimike@drupal.community avatar

@hotsauce @chrisfromredfin Yes, I've heard similar. Still, "starting at..." would be nice (and shouldn't be difficult.)

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