1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Commit Graph

6205 Commits

Author SHA1 Message Date
Scott MacVicar 8634d8ca2b Add test for bug #53632 2011-01-04 23:36:56 +00:00
Scott MacVicar bb08994d71 Fix bug #53632 with x87 fpu 2011-01-04 22:36:23 +00:00
Felipe Pena 8d8f6552ca - Fixed tests 2011-01-04 22:01:09 +00:00
Ilia Alshanetsky 7a2157cf37 Fixed Bug #53629 (memory leak inside highlight_string()). 2011-01-03 14:39:48 +00:00
Felipe Pena 0203cc3d44 - Year++ 2011-01-01 02:17:06 +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
Antony Dovgal ae0e5a0c8c initialize script_encoding_list (reported by Gustavo Lopes) 2010-12-27 20:25:34 +00:00
Felipe Pena d88a9a3f80 - Fixed INI test section 2010-12-25 01:42:45 +00:00
Moriyoshi Koizumi e540cb0c45 - Fix startup warnings. 2010-12-24 08:42:21 +00:00
Felipe Pena 7c9fb17d00 - Fix build 2010-12-20 12:41:35 +00:00
Stefan Marr d6ac811e5d Removed dead code.
# should not have been commited in the first place.
2010-12-20 08:49:59 +00:00
Moriyoshi Koizumi a304a0fc04 - Avoid allocating extra buffers. This makes parsing with zend.multibyte enabled as fast as with it disabled. 2010-12-20 03:16:09 +00:00
Moriyoshi Koizumi b09bb21292 - Fix a bug that the script gets wrongly converted into UTF-8 when the script encoding is not GL-safe. 2010-12-20 03:11:41 +00:00
Felipe Pena 3e3d7c52f0 - Fix build 2010-12-20 01:42:25 +00:00
Stefan Marr 7357867bac Added strict handling of properties in traits.
# This is the first attempt to implement the properties as discussed on the mailinglist.
# RFC is not updated to reflect this changes, yet.
2010-12-20 00:52:40 +00:00
Stefan Marr d88515e1b8 Fixed naming of parameters, was inconsistent with implementation. 2010-12-19 22:13:41 +00:00
Moriyoshi Koizumi a57e59ed6c WS 2010-12-19 17:29:21 +00:00
Moriyoshi Koizumi bbf3d43c1e * Refactor zend_multibyte facility.
Now mbstring.script_encoding is superseded by zend.script_encoding.
2010-12-19 16:36:37 +00:00
Stefan Marr d7c3c627e8 Changed E_ERROR to E_COMPILE_ERROR for Trait compilation errors.
#Thanks for catching this Kalle.
2010-12-12 17:12:29 +00:00
Stefan Marr 1d2a63da5f Changed collision warning for Traits to fatal error.
#This change is made to have all possible cases of collisions consistently handled as fatal errors.
#The reason to have it fatal is that most likely something changed unexpectedly and needs urgent attention by the developer, since it will fail eventually anyway for instance because the expected method is missing in the class.
#Discussed in this thread: http://marc.info/?l=php-internals&m=129155790226876
2010-12-12 16:48:02 +00:00
Dmitry Stogov c35fc78890 Fixed bug #53511 (Exceptions are lost in case an exception is thrown in catch operator) 2010-12-09 16:38:37 +00:00
Dmitry Stogov 5f8ff99a05 Fixed startup errors if ext/exif is loaded without ext/mbstring 2010-12-08 14:49:26 +00:00
Dmitry Stogov 755c2cd0d8 Removed compile time dependency from ext/mbstring 2010-12-08 11:27:34 +00:00
Pierre Joye e72e27eecc - fix ts build 2010-12-01 16:48:53 +00:00
Stefan Marr d0c144d732 Removed old commented function prototypes.
# Was referring to old trait-related code that is long gone
2010-12-01 15:20:11 +00:00
Dmitry Stogov a45631d966 Allowed indirect $this access (Scott) 2010-12-01 13:33:49 +00:00
David Soria Parra 76a8811c5d C comments instead of C++ comments 2010-11-30 12:51:57 +00:00
Pierre Joye 4574844c52 - cleanup broken double definition of php_win_err and rename it while being there 2010-11-25 23:06:12 +00:00
Felipe Pena 965c30dc2e - Removed unused variable 2010-11-24 20:50:07 +00:00
Dmitry Stogov 7628da98c4 Removed support for break/continue $var syntax 2010-11-24 12:19:56 +00:00
Dmitry Stogov bf05cc7490 Fixed test 2010-11-24 10:54:35 +00:00
Dmitry Stogov ac71f49344 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 (regenerated scanner) 2010-11-24 05:42:52 +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
Felipe Pena 7c541356f3 - Fixed compile warnings 2010-11-23 21:49:18 +00:00
Felipe Pena 201ab8bb8c - Fixed test 2010-11-23 21:45:22 +00:00
Dmitry Stogov d72ac0771d Fixed bug #35547 (Segfault accessing static method) 2010-11-23 10:22:34 +00:00
Stefan Marr 4cc45507da Fixed problem reported by Patrick ALLAERT. Trait method was not applied properly when fully qualified. 2010-11-18 17:59:04 +00:00
Stefan Marr 6ad5c889a1 Added tests to for static support of traits.
# This was not tested and documented yet.
# Updated documentation in the RFC http://wiki.php.net/rfc/horizontalreuse
2010-11-17 23:05:20 +00:00
Felipe Pena 45189fa803 - Fixed bug #53306 (php crashes with segfault when DTrace "exception-thrown" probe fires)
patch by: mike at harschsystems dot com
2010-11-17 21:41:30 +00:00
Pierre Joye d6723d57c0 - test for NULL deref fix 2010-11-17 17:26:33 +00:00
Pierre Joye 1d04f413cf - NULL deref fix, patch by Gustavo 2010-11-17 16:46:19 +00:00
Felipe Pena 565c484222 - Moved leak_variable() to zend_builtin_functions.c (Gustavo) 2010-11-15 17:06:27 +00:00
Felipe Pena 5f31c44509 - Add missing check 2010-11-14 01:38:52 +00:00
Felipe Pena c95e919e3e - Fix the constant detection 2010-11-13 19:50:55 +00:00
Felipe Pena b5b0599398 - Fixed bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
- Fixed a part of bug #53260 (the __COMPILER_HALT_OFFSET__ name is not shown in the E_NOTICE)
2010-11-13 18:46:11 +00:00
Etienne Kneuss 105db96e78 Fixed covariance of return-by-ref constraints 2010-11-03 15:40:24 +00:00
Felipe Pena e3ced0b540 - Reverted fix for bug #51176 2010-11-03 01:35:26 +00:00
Dmitry Stogov 68e154b1bf reduced size of temp_variariable 2010-10-22 14:51:07 +00:00
Dmitry Stogov 968bdc576c Simplified foreach() handling, we don't have to inctrement/decrement refcount twice 2010-10-22 13:59:23 +00:00
Dmitry Stogov d12098eeec Fixed crash on attempt to insert reference to string offset into an array 2010-10-22 11:05:22 +00:00