Modifying php.ini file gets reverted after site restart

Well, I now even tested the process on my pc, which runs windows 10 and Local 6.7. ( and uses LAN connection instead of Wifi)
The same thing happens even here ( for restarting, I press “stop site”. then as soon as I press “start site”, the zend_extension line dissapears on php.ini ( I have the ini file open in VS code and I see it getting removed)

I’m on a home network. untill now, I have tested the process with both Windows 10, and Windows 11, both LAN connection and Wifi connection, Local version 6.7 and the most recent version, php 7.4.30 and the most recent php version. nginx and Apache. and MySQL and MarianDB.

about the connection, I usually use VPN. but for working with local sites, i close it. although, I am located now in Iran ( from one side, some sites are filtered here, and from another part, some sites have sanctioned Iranian users and IPs)