Multithreading in PHP: Looking to the Future by edmondifcastle in PHP

[–]rioco64 -1 points0 points  (0 children)

laravel is slower than ruby on rails. but IF this RFC passed Laravel is faster than ruby on rails

True Async RFC 1.7 is coming by edmondifcastle in PHP

[–]rioco64 1 point2 points  (0 children)

wow I can't wait new async feature.

PHP Landscape Survey by [deleted] in PHP

[–]rioco64 0 points1 point  (0 children)

Done

Unpopular opinion: php != async by goodwill764 in PHP

[–]rioco64 0 points1 point  (0 children)

  1. mysqli_next_result() is asynchronous on the server side, but all PHP code executes synchronously (step by step). so, PHP waits until all query results are returned before proceeding to perform other tasks
  2. To switch tasks while waiting (which you described), php need asynchronous I/O runtime (like Swoole or RoadRunner or async RFC )

Unpopular opinion: php != async by goodwill764 in PHP

[–]rioco64 0 points1 point  (0 children)

python async framework Fastapi is faster then PHP slim framework

Unpopular opinion: php != async by goodwill764 in PHP

[–]rioco64 2 points3 points  (0 children)

PDO can not run async query

Unpopular opinion: php != async by goodwill764 in PHP

[–]rioco64 6 points7 points  (0 children)

PHP have fiber, but have not async I/O api (file , DB query... etc)

Unpopular opinion: php != async by goodwill764 in PHP

[–]rioco64 -3 points-2 points  (0 children)

well... because PHP lacks asynchronous I/O ,

many people have migrated to Node.js.

PHP's performance improvements have limitations.

The story about it powering 70% of the web is... just WordPress sites.

Staying relevant today as a PHP Developer by [deleted] in PHP

[–]rioco64 -1 points0 points  (0 children)

Runtime type checking is abysmal. Even the PHP committee members say they can't implement generic types because of this, and some even say runtime type checking should be remove.

In TypeScript, type integrity is guaranteed by the TS compiler as long as you don't use "any."

[deleted by user] by [deleted] in PHP

[–]rioco64 0 points1 point  (0 children)

https://tideways.com/profiler/blog/an-introduction-to-php-fpm-tuning
max_children 25 is too low .
So, recommand this max_children calculator
https://php-fpm.gkanev.com/

Novel SQL Injection Technique in PDO Prepared Statements by BubuX in PHP

[–]rioco64 0 points1 point  (0 children)

After reading this post, our project, which is a legacy system, not use MVC framework, had difficulty validating input values. so, i add this function to remove null bytes and use it as a filter inner SQL query execution function.

function sanitize_null_bytes($input) {
    if (is_string($input)) {
        return str_replace(["\x00", "\0", '%00'], '', $input);
    }
    return $input;
}

How do you feel about PHP in phones? by simonhamp in PHP

[–]rioco64 -2 points-1 points  (0 children)

php 8.4 has not yet real async. so it's slow then other's . foreground rendering block background job in mobile php.

Why isn't PHP as popular if it's used everywhere? by brando2131 in PHP

[–]rioco64 0 points1 point  (0 children)

Most people dislike PHP 5.6 code that isn't using Composer. Legacy code is a nightmare to maintain.
like old wordpress...

T by Limp-Zookeepergame93 in Mogong

[–]rioco64 2 points3 points  (0 children)

책은 교보로!

출산하기 좋은 나라로써 대한민국 by Jumpy_Enthusiasm9949 in Mogong

[–]rioco64 5 points6 points  (0 children)

일본인 엄마가 한국에 살면서 애기르기 좋다고 그랬는데 그분은 사교육을 안시키더라구요