Skip to content

Commit

Permalink
fix windows version CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Jan 13, 2025
1 parent cce530c commit 6f85678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ if (PHP_DDTRACE != 'no') {

var versionpath = configure_module_dirname + "/ext/version.h";
var versionfile = FSO.CreateTextFile(versionpath, true);
var versionContent = FSO.OpenTextFile(configure_module_dirname + "/VERSION", 1).ReadAll();
versionContent = versionContent.replace(/[\r\n]+$/, '');
versionfile.WriteLine("#ifndef PHP_DDTRACE_VERSION");
versionfile.WriteLine('#define PHP_DDTRACE_VERSION "' + FSO.OpenTextFile(configure_module_dirname + "/VERSION", 1).ReadAll() + '"');
versionfile.WriteLine('#define PHP_DDTRACE_VERSION "' + versionContent + '"');
versionfile.WriteLine("#endif");
versionfile.Close();

Expand Down

0 comments on commit 6f85678

Please sign in to comment.