Comments (12)
我测试了一下 php 的环境下,没有数据的时候,会返回 Content-Length: 0
,没有 response body 存在 '\n' 的情况,可以提供截图说明吗?
from neo-regeorg.
from neo-regeorg.
可是我在模板php中并没有发现末尾有空行,且generate
生成的也并无末尾空行,是否你使用了vim
等编辑保存了?
Neo-reGeorg/templates/tunnel.php
Line 165 in e69b639
from neo-regeorg.
我直接生成后
用vscode打开的
所以其他人应该也有这种情况
from neo-regeorg.
你打开了之后保存的 直接生成应该是没有的
from neo-regeorg.
实际上
github下载及大多数编辑器会默认在文件最后添加一个换行
但是都不是重点
关键在于
我认为应该排除风险
引用php官方说法 https://www.php.net/manual/zh/language.basic-syntax.phptags.php
如果文件内容仅仅包含 PHP 代码,最好在文件末尾删除 PHP 结束标记。这可以避免在 PHP 结束标记之后万一意外加入了空格或者换行符,会导致 PHP 开始输出这些空白,而脚本中此时并无输出的意图。
from neo-regeorg.
你的gitlab下载命令可以发我看看吗?
另外 这种风险应该怎么避免?
from neo-regeorg.
直接删除php的闭合
?>
即可
from neo-regeorg.
会不会存在兼容性问题?php几开始才支持?
from neo-regeorg.
最早可追溯至php4的文档
具体版本就不是很清楚了
from neo-regeorg.
OK php4都支持的话 我后续添加该建议到下个版本发布 感谢:)
from neo-regeorg.
直接 clone 可以获取到 3.8.0 的预览版,已参考该建议,修复这个问题
from neo-regeorg.
Related Issues (20)
- 关于Neo-reGeorg的内存class HOT 1
- 'utf-8' codec can't decode byte 0xc0 in position 65: invalid start byte HOT 1
- 错误处理显示error后未退出程序,导致程序非正常退出 HOT 2
- 5.0第151行当编码非unicode和gbk的时候会报错 HOT 3
- 使用5.0的aspx的老是卡死,换回3.8了,不知道咋回事 HOT 1
- 如何输出所有日志到文件,另外,config log proxy temp update 文件夹是干嘛的,又是空的 HOT 1
- mac上无法使用ulimit -n 2560 命令 HOT 2
- [ERROR ] [Server Listen] [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。 HOT 1
- Zend php `Base64 decode error` error HOT 4
- golang error HOT 1
- Parse error: syntax error, unexpected '[' in on line 10 HOT 1
- 请求添加反向端口映射功能 HOT 5
- PHP数组初始化问题 HOT 1
- v5.0.2 中忘了改版本号 HOT 1
- 请求加上POST伪装功能 HOT 4
- 我看csharp和java都支持redirect 转发的场景,有考虑做php的吗 HOT 1
- Base64 decode error - binascii.Error: Incorrect padding HOT 1
- 请问NeoGeorg is not ready如何解决 HOT 1
- ssh_dispatch_run_fatal** HOT 2
- python3.x连接错误 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-regeorg.