[PHP-CVS] svn: /php/php-src/trunk/ UPGRADING UPGRADING.INTERNALS

2012-02-22 Thread Gustavo André dos Santos Lopes
cataphract   Wed, 22 Feb 2012 10:08:37 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=323423

Log:
- Cleanup UPGRADING and UPGRADING.INTERNALS from 5.4 changes.
- Added information about removal of streams pooling API.

Changed paths:
U   php/php-src/trunk/UPGRADING
U   php/php-src/trunk/UPGRADING.INTERNALS

Modified: php/php-src/trunk/UPGRADING
===
--- php/php-src/trunk/UPGRADING	2012-02-22 09:33:01 UTC (rev 323422)
+++ php/php-src/trunk/UPGRADING	2012-02-22 10:08:37 UTC (rev 323423)
@@ -36,57 +36,8 @@
 1. Changes made to default configuration
 

-- The default_charset setting now defaults to UTF-8.
-  It was ISO-88590-1 before, so if you were relying
-  on the default, you will need to add:
+-

-default_charset = iso-8859-1
-
-  to your php.ini to preserve pre-PHPX.Y behavior.
-
-- We now check at compile time if /dev/urandom or /dev/arandom
-  are present to provide non-blocking entropy to session id
-  generation.  If either is present, session.entropy_file
-  now defaults to that file and session.entropy_length defaults
-  to 32.  If you do not want extra entropy for your session ids
-  for some reason, add:
-
-session.entropy_file=
-session.entropy_length=0
-
-  to your php.ini to preserve pre-PHPX.Y behavior.
-
-- Deprecated ini directives will now throw an E_CORE_WARNING's
-  instead of the previous E_WARNING's.
-
-  The following directives are marked as deprecated:
-  - magic_quotes_gpc
-  - magic_quotes_runtime
-  - magic_quotes_sybase
-
-- The following directives, which indicates a removed feature
-  in PHP will now throw an E_CORE_ERROR upon startup like the
-  deprecation warnings.
-
-  The following directives are no longer available:
-  - allow_call_time_pass_reference
-  - define_syslog_variables
-  - highlight.bg
-  - register_globals
-  - register_long_arrays
-  - safe_mode
-  - safe_mode_gid
-  - safe_mode_include_dir
-  - safe_mode_exec_dir
-  - safe_mode_allowed_env_vars
-  - safe_mode_protected_env_vars
-  - zend.ze1_compatibility_mode
-
-- the following new directives were added
-
-  - max_input_vars - specifies how many GET/POST/COOKIE input variables may be
-accepted. default value 1000.
-
 =
 2. Reserved words and classes
 =
@@ -97,96 +48,13 @@
 3. Changes made to engine behaviour
 =

-- Turning null, false or empty string into an object by adding a property
-  will now emit a warning instead of an E_STRICT error.
-
-  $test = null;
-  $test-baz = 1;
-
-  To create a generic object you can use StdClass:
-  $test = new StdClass;
-  $test-baz = 1;
+-

-- In previous versions, names of superglobals could be used for parameter
-  names, thereby shadowing the corresponding superglobal. This now causes a
-  fatal error such as Cannot re-assign auto-global variable GLOBALS.
-
 =
 4. Changes made to existing functions
 =

