a lot of bugfixes #19
base: master
Are you sure you want to change the base?
Conversation
is_file: ArgumentException if path contains invalid chars invalid encoding in urlencode/urldecode and dependenced functions some ScriptContext survived if web.config contains handlers or async code used (directly or indirectly) ReferenceNull is error instead of warning User error handler called when error reporting is disabled wrong print_r output of the PhpBytes type curl: support for CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST in .net 4.5 curl_setopt: bug with int values gd: imagecolorresolve, imagecolorsforindex implementation gd: transparent gif color changed to black when load and save image soap: many bugfixes and simple SoapServer implementation xml_parse_into_struct: wrong result and bug with encoding gzcompress NullReferenceException when data is null
is CallContext is really needed in ScriptContext or this is legacy code? All CallContext data copied in another thread when async code is called (even safe at first sight HttpWebRequest.ServicePoint property using async code) |
P.S. my implementation of a mcrypt functions using bouncycastle. Can Phalanger project use this library without any licensing or any other problems? |
CallContext is used because of native extensions in "remote" mode (so e.g., Phalanger would run 64bit, and PHP extensions 32bit). This is very old stuff, and will be removed. We are aware of that (since ScriptContext.CurrentContext can be 100-times faster if we remove CallContext). Anyway on current thread, there is no copying, still it is slow. The other thing is, ScriptContext should be "Fork"ed to be used on another thread! Otherwise you are going to manipulate with non-thread safe structures asynchronously. (ScriptContext is not thread safe, and locks{} would slow down runtime rapidly) |
bouncycastle is released under an adaptation of MIT X11 license, Phalanger is released under GPLv2. This combination should be checked. All the components released in Phalanger package (not used during compiling of Phalanger project) must be compatible with GPLv2. |
@@ -708,6 +708,9 @@ public static bool IsFile(string path) | |||
{ | |||
StreamWrapper wrapper; | |||
|
|||
if (path.IndexOfAny(Path.GetInvalidPathChars()) >= 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this causes cloning of the array :-( maybe clone it for the first time into some private static property, and use that so we avoid cloning every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
change timestamp type to long is_file/dir/readable/writable/executable: check for invalid path chars and add chars caching add pdb-only debug info mode change configurations DeepCopy like Jakub suggested revert memory leak fix from ScriptContext wrong encoding in ScriptContext.RunApplication add information about file and line in timeout error curl: bug with password in url soap: getLastRequestHeaders, getLastRequestHeaders and bugfixes xml_parse_into_struct: accept xml in all types without conversions iconv: bug when string converted from not PageEncoding iconv/mbstring: support for encoding names in cp* format
i'm suggesting breaking change: change "debug" configuration parameter type to DebugMode (None, Pdb, Full) |
TrackClientDisconnection ScriptContext leak in previous execution_timed_out line info fix Unbuffered output is not flushed when ScriptContext disposed xml: hardcoded encoding xml: Exception with invalid DTD Exception thrown when flushing disconnected response with disabled TrackClientDisconnection ScriptContext leak in previous execution_timed_out line info fix Unbuffered output is not flushed when ScriptContext disposed xml: hardcoded encoding xml: Exception with invalid DTD iconv: bug when string converted from not PageEncoding gd2: support for streams that don't support seek (http) soap: bugs with yet another wsdl
Sorry this merge request is too big to be merged automatically. I can only subsequently reimplement some of your changes. |
- merge from DEVSENSE/Phalanger#19
is_file: ArgumentException if path contains invalid chars
invalid encoding in urlencode/urldecode and dependenced functions
some ScriptContext survived if web.config contains handlers or async
code used (directly or indirectly)
ReferenceNull is error instead of warning
User error handler called when error reporting is disabled
wrong print_r output of the PhpBytes type
curl: support for CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST in
.net 4.5
curl_setopt: bug with int values
gd: imagecolorresolve, imagecolorsforindex implementation
gd: transparent gif color changed to black when load and save image
soap: many bugfixes and simple SoapServer implementation
xml_parse_into_struct: wrong result and bug with encoding
gzcompress NullReferenceException when data is null