ngx-php icon indicating copy to clipboard operation
ngx-php copied to clipboard

Symfony runtime for ngx-php

Open joanhey opened this issue 1 year ago • 12 comments

I'm creating a php-runtime for ngx-php, so hundreds of Symfony apps could use ngx-php without any change. https://github.com/php-runtime

Here is the repo: https://github.com/joanhey/ngx-php-runtime

For now I'm testing in local the symfony demo with a docker container, that later I'll share.

But we need to fix a small problem, munmap_chunk(): invalid pointer and I need the help of @rryqszq4

We will inform you about the progress !!

joanhey avatar Jul 31 '24 09:07 joanhey

@joanhey I created pr for fix memory leak, https://github.com/rryqszq4/ngx-php/pull/193

The reason was$value not check type in function ngx_header_set. https://github.com/joanhey/ngx-php-runtime/blob/master/src/Runner.php#L41 And fix point https://github.com/rryqszq4/ngx-php/pull/193/files#diff-e56076d51fea196f7661ee99d7ba68b2710f57aa693cd8a937bd121f0196411d

And can you show how to use https://github.com/joanhey/ngx-php-runtime, or demo code.

rryqszq4 avatar Jan 06 '25 10:01 rryqszq4

Also we need to that ngx-php work OK !!! Thank you !!!

PD: I can't merge it !! The same with Workerman !!

joanhey avatar Jan 06 '25 16:01 joanhey

Now we need that work with PHP8.4 We can make it !!

joanhey avatar Jan 06 '25 16:01 joanhey

I'll try in 2 weeks Thank you @rryqszq4

joanhey avatar Jan 06 '25 16:01 joanhey

I hope that we have some virtual contact here !! I think that you are busy, but also me for family

It's a very good project, and we need that don't vanish We talk Thank you !!!

joanhey avatar Jan 06 '25 16:01 joanhey

I hope that we have some virtual contact here !! I think that you are busy, but also me for family

It's a very good project, and we need that don't vanish We talk Thank you !!!

I use wechat or email, what do you usually use?

rryqszq4 avatar Jan 12 '25 15:01 rryqszq4

I send you an invitation in Wechat

joanhey avatar Jan 12 '25 16:01 joanhey

I'll try today again the php runtime.

But later I think that we need a way to get the files send by POST.

joanhey avatar Jan 12 '25 16:01 joanhey

export PHP_BIN 8.4.2 各种按步骤以 动态模块 编译后 Nginx 卡在了 启动 进程
nginx: master process is work , Nginx:worker process no work ; load_module modules/ndk_http_module.so; #这行添加能正常启动 #load_module modules/ngx_http_php_module.so; #添加这行没法完整启动 nginx

foglede avatar Jan 14 '25 18:01 foglede

Please create a new issue, and give more information.

joanhey avatar Jan 14 '25 20:01 joanhey

Please create a new issue, and give more information.

PHP 8.4.3 更新了,我的版本是8.4.2编译的。在 https://www.php.net/ChangeLog-8.php#8.4.3 有那么一小行。。 "Make build command for program using embed portable. ".此时此刻 我愿意尝试 8.4.1编译、8.4.3编译能不能用。 我实验以后再考虑要不要新开 issue ,因为 #load_module modules/ngx_http_php_module.so 加载就无法启动的情况,很主观的猜测可能是PHP版本问题概率比较大。

foglede avatar Jan 21 '25 09:01 foglede

Please create a new issue. This is about another question. Yes any version of PHP need a new ngx_PHP module compilation. That's so with any SAPI.

PD: I don't understand Chinese

joanhey avatar Jan 21 '25 09:01 joanhey