-- array_combine now returns array() instead of FALSE when two empty arrays are
-  provided as parameters.
-- Added an extra parameter to dns_get_record(), which allows requesting DNS
-  records by numeric type and makes the result include only the raw data of
-  the response.
-- call_user_func_array no longer allows call-time pass by reference.
-- htmlentities/htmlspecialchars are stricter in the code units they accept for
-  the asian encodings. For Big5-HKSCS, the octets 0x80 and 0xFF are rejected.
-  For GB2312/EUC-CN, the octets 0x8E, 0x8F, 0xA0 and 0xFF are rejected. For
-  SJIS, the octets 0x80, 0xA0, 0xFD, 0xFE and 0xFF are rejected, except maybe
-  after a valid starting byte. For EUC-JP, the octets 0xA0 and 0xFF are
-  rejected.
-- htmlentities now emits an E_STRICT warning when used with asian characters,
-  as in that case htmlentities has (and already had before this version) the
-  same functionality as htmlspecialchars.
-- htmlentities no longer numerically encodes high characters for single-byte
-  encodings (except when there's actually a corresponding named entity). This
-  behavior was not documented and was inconsistent with that for UTF-8.
-- html_entity_decode/htmlspecialchars_decode behave more consistently, now
-  decoding entities in malformed strings such as amp; or #amp;.
-- htmlentities/htmlspecialchars/html_entity_decode/htmlspecialchars_decode:
-  Added the flags ENT_HTML401, ENT_XML1, ENT_XHTML, and ENT_HTML5. The
-  behavior of these functions including, but not limited to, the characters
-  that are encoded and the entities that are decoded depend on the document
-  type that is specified by those flags.
-- htmlentities/htmlspecialchars with !$double_encode do more strict checks on
-  the validity of the entities. Numerical entities are checked for a valid
-  range (0 to 0x10); if the flag ENT_DISALLOWED is 

[PHP-CVS] svn: /php/php-src/trunk/ UPGRADING UPGRADING.INTERNALS

2010-11-18 Thread Jani Taskinen
jani Thu, 18 Nov 2010 10:43:01 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=305490

Log:
- Added section for build system changes in UPGRADING.INTERNALS

Changed paths:
U   php/php-src/trunk/UPGRADING
U   php/php-src/trunk/UPGRADING.INTERNALS

Modified: php/php-src/trunk/UPGRADING
===
--- php/php-src/trunk/UPGRADING 2010-11-18 10:34:33 UTC (rev 305489)
+++ php/php-src/trunk/UPGRADING 2010-11-18 10:43:01 UTC (rev 305490)
@@ -224,10 +224,6 @@
 9. Changes in SAPI support
 ==

-- When adding new binary SAPI (executable, like CLI/CGI/FPM) use CLI
-  config.m4 and Makefile.frag files as templates and replace CLI/cli with
-  your SAPI name.
-
 - The REQUEST_TIME value inside server now returns a floating point number
   indicating the time with microsecond precision. All SAPIs providing this
   value should be returning float and not time_t.

Modified: php/php-src/trunk/UPGRADING.INTERNALS
===
--- php/php-src/trunk/UPGRADING.INTERNALS   2010-11-18 10:34:33 UTC (rev 
305489)
+++ php/php-src/trunk/UPGRADING.INTERNALS   2010-11-18 10:43:01 UTC (rev 
305490)
@@ -12,6 +12,11 @@
   g. leak_variable
   h. API Signature changes

+2. Build system changes
+  a. Unix build system changes
+  b. Windows build system changes
+
+
 
 1. Internal API changes
 
@@ -22,6 +27,7 @@
 CWD_API int virtual_file_ex(cwd_state *state, const char *path,
  verify_path_func verify_path, int use_realpath TSRLS_DC);

+
b. stat/lstat support

 lstat is now available on all platforms. On unix-like platform
@@ -29,6 +35,7 @@
 available using php_sys_lstat. php_sys_stat and php_sys_lstat usage is 
recommended
 instead of calling lstat directly, to ensure portability.

+
c. readlink support

 readlink is now available on all platforms. On unix-like platform
@@ -36,6 +43,7 @@
 available using php_sys_readlink. php_sys_readlink usage is recommended
 instead of calling readlink directly, to ensure portability.

+
d. layout of some core ZE structures (zend_op_array, zend_class_entry, 
...)

 . zend_function.pass_rest_by_reference is replaced by
@@ -59,7 +67,9 @@
   by different information for internal and user classes.
   See zend_class_inttry.info union.

+
e. Zend\zend_fast_cache.h
+
 It should not have been used anymore since php5, but now this header has
 been removed. The following macros are not available anymore:

@@ -70,7 +80,9 @@

 Use emalloc, emalloc_rel, efree or efree_rel instead.

+
f. Streams that enclose private streams
+
 Some streams, like the temp:// stream, may enclose private streams. If the
 outer stream leaks due to a programming error or is not exposed through a
 zval (and therefore is not deleted when all the zvals are gone), it will
@@ -111,13 +123,17 @@
 php_stream_encloses with the 2nd argument NULL. If this is not done, there will
 be problems, so observe this requirement when using php_stream_encloses.

+
g. leak_variable
+
 The function leak_variable(variable [, leak_data]) was added. It is only
 available on debug builds. It increments the refcount of a zval or, if the
 second argument is true and the variable is either an object or a resource
 it increments the refcounts of those objects instead.

+
h. API Signature changes
+
 . zend_list_insert
   ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
   call: zend_list_insert(a, SOMETYPE TSRMLS_CC);
@@ -131,6 +147,10 @@
 . php_stream_context_alloc
   PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D);
   call: context  = php_stream_context_alloc(TSRMLS_C);
+
+. sapi_get_request_time(TSRMLS_D);
+  SAPI_API double sapi_get_request_time(TSRMLS_D);
+
 . sapi_register_default_post_reader
   SAPI_API int sapi_register_default_post_reader(void 
(*default_post_reader)(TSRMLS_D) TSRMLS_DC);

@@ -163,3 +183,21 @@

 . php_unescape_html_entities
   PHPAPI char *php_unescape_html_entities(unsigned char *old, size_t oldlen, 
size_t *newlen, int all, int flags, char *hint_charset TSRMLS_DC);
+
+
+
+2. Build system changes
+
+
+  a. Unix build system changes
+
+- Changes in SAPI module build:
+  . When adding new binary SAPI (executable, like CLI/CGI/FPM) use CLI 
config.m4 and Makefile.frag files as templates and replace CLI/cli with your 
SAPI name.
+
+- New macros:
+  . PHP_INIT_DTRACE(providerdesc, header-file, sources [, module])
+
+
+  b. Windows build system changes
+-
+

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php