Commit Graph

4742 Commits

Author SHA1 Message Date
Lars Strojny
167108d73c assert() user message
Added 2nd, optional, param to assert. When passed in it will be added
to the printed warnings and passed as a 4th param to a callback. PR 150
by Lonny Kapelushnik
2012-08-31 18:55:43 +02:00
Xinchen Hui
35951d4be0 Support list in foreach
RFC: https://wiki.php.net/rfc/foreachlist
2012-08-25 22:23:57 +08:00
Sebastian Bergmann
a90170e6f8 WTF? 2012-08-22 16:14:14 +02:00
Stanislav Malyshev
591c59d9bf add heredoc parsing fix 2012-08-19 21:46:29 -07:00
Nikita Popov
fc26aa7f3e Adjust UPGRADING/NEWS for additional mcrypt deprecations 2012-08-16 17:10:05 +02:00
Xinchen Hui
80d5ae3cea Implemented 'finally' keywords for php
RFC: https://wiki.php.net/rfc/finally
FR: https://bugs.php.net/bug.php?id=32100
and I have got some improvment ideas(performance), will implemented
later. thanks
2012-08-13 21:48:39 +08:00
Stanislav Malyshev
1190bc440b bug #54254 2012-08-07 01:48:32 -07:00
Stanislav Malyshev
54b1414be0 add #61642 2012-08-05 19:25:15 -07:00
Stanislav Malyshev
bd340b7296 add NEWS/UPGRADING 2012-07-14 15:03:51 -07:00
Anthony Ferrara
550253f652 Update NEWS to fix typo, add name 2012-06-12 13:51:18 -04:00
Anthony Ferrara
6387498823 Create hash_pbkdf2 function addition 2012-06-12 09:57:11 -04:00
Anatoliy Belsky
0c7ebf50fb updated NEWS 2012-06-07 21:46:51 +02:00
David Soria Parra
6af01ed5a0 NEWS entry for boolval() 2012-06-07 09:37:26 +02:00
Nikita Popov
ec061a93c5 Allow arbitrary expressions for empty()
This change is as per RFC https://wiki.php.net/rfc/empty_isset_exprs.

The change allows passing the result of function calls and other
expressions to the empty() language construct. This is accomplished by
simply rewriting empty(expr) to !expr.

The change does not affect the suppression of errors when using empty()
on variables. empty($undefinedVar) will continue not to throw errors.
When an expression is used inside empty() on the other hand, errors will
not be suppressed. Thus empty($undefinedVar + $somethingElse) *will*
throw a notice.

The change also does not make empty() into a real function, so using
'empty' as a callback is still not possible.

