avriltank

Results 21 comments of avriltank

when set to 0,you may need an eventlloop engine for performance,you just register an event to the loop.Because now the accept dot not wait in a block.There is a stream_select...

nothing.predis just use sream_socket to use redis ,that works fine in peachpie

> Current state: `__destruct()` is called by GC - not-deterministic unlike in PHP @jakubmisek Hi,__destruct seems to be never called,Is there any way to simple use it! ```php

Yes,I know why it is so difficult to implement __destuct! multi thread and destructor...

I have same error,the cli process never die

最小复现demo,参见这个issue(https://github.com/crazywhalecc/static-php-cli/issues/460) ```php

USE_ZEND_ALLOC=0一样,我感觉是hook那里导致的,特别是拼接phar的时候,容易有问题。我后边参考你的方式,在windows下全部用resource实现了,一个类似的东西。

``` /* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with...

其实micro的实现是最科学的,只需要拼接,偏移下就可以。上边这种实现方式,需要释放出,资源文件中的phar文件,如果是单php文件,可以直接zend_execute,但是phar,我看php代码是用的phar_open_from_filename,必须要从本地文件一个存在的文件包里边去获取转换成phar结构体,其实修改phar源码也可以实现(直接从资源文件流转换到php stream),不释放到本地,只是太麻烦了

明天我抽个时间,把一个debug的带符号的,micro发你下。你复现内存泄漏的例子,可以用这个编译好的https://dl.static-php.dev/static-php-cli/windows/spc-min/php-8.3.7-micro-win.zip 拼接我给的iup的那个php例子。 ```php