[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - get-url of empty content fails (fixed in 10.6.4)
Page 1 of 2

get-url of empty content fails (fixed in 10.6.4)

PostPosted: Fri Jul 10, 2015 2:07 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Fri Jul 10, 2015 4:01 pm
by Lutz

Re: get-url of empty content fails

PostPosted: Tue Jul 14, 2015 11:52 am
by hartrock

Re: get-url of empty content fails

PostPosted: Tue Jul 14, 2015 2:54 pm
by Lutz

Re: get-url of empty content fails

PostPosted: Wed Jul 15, 2015 11:43 am
by hartrock

Re: get-url of empty content fails

PostPosted: Thu Jul 16, 2015 12:23 am
by Lutz
The main reason for having server mode in newLISP is for distributed processing with ‘net-eval’. HTTP mode was added to make simple browser configuration pages for servers possible, e.g. for configuring master-nodes in distributed system and configuring embedded systems like modems. It was never meant to be full a featured web server.

Re: get-url of empty content fails

PostPosted: Thu Jul 16, 2015 11:17 am
by hartrock

Re: get-url of empty content fails

PostPosted: Thu Jul 16, 2015 3:56 pm
by Lutz
In 'get/put/post-url' the new string option "raw" works like the "list" option but returns the server status/error code as the the last member in the returned list and also suppresses 'Location' redirection.

http://www.newlisp.org/downloads/develo ... nprogress/

Re: get-url of empty content fails

PostPosted: Fri Jul 17, 2015 11:57 am
by hartrock

Re: get-url of empty content fails

PostPosted: Fri Jul 17, 2015 2:54 pm
by Lutz

Re: get-url of empty content fails

PostPosted: Fri Jul 17, 2015 7:12 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Sat Jul 18, 2015 5:25 pm
by Lutz
If this happened on Windows or OS2, TRU64, Solaris or AIX, it may have been fixed:

http://www.newlisp.org/downloads/develo ... nprogress/

There was an uninitialized buffer in a custom version of vasprintf() -> my_vasprintf() used by above OSs.

Ps: doing some more changes affecting all OSs, the way varargs is used - will post those Sunday morning PST.

Re: get-url of empty content fails

PostPosted: Sun Jul 19, 2015 8:56 am
by hartrock

Re: get-url of empty content fails

PostPosted: Sun Jul 19, 2015 2:02 pm
by Lutz
Another update avoiding empty argptr in variadic nl-web.c:sendf() :

http://www.newlisp.org/downloads/develo ... nprogress/

Re: get-url of empty content fails

PostPosted: Mon Jul 20, 2015 2:14 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Mon Jul 20, 2015 3:26 pm
by Lutz
Have tried your experiment on OSX, Windows 7, UBUNTU and FreeBSD with your strings and others, but cannot repeat that spurious string occuring. Here some other small change:

http://www.newlisp.org/downloads/develo ... nprogress/

Re: get-url of empty content fails

PostPosted: Mon Jul 20, 2015 4:49 pm
by hartrock

bug hunting [Re: get-url of empty content fails]

PostPosted: Tue Jul 21, 2015 9:09 am
by hartrock

Re: get-url of empty content fails

PostPosted: Tue Jul 21, 2015 3:01 pm
by Lutz
That is the address of the original nil cell in the system and is normal.

May be it has to do with UTF8 handling, although all my tests are fine without it. Can you compile without UTF8 and try again?

bug hunting: '\0' to late in errorneous string cell content

PostPosted: Tue Jul 21, 2015 3:23 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Tue Jul 21, 2015 3:39 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Tue Jul 21, 2015 8:52 pm
by Lutz
Many thanks! I think it is solved now. The cpymem test clearly showed the missing zero termination of the response string in the cell. This happened for content appended to an error message.

newLISP also stores the size of a memory buffer independent of string zero-termination. Because of this, the error doesn't always show up.

http://www.newlisp.org/downloads/develo ... nprogress/ from 2015-07-21 20:45

Ps: May be newLISP shouldn't prepend and error message to an exsisting server error page at all. Perhaps the error message should only be generated when no page comes back from server after the header.

bug hunting: success! [Re: get-url of empty content fails]

PostPosted: Wed Jul 22, 2015 11:57 am
by hartrock

different error levels [Re: get-url of empty content fails]

PostPosted: Wed Jul 22, 2015 3:25 pm
by hartrock

Re: get-url of empty content fails

PostPosted: Wed Jul 22, 2015 7:40 pm
by Lutz
Thanks for the input.