Frédéric
Frédéric
https://getrector.org/demo/07418a2b-028f-4232-9068-d26c0eb742f5
I updated the demo link. (error come frome here: `$str = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $str);` 'chr(\\1)' exactly )
> Thanks! Could you share a new link to the code? The link is unique per code input, and the link above still contains the old code. For sure. Here...
Thank you. I don't know if we can close this issue because it has been solve for my case but I don't know if Rector could embed its correction.
I isolated the code that make the failure: https://getrector.org/demo/072a39db-35c8-4b24-928d-33ceeec81c4c Here is the code: ```php
I fixed it using an operation 1024*1024 instead of 1048576 but isn't it a bug ?
There was the previous code: ```php // ----- Get 'memory_limit' configuration value $v_memory_limit = ini_get('memory_limit'); $v_memory_limit = trim($v_memory_limit); $last = strtolower(substr($v_memory_limit, -1)); if($last == 'g') //$v_memory_limit = $v_memory_limit*1024*1024*1024; $v_memory_limit =...
But I didn't fix attributes failure
Very strange... This is the way how I fixed(?) failure with attributes: ``` $this->zipname = ''.$p_zipname; $this->zip_fd = 1-1; ```
Perhaps you could try to use https://github.com/phariscope/SafePHP until the official Safe PHP take a decision. I have just added this function.