In addition to the empty() changes the commit adds nicer error messages
when isset() is used on function call results or other expressions.
2012-05-13 14:56:51 +02:00
andrey
0ce37188cd here comes the news 2012-05-03 13:02:34 +02:00
theanomaly.is@gmail.com
4968fa644b Fixed bug #61038; "Z" and better behavior for unpack()
Added new "Z" argument to pack/unpack, now allowing "a" to return
data without stripping, and "A" strips all trailing white space,
while "Z" will strip everything after the first null.
2012-04-17 21:09:04 +01:00
Xinchen Hui
565892d4c0 Implement const array/string dereference
RFC:https://wiki.php.net/rfc/constdereference
2012-04-17 10:06:17 +08:00
Nikita Popov
b233de098d Fix bug #61681: Malformed grammar
Generate T_STRING_VARNAME only if it actually is one. This is only the case
for "${varname}" and "${varname[offset]}" so we can just add a check for
} or [ after the LABEL.
2012-04-09 18:26:38 +02:00
Xinchen Hui
6ba2e662e4 Implemented FR #60738 (Allow 'set_error_handler' to handle NULL)
The previous commit was reverted as Stas ask, so only commit this
to Truk now.
2012-03-24 19:41:11 +08:00
Xinchen Hui
d8f8e98d8e Improve set_exception_handler while doing reset 2012-03-24 19:38:40 +08:00
Pierre Joye
37b462ba95 - notes about xp&2003 drop 2012-03-04 17:02:55 +00:00
Nikita Popov
4d0911c1c9 NEWS and UPGRADING for r323862 2012-03-04 16:32:01 +00:00
Xinchen Hui
bcb9768f9e MFH: Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX) 2012-03-02 03:40:40 +00:00
Xinchen Hui
e8ad8fc6f9 MFH: Fixed bug #60968 (Late static binding doesn't work with ReflectionMethod::invokeArgs()) 2012-03-02 03:36:30 +00:00
Xinchen Hui
0b7f94545e MFH: Fixed bug #60573 (type hinting with "self" keyword causes weird errors) 2012-03-02 03:32:12 +00:00
Xinchen Hui
101e3e8aed MFH: Fixed bug #60978 (exit code incorrect) 2012-03-02 03:25:41 +00:00
Xinchen Hui
59cbf74b74 MFH: Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical vars) 2012-03-02 03:18:04 +00:00
Xinchen Hui
89b07b3a20 MFH: Fixed bug #61011 (Crash when an exception is thrown by __autoload accessing a static property) 2012-03-02 03:12:15 +00:00
Xinchen Hui
4f0bbee3ef MFH: Fixed bug #61072 (Memory leak when restoring an exception handler). 2012-03-02 02:56:08 +00:00
Xinchen Hui
adb9fe6ca1 MFH: Fix bug #61165 (Segfault - strip_tags()) 2012-03-02 02:51:57 +00:00
Xinchen Hui
229e55632d Fixed bug #61011 (Crash when an exception is thrown by __autoload accessing a static property) 2012-02-25 13:56:59 +00:00
Xinchen Hui
cfa9c90b20 Fixed bug #61165 (Segfault - strip_tags()) 2012-02-25 04:36:08 +00:00
Xinchen Hui
5d683614f9 Fixed bug #61072 (Memory leak when restoring an exception handler) 2012-02-14 05:35:34 +00:00
Xinchen Hui
3d898cfa3f Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX) 2012-02-12 04:59:08 +00:00
Xinchen Hui
52bbc86c30 decrescent order
#<Felipe> laruence: yes, we used to use decrescent order of bug id in the NEWS entry.
2012-02-08 15:07:28 +00:00
Xinchen Hui
6672171672 Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical vars). 2012-02-08 14:07:27 +00:00
Xinchen Hui
ff63c09e6f Revert -r319102 and -r322922 in 5.4 branch since they introduce #60978
Fixed #60978 in trunk without reverting previous fix
#see http://news.php.net/php.internals/57789
2012-02-08 03:03:05 +00:00
Xinchen Hui
d2ca448f07 Fixed bug #60968 (Late static binding doesn't work with ReflectionMethod::invokeArgs()) 2012-02-03 16:27:35 +00:00
Xinchen Hui
498d9aea7f Fixed bug #60825 (Segfault when running symfony 2 tests) 2012-01-26 01:21:35 +00:00
Xinchen Hui
a222954a45 Re-fixed bug #60825 (Segfault when running symfony 2 tests) 2012-01-24 14:39:45 +00:00
Xinchen Hui
cf54cc736b Fixed bug #60825 (Segfault when running symfony 2 tests) 2012-01-21 17:13:53 +00:00
Michael Wallner
15e16b31a4 merge ext/hash from trunk 2012-01-18 09:15:34 +00:00
Michael Wallner
2d2aefe414 remove Salsa10/Salsa20, which are actually stream ciphers not hash functions 2012-01-17 16:35:32 +00:00
Michael Wallner
3e9a7c6c3d adapted tiger hash byte print order to those of md5 and sha1
see http://en.wikipedia.org/wiki/Tiger_(cryptography)
    http://www.cs.technion.ac.il/~biham/Reports/Tiger/test-vectors-nessie-format.dat

Closes Bug #60221 Tiger hash output byte order
2012-01-17 15:25:54 +00:00
Sebastian Bergmann
ebddf8a975 Revert r322390. 2012-01-17 13:46:31 +00:00
Sebastian Bergmann
e76c1cc03c Implement ReflectionClass::setFinal() and ReflectionMethod::setFinal().
Patch by Jan Dolecek <juzna.cz@gmail.com>.
2012-01-17 12:59:33 +00:00
Xinchen Hui
36df53421e typo 2012-01-16 10:20:18 +00:00
Xinchen Hui
d74a258f24 Fixed Bug #60573 (type hinting with "self" keyword causes weird errors) 2012-01-16 09:53:45 +00:00
Yasuo Ohgaki
5c793c5483 add pgsql new functions 2011-11-25 02:24:37 +00:00
Pierrick Charron
70136445cb Revert commit r319729 until I have a clean version for non-ZTS 2011-11-24 12:49:11 +00:00