shukean / monip Goto Github PK
View Code? Open in Web Editor NEW全球 IPv4 地址归属地数据库 解析
Home Page: http://www.ipip.net/download.html
全球 IPv4 地址归属地数据库 解析
Home Page: http://www.ipip.net/download.html
您好,我在您的代码基础上做了修改,将文件流在PHP_MINIT阶段打开,然后再关闭,会直接报段错误,我发现在PHP_MINIT阶段打开的文件流不需要手动关闭,是不是在PHP_MSHUTDOWN阶段,php替我清理了,这个问题找不到具体依据,麻烦帮忙解答一下,谢谢!
表现:
同一台设备下,相同代码,无论是否利用 register_shutdown_function 来执行 monip_clear,在5.3下均没有报错,在5.5下则都会报错。
不影响业务逻辑正常完成,错误发生在 register_shutdown_function 注册的函数执行完毕以后。
错误信息:
Start to clear.
Cleared.
/data/shell/etl/etl.sh: line 4: 26609 Segmentation fault (core dumped) php main.php $*
运行环境:
CentOS 6.4 64Bit
PHP 5.5.13(CLI)
相关初始化代码:
monip_init(DATA_FILE);
register_shutdown_function(function() {echo "Start to clear.\n";monip_clear();echo "Cleared.\n";});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.