Stanislav Malyshev
b187c35f23
Merge branch 'pull-request/54'
...
* pull-request/54:
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-24 14:18:12 -05:00
Gustavo André dos Santos Lopes
6ea4d0d839
Note recent changes to ext/intl in UPGRADING
2012-05-20 19:57:06 +01:00
Gustavo André dos Santos Lopes
ac33e40d2a
Keep date precision in MessageFormatter.
...
MessageFormatter::parse and MessageFormat::format (and their static
equivalents) now don't throw away better than second precision in the
arguments.
It's already bad enough that in MessageFormatter and IntlDateFormatter we
use seconds since epoch instead of milliseconds since epoch, deviating
from the ICU date representations. But we don't need to throw away extra
precision when parsing dates; we can keep the seconds since epoch
convention and return non integer doubles with only a small BC impact.
Note that we already could return doubles from MessageFormatter::parse if
the date was sufficiently in the past or in the future.
2012-05-13 23:03:07 +02:00
Gustavo André dos Santos Lopes
f09961cbe5
Updated UPGRADING with changes to ext/intl.
2012-05-13 21:56:11 +01: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
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
Gustavo André dos Santos Lopes
0e8d928c07
Update UPGRADING with changes.
2012-04-01 23:35:29 +01:00
Gustavo André dos Santos Lopes
6c891f33d7
Put new function in correct section.
2012-04-01 23:27:50 +01:00
Christopher Jones
77e1a1ab6e
Align section headings with the latest (5.4) migration on-line doc.
...
This will aid future reuse of UPGRADING text.
2012-03-05 20:14:04 +00: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
Gustavo André dos Santos Lopes
e391abb1d9
- Cleanup UPGRADING and UPGRADING.INTERNALS from 5.4 changes.
...
- Added information about removal of streams pooling API.
2012-02-22 10:08:37 +00:00
Adam Harvey
37272e46de
Add a __wakeup() method to SplFixedArray, thereby fixing serialising an
...
SplFixedArray object and bug #60560 (SplFixedArray un-/serialize, getSize(),
count() return 0, keys are strings).
2012-02-21 10:34:42 +00:00
Dmitry Stogov
a099e0d2f6
Added max_input_vars directive to prevent attacks based on hash collisions
2011-12-15 10:31:02 +00:00
Gustavo André dos Santos Lopes
41abc6d017
- Reverted changes that required constructor overrides to invoke the parent
...
constructor in several SPL classes and applied 5.3 fixes instead.
Related bugs: #54384 , #55175 and #55300
2011-10-29 23:17:18 +00:00
Gustavo André dos Santos Lopes
26a80c72af
- Fixed doc bug #54657 : Function parameters can no longer be named after
...
superglobal variables.
2011-09-07 15:28:12 +00:00
Gustavo André dos Santos Lopes
1d5e508658
- Added libxml_set_external_entity_loader().
2011-08-29 05:00:26 +00:00
Boris Lytochkin
c1b90f45f5
IPv6 Support for SNMP. (FR #42918 )
2011-08-20 20:56:02 +00:00
Scott MacVicar
1e960014c1
Fix typos in UPGRADING
2011-08-09 15:27:25 +00:00
Pierre Joye
011e29a956
- upgrading entry for binary number format
2011-07-27 00:18:35 +00:00
Pierre Joye
48870107dc
- MQ section
2011-07-23 20:45:18 +00:00
Pierre Joye
e708f4bb89
- add short array syntax, missing files and info
2011-07-23 20:27:08 +00:00
Pierre Joye
cbe0ed86e7
- add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays , 2nd solution using => only
2011-07-23 20:23:21 +00:00
Boris Lytochkin
a80c2ee19b
fix FR #54502 : allow user to change OID value output mode when SNMP_VALUE_OBJECT is used.
2011-07-17 17:27:00 +00:00
Christian Stocker
0511fa337e
Added XsltProcessor::setSecurityPrefs($options) and getSecurityPrefs()
...
to define forbidden operations within XSLT stylesheets, default is not to
enable any write operations from XSLT anymore. Bug #54446
2011-07-11 11:16:22 +00:00
Andrew Curioso
47db582a34
Use iterator when necessary to get the full properties hash - consistent with count (see test: ext/simplexml/tests/034.phpt)
2011-05-17 13:50:48 +00:00
Gustavo André dos Santos Lopes
18d71a6f59
- Updated UPGRADING now that multicast support was decided
...
trunk only.
2011-04-06 10:17:52 +00:00
Boris Lytochkin
cab643f615
* added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
...
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +00:00
Gustavo André dos Santos Lopes
f7b7b6aa9e
- Improved upon r309729.
...
- Extented strategy to remaining the classes on spl_directory.c, even those that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.
2011-03-27 22:44:34 +00:00
Arnaud Le Blanc
11efb7295e
UPGRADING
2011-03-27 20:24:40 +00:00
Boris Lytochkin
907244a822
added info about changes in SNMP extension
2011-03-27 09:44:38 +00:00
Gustavo André dos Santos Lopes
63673a533f
- Updating UPGRADING for r309516 and modest merge to 5.3.
2011-03-23 00:51:22 +00:00
Gustavo André dos Santos Lopes
7f2937223d
- Make fclose() actually close stream, even when the resource refcount is > 1.
...
This reverts the fix for bug #24557 .
- Make php_stream_free delete the stream from the resources list, not merely
decrease its refcount, as a single call to zend_list_delete does.
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
2011-03-21 02:58:54 +00:00
Gustavo André dos Santos Lopes
a3a5157286
- PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plain
...
stream when 0 is given as the value.
- PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket
streams.
- Added stream_set_chunk_size() function.
- Some signedness fixes.
- Test for commit r308474, now that it's possible to actually test it.
2011-02-19 01:28:37 +00:00
Gustavo André dos Santos Lopes
9bbc114b59
- Classes that implement stream wrappers can define a method called
...
stream_truncate that will respond to truncation, e.g. through ftruncate.
Closes feature request #53888 .
2011-02-17 00:25:32 +00:00
Adam Harvey
7c1a05917d
Revert the UPGRADING change in r307807, since it's actually completely pointless, as Johannes pointed out.
2011-01-29 05:26:45 +00:00
Adam Harvey
c5f06eff15
Fixed bug #53854 (Missing constants for compression type). Patch by Richard
...
Quadling.
2011-01-28 04:19:40 +00:00
Gustavo André dos Santos Lopes
4a946a91e5
- Fixed CHARSET_UNICODE_COMPAT (ISO-8859-1 is compatible in the relevant sense).
...
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be
cast to char*).
- Change tests to reflect that charset detection now relies on
internal_encoding, not on current_internal_encoding.
NOTE: This fixes the changes in rev 306077, but it remains that that change
introduced a BC break. I assumed it was intentional
2011-01-25 10:57:07 +00:00
Philip Olson
2e3e65c5b7
Fixed a couple of trivial typos
2011-01-19 22:41:01 +00:00
Kalle Sommer Nielsen
5ba90aefb0
Added 'catalog' to the field fetching functions in mysqli (Thanks to Johannes for the headsup)
2011-01-17 10:43:53 +00:00
Kalle Sommer Nielsen
5d23cdd695
MFT: Implemented FR #47802 (Support for setting character sets in DSN strings)
2011-01-17 09:54:22 +00:00
Stefan Marr
478e5d1dd0
Added trait_exists() [TRAITS] [DOC]
...
- also changed class_exists() to return false for traits
- added related tests, and get_declared_traits() tests in ext/s/t/co
2011-01-09 19:57:41 +00:00
Kalle Sommer Nielsen
69a3575b38
Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct] need to return db)
2011-01-07 18:25:55 +00:00
Kalle Sommer Nielsen
e4c36b054c
Implemented FR #47802 , support for character sets in DSN strings for PDO_MYSQL
2011-01-07 14:39:56 +00:00
Adam Harvey
3571c955b5
Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
...
by Joshua Thijssen.
2011-01-06 02:32:02 +00:00
Scott MacVicar
6144da7e35
Silently casting an empty string, null or false into an object by adding a property
...
is pretty non-intuitive. If the same value was 1 or true you get a warning and it halts.
Since we can't break BC completely (yet) lets bump this from E_STRICT.
Also added a new section to UPGRADING for engine changes.
<?php
$x = '';
// $x = null;
// $x = false;
$x->baz = 1;
var_dump($x);
$y = 1;
$y->baz = 1;
var_dump($y);
2010-12-31 16:57:45 +00:00
Peter Cowburn
064a254483
Implemented FR #48767 (SplFileInfo::getExtension())
2010-12-23 22:32:52 +00:00
Gustavo André dos Santos Lopes
8398646d0a
- I had forgotten to commit UPGRADING (for enable_post_data_processing).
2010-12-10 07:59:34 +00:00
Adam Harvey
d2263d482d
Implement FR #53457 (number_format must support more than one character for
...
thousands separator).
2010-12-03 10:10:08 +00:00
Gustavo André dos Santos Lopes
22d461df62
- Implemented bug/request #53427 - stream_select doesn't preserve the
...
keys. This cannot be backported to PHP 5.3 due to a BC break. See
UPGRADING for more information.
2010-11-30 16:22:48 +00:00
Adam Harvey
9a1568c113
Implemented FR #53407 (make scandir()'s directory sorting optional).
2010-11-26 09:52:28 +00:00
Dmitry Stogov
c9e54156d8
Removed support for break/continue $var syntax
2010-11-24 16:26:49 +00:00
Dmitry Stogov
ab93d8c621
Added multibyte suppport by default. Previosly php had to be compiled with --enable-zend-multibyte. Now it can be enabled or disabled throug zend.multibyte directive in php.ini
2010-11-24 05:41:23 +00:00
Johannes Schlüter
e245652b63
- commit missing upgrading note (sqlite removed)
2010-11-19 17:22:05 +00:00
Jani Taskinen
6791197b31
- Added section for build system changes in UPGRADING.INTERNALS
2010-11-18 10:43:01 +00:00
Jani Taskinen
c9581c1b1f
typo
2010-11-17 14:08:39 +00:00
Jani Taskinen
d310d10224
- Added comment about binary SAPIs
2010-11-17 14:07:54 +00:00
Adam Harvey
6cb7ea4089
Implemented FR #53264 (Add fputcsv method to SplFileObject).
2010-11-09 15:07:50 +00:00
Pierre Joye
cd26f63009
- typo
2010-11-07 19:55:08 +00:00
Ilia Alshanetsky
12167194b5
REQUEST_TIME notes
2010-11-07 19:27:08 +00:00
Adam Harvey
8365739663
Implemented FR #53238 (Make third parameter of preg_match_all optional).
2010-11-05 04:37:27 +00:00
Gustavo André dos Santos Lopes
e5c7fae82c
- Added ReflectionParameter::canBePassedByValue().
2010-10-26 15:01:36 +00:00
Gustavo André dos Santos Lopes
3f804701b5
- Added to UPGRADING(.INTERNALS) information about the changes on html.c.
...
- Added to UPGRADING information about the new class Transliteral, the new
parameter in dns_get_record and the fact that call_user_func_array no longer
allows call-time pass-by-reference.
2010-10-24 16:21:15 +00:00
Kalle Sommer Nielsen
f2552322e7
Revert for now
2010-10-04 20:26:50 +00:00
Kalle Sommer Nielsen
d252a45e82
* Added PHP_RAND_MAX and PHP_MT_RAND_MAX constants
...
* Deprecated getrandmax() and mt_getrandmax() in favour of the new constants
# We should promote constants for static data like such instead of function calls
# maybe this was just an old left-over
2010-10-01 09:18:44 +00:00
Felipe Pena
ab3fc00983
- Added missing entries related to pdo_dblib
2010-09-16 21:49:48 +00:00
Adam Harvey
cb9c8233fc
Implement FR #44331 (Formatting option for json_encode). Bikeshedding about the
...
exact form of the JSON pretty printing and brace handling will only be accepted
in the form of patches. ;)
2010-09-16 16:21:15 +00:00
Adam Harvey
726fe638bb
Implemented FR #49366 (Make slash escaping optional in json_encode()).
2010-09-16 13:53:27 +00:00
Pierre Joye
f22c9a67f9
- is_link note
2010-09-01 10:23:58 +00:00
Pierre Joye
b1e0e9ea5a
- fix index
2010-09-01 10:22:29 +00:00
Pierre Joye
648f3829fd
- remove internals stuff, moved to the INTERNALS guide
2010-08-30 10:27:03 +00:00
Pierre Joye
100228aae1
- use TSRMLS_CC instead of TSRMLS_FETCH in virtual_file_ex
2010-08-30 09:38:47 +00:00
Adam Harvey
f33837ff97
Implemented request #34857 (Change array_combine behaviour when called with
...
empty arrays). Patch by Joel Perras <joel.perras@gmail.com>.
2010-08-27 03:54:10 +00:00
Kalle Sommer Nielsen
a7fb65f9fd
Update UPGRADING
2010-08-09 13:27:13 +00:00
Andrey Hristov
b580bc3875
Cleanup in trunk. Remove some functions, noted in
...
UPGRADING. sed-ed the tests to change the usage
to the real function name.
2010-07-07 12:09:36 +00:00
Felipe Pena
99c31b31ec
- Added array dereferencing support [DOC]
...
# http://wiki.php.net/rfc/functionarraydereferencing
2010-06-08 00:05:29 +00:00
Johannes Schlüter
089ba2acc1
- One more reflection entry
2010-06-03 12:46:14 +00:00
Felipe Pena
e90f28bab7
- Added the three new ReflectionClass methods related to traits
2010-06-03 12:31:22 +00:00
Felipe Pena
c98c39b1c1
- Added ReflectionClass::isCloneable() [DOC]
2010-06-02 15:29:42 +00:00
Arnaud Le Blanc
cfce0a9828
NEWS
2010-05-11 16:40:03 +00:00
Felipe Pena
00eec0939f
- Added get_declared_traits()
2010-05-06 15:18:20 +00:00
Kalle Sommer Nielsen
bd20dbd932
Update UPGRADING with recent feature removals
2010-04-29 01:03:21 +00:00
Rasmus Lerdorf
9692a3619c
Set session.entropy_file to /dev/urandom or /dev/arandom by
...
default if present at compile-time. Addresses part of bug #51436
2010-03-31 18:03:17 +00:00
Rasmus Lerdorf
84e34802ab
Reset this document
2010-03-24 16:23:50 +00:00
Johannes Schlüter
db256c502e
Drop debug switches from UPGRADING, they need --enable-debug and aren't ment for users
2009-06-28 16:14:30 +00:00
Christopher Jones
b44e08d1e5
Record "new" ini param
2009-06-28 14:31:12 +00:00
Hannes Magnusson
c3003002f7
Group the open_basedir entries
2009-06-27 13:33:20 +00:00
Hannes Magnusson
f88d938dfb
- Added missing deprecated things
...
- Added missing INI settings
2009-06-27 13:23:03 +00:00
Christopher Jones
30fce08b23
Clarifications for oci8 changes
2009-06-26 15:15:02 +00:00
Gwynne Raskind
bdc3d68061
more grammar and spelling, consistent usage, suggestions for replacements
2009-06-26 11:56:51 +00:00
Hannes Magnusson
f36cb429f4
Add deprecated functions
2009-06-26 10:46:50 +00:00
Pierre Joye
aaae921225
- update the windows section
2009-06-26 10:20:22 +00:00
Kalle Sommer Nielsen
ca1bda67f2
Persistent connections with mysqli missing
2009-06-25 18:17:52 +00:00
Hannes Magnusson
43f939fae0
reduntant
2009-06-25 18:04:35 +00:00
Hannes Magnusson
ceac7e4370
More missing stuff
2009-06-25 18:01:08 +00:00
Felipe Pena
f03c5db12e
- Added note about deprecation of "#" comment-style in .INI files
2009-06-25 14:56:14 +00:00
Matt Wilmas
57b543ee6f
Fix example - it means what it says
2009-06-25 13:00:08 +00:00
Gwynne Raskind
ac564608bd
fix a little typo I made, bug #48685
2009-06-25 10:41:07 +00:00
Gwynne Raskind
e01ff47c43
Whitespace fixes, reformatting to bring all lines to 80 cols, grammatical fixes, removed redundant information
2009-06-25 07:57:05 +00:00
Johannes Schlüter
9f9895b34d
Make clearer that thesse are internal functions
2009-06-24 22:26:56 +00:00
Hannes Magnusson
60835e3051
Missing enhancements
2009-06-24 21:16:53 +00:00
Hannes Magnusson
0fa4242464
Missing items
2009-06-23 19:40:31 +00:00
Hannes Magnusson
83855c0ce7
better place for it
2009-06-23 13:37:35 +00:00
Hannes Magnusson
85cb296a09
TZ is no longer used to guess the timezone
2009-06-23 13:33:26 +00:00
Hannes Magnusson
6b3f0cfc54
New function
2009-06-23 11:13:05 +00:00
Hannes Magnusson
b3e9695a65
Sync with docs
2009-06-22 10:30:23 +00:00
Hannes Magnusson
6b107d99be
Fixed bug#48485 (Error in documentation and upgrade guide)
2009-06-21 18:34:50 +00:00
Kalle Sommer Nielsen
c2131f8efb
Fixed typo, its fdf, not fPdf
2009-06-21 05:41:08 +00:00
Kalle Sommer Nielsen
c25893731b
Missing Windows constants
2009-06-21 05:29:01 +00:00
Kalle Sommer Nielsen
97d35803d7
get_extension_funcs have been in PHP since php4
2009-06-21 01:49:52 +00:00
Philip Olson
380dededf4
Synced with the wiki
2009-06-14 19:15:57 +00:00
Kalle Sommer Nielsen
ccd915ff3f
getClosureThis() and $this handling in closures was removed
2009-05-22 03:32:20 +00:00
Kalle Sommer Nielsen
178cb9c572
Added some more comments about deprecated ini settings
2009-05-15 09:44:08 +00:00
Kalle Sommer Nielsen
686c3975e7
use have been a keyword in a forever, thanks Greg
2009-05-07 06:58:57 +00:00
Kalle Sommer Nielsen
e4e260dc21
Windows ME is not supported either as of 5.3
2009-05-07 03:16:28 +00:00
Kalle Sommer Nielsen
036314329a
* use is a reserved keyword
...
* notes to Windows section
2009-05-07 03:14:07 +00:00
Kalle Sommer Nielsen
788766bfa5
Added missing note about gethostname() (Re: #47839 )
2009-04-21 04:35:01 +00:00
Felipe Pena
405e507c16
- Added new Reflection methods
2009-04-03 23:56:26 +00:00
Arnaud Le Blanc
155564d727
Fix UPGRADING and NEWS for ticks undeprecation
2009-03-28 01:29:14 +00:00
Steph Fox
2c2eaa087b
- Skeleton version taken directly from the scratchpad and tidied.
...
@Lukas, Johannes: This is nowhere near complete, and may contain entries that would be happier in NEWS, but it's OK for the beta IMHO.
2009-01-28 17:23:28 +00:00
Antony Dovgal
613237188a
typofix
2006-08-28 17:18:03 +00:00
Ilia Alshanetsky
b81012c718
removed no longer relevant portion.
2005-11-27 15:39:09 +00:00
foobar
f7beb9f30c
fix tag
2005-11-23 15:01:54 +00:00
Ilia Alshanetsky
2f6cebb206
Added 5.1 upgrading notes.
...
# Big thanks to Steph Fox for taking the time to make this list possible.
2005-11-22 23:49:13 +00:00