Dmitry Stogov
5eb1f92f31
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
8 years ago
Dmitry Stogov
524f5245c5
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
8 years ago
Xinchen Hui
a6519d0514
year++
8 years ago
Xinchen Hui
7a7ec01a49
year++
8 years ago
Xinchen Hui
ccd4716ec7
year++
8 years ago
Xinchen Hui
4dfbfe93aa
Use cheaper API
8 years ago
Dmitry Stogov
76e4c8ba73
typo
8 years ago
Dmitry Stogov
fe4c7898d8
Avoid reallocation and double copying of variable names.
8 years ago
Dmitry Stogov
cc6a41fad1
Use interned strings as variable names
8 years ago
Dmitry Stogov
7cc6f60134
Added "argv" and "argc" as known strings.
Fixed incorrect "argc" update and corresponding phpdbg test.
8 years ago
Dmitry Stogov
f98721b4e0
Intern auto global name strings in first place
8 years ago
Xinchen Hui
a8a17a72b0
RC manipulation cleanup
8 years ago
Dmitry Stogov
7af5741333
Avoid useless duplication
9 years ago
Nikita Popov
0f8cf3b849
Fix bug #73807
9 years ago
Dmitry Stogov
a08723d3d3
Use interned empty and "one char" strings.
9 years ago
Nikita Popov
bbfa1b6419
Improve fix for bug #73807
At least on some architectures memmove() on FreeBSD does not
short-curcuit if src==dst. Check for it explicitly to avoid
quadratic copying.
9 years ago
Dmitry Stogov
7aff166e57
Arguments array can't make cycles
9 years ago
Nikita Popov
a15bffd105
Fix bug #73807
9 years ago
Nikita Popov
fd4025069d
Enable HT RC assertions with escape-hatch
HT functions that modify the array now assert that rc=1. As we don't
respect this COW constraint everywhere, either for a good reason or
because fixing it would take more work, we provide an escape hatch
in the form of HT_ALLOW_COW_VIOLATION(ht). If this macro is called
assertions on this ht are disabled. The macro is a no-op in release
mode.
10 years ago
Sammy Kaye Powers
dac6c639bb
Update copyright headers to 2017
9 years ago
Sammy Kaye Powers
478f119ab9
Update copyright headers to 2017
9 years ago
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
9 years ago
Anatol Belski
b204b3abd1
further normalizations, uint vs uint32_t
fix merge mistake
yet one more replacement run
9 years ago
Nikita Popov
4c0804c07d
Ensure symtable exists before checking it
10 years ago
Stanislav Malyshev
aca4f65c7e
CS fix and comments with bug ID
10 years ago
Stanislav Malyshev
98b9dfaec9
Fix for HTTP_PROXY issue.
The following changes are made:
- _SERVER/_ENV only has HTTP_PROXY if the local environment has it,
and only one from the environment.
- getenv('HTTP_PROXY') only returns one from the local environment
- getenv has optional second parameter, telling it to only consider
local environment
10 years ago
Valentin V. Bartenev
baa812ca95
Removed a surplus condition in php_register_variable_ex()
The test for equality to " " implies that the character isn't NUL.
10 years ago
Dmitry Stogov
a9512af810
Implemented RFC: Fix inconsistent behavior of $this variable
Squashed commit of the following:
commit bdd3b6895c
Author: Dmitry Stogov <dmitry@zend.com>
Date: Thu Jun 16 00:19:42 2016 +0300
Fixed GOTO VM
commit 2f1d7c8b89
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed Jun 15 21:01:57 2016 +0300
Removed unused variable
commit cf749c42b0
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed Jun 15 19:06:16 2016 +0300
Protection from $this reassign through mb_parse_str()
commit 59a9a6c83c
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed Jun 15 18:14:50 2016 +0300
Added type inference rule for FETCH_THIS opcode
commit 73f8d14a85
Author: Dmitry Stogov <dmitry@zend.com>
Date: Wed Jun 15 18:11:18 2016 +0300
Restored PHP-7 behavior of isset($this->foo).
It throws exception if not in object context.
Removed useless opcode handlers.
commit fa0881381e
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue May 31 12:25:47 2016 +0300
Changed "Notice: Undefined variable: this" into "Exception: Using $this when not in object context".
commit e32cc528c0
Author: Dmitry Stogov <dmitry@zend.com>
Date: Tue May 24 02:02:43 2016 +0300
Throw exception on attempt to re-assign $this through extract() and parse_str().
commit 41f1531b52
Author: Dmitry Stogov <dmitry@zend.com>
Date: Mon May 23 22:18:36 2016 +0300
Fixed inconsistent $this behavior
10 years ago
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
10 years ago
Dmitry Stogov
560e4fa393
Removed or simplified incorrect SEPARATE_*() macros usage.
11 years ago
Anatol Belski
3a66a23679
avoid unnecessary scoping
11 years ago
Bob Weinand
13525328ed
Cleanup shutdown, enable proper memory leak displaying
phpdbg should not memory leak...
11 years ago
Bob Weinand
348fc4d6fd
$argv and $argc may be IS_INDIRECT
11 years ago
Dmitry Stogov
7aa7627172
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
11 years ago
Anatol Belski
c63467fe6e
remove non-applicable comment
11 years ago
Anatol Belski
f3cec08e65
increase the internal post data buffer
This brings speedup and fixes issues with var parsing. Default BUFSIZ
on Windows is 512 bytes which causes too much reallocation work.
11 years ago
Dmitry Stogov
e10e151e9b
Merged zend_array and HashTable into the single data structure.
Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write
zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument.
11 years ago
Xinchen Hui
fc33f52d8c
bump year
11 years ago
Xinchen Hui
0579e8278d
bump year
11 years ago
Xinchen Hui
73c1be2653
Bump year
11 years ago
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
11 years ago
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
11 years ago
Anatol Belski
37634c9a67
fix datatype mismatch
12 years ago
Nikita Popov
e33f3d3b7c
Move smart_str implementation into Zend/
So we can use it there as well...
For now I've retained the zend_smart_str_public.h header, though
it would probably be better to just move that one struct into
zend_types.h.
12 years ago
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
12 years ago
Michael Wallner
8d1099ac05
duplicate value's string for the SAPI filter
reported by sesser; tyrael, do you take care of the bug/NEWS?
12 years ago
Anatol Belski
4d997f63d9
master renames phase 3
12 years ago
Anatol Belski
c3e3c98ec6
master renames phase 1
12 years ago
Anatol Belski
745a71be33
yet more fixes to zpp
12 years ago
Anatol Belski
90d6f60bc1
mostly fixes to spl, but also some other
12 years ago