]> granicus.if.org Git - php/log
php
9 years agoFixed interned string leaks after new STATIC_KEY flag is introduced
Xinchen Hui [Tue, 28 Apr 2015 03:14:21 +0000 (11:14 +0800)]
Fixed interned string leaks after new STATIC_KEY flag is introduced

9 years agoDrop compile_class_decl return value
Nikita Popov [Mon, 27 Apr 2015 18:15:06 +0000 (20:15 +0200)]
Drop compile_class_decl return value

Was introduced for anon classes, but no longer needed.

9 years agoRestored accedently removed line that caused memory leak
Dmitry Stogov [Mon, 27 Apr 2015 20:05:24 +0000 (23:05 +0300)]
Restored accedently removed line that caused memory leak

9 years agoMinor Typo in Comment
hakre [Mon, 27 Apr 2015 17:09:34 +0000 (19:09 +0200)]
Minor Typo in Comment

9 years agoCleanup substr_replace
Nikita Popov [Mon, 27 Apr 2015 16:58:47 +0000 (18:58 +0200)]
Cleanup substr_replace

9 years agoClean up some type conversions
Nikita Popov [Sat, 25 Apr 2015 18:43:11 +0000 (20:43 +0200)]
Clean up some type conversions

While at it also fix some type checks in iconv and drop dead and
unported code in standard/filters.

9 years agoMicro optimizations
Dmitry Stogov [Mon, 27 Apr 2015 15:30:33 +0000 (18:30 +0300)]
Micro optimizations

9 years agoAdded news entry
Dmitry Stogov [Mon, 27 Apr 2015 14:21:16 +0000 (17:21 +0300)]
Added news entry

9 years agoMerge branch 'anon'
Dmitry Stogov [Mon, 27 Apr 2015 14:18:35 +0000 (17:18 +0300)]
Merge branch 'anon'

* anon:
  Pass class_entry through IS_VAR to avoid hash lookup in ZEND_NEW.
  Use "safe" anonymous class names. Don't show the mangled names through var_dump().
  Refactored using specialized opcodes
  Fix implementing_class handling
  More cleanup (mainly retab)
  Don't issue FETCH_CLASS for anon classes
  More retab
  Simply anon class name generation
  Retab
  Revert unrelated changes / rebase fixup
  Rebase Joe's anon classes implementation

9 years agoUse new hash iteration API.
Dmitry Stogov [Mon, 27 Apr 2015 13:50:47 +0000 (16:50 +0300)]
Use new hash iteration API.

9 years agoEliminate useless checks
Dmitry Stogov [Mon, 27 Apr 2015 12:54:41 +0000 (15:54 +0300)]
Eliminate useless checks

9 years agoPass class_entry through IS_VAR to avoid hash lookup in ZEND_NEW.
Dmitry Stogov [Mon, 27 Apr 2015 11:16:29 +0000 (14:16 +0300)]
Pass class_entry through IS_VAR to avoid hash lookup in ZEND_NEW.

9 years agoUse "safe" anonymous class names. Don't show the mangled names through var_dump().
Dmitry Stogov [Mon, 27 Apr 2015 10:08:22 +0000 (13:08 +0300)]
Use "safe" anonymous class names. Don't show the mangled names through var_dump().

9 years agoRefactored using specialized opcodes
Dmitry Stogov [Mon, 27 Apr 2015 09:24:39 +0000 (12:24 +0300)]
Refactored using specialized opcodes

9 years agoFix implementing_class handling
Nikita Popov [Sun, 26 Apr 2015 14:03:58 +0000 (16:03 +0200)]
Fix implementing_class handling

9 years agoMore cleanup (mainly retab)
Nikita Popov [Sun, 26 Apr 2015 13:54:30 +0000 (15:54 +0200)]
More cleanup (mainly retab)

9 years agoDon't issue FETCH_CLASS for anon classes
Nikita Popov [Sun, 26 Apr 2015 13:36:40 +0000 (15:36 +0200)]
Don't issue FETCH_CLASS for anon classes

9 years agoMore retab
Nikita Popov [Sun, 26 Apr 2015 13:28:55 +0000 (15:28 +0200)]
More retab

9 years agoSimply anon class name generation
Nikita Popov [Sun, 26 Apr 2015 13:24:13 +0000 (15:24 +0200)]
Simply anon class name generation

Drop dead "parent" code

9 years agoRetab
Nikita Popov [Sun, 26 Apr 2015 13:17:53 +0000 (15:17 +0200)]
Retab

9 years agoRevert unrelated changes / rebase fixup
Nikita Popov [Sun, 26 Apr 2015 13:12:10 +0000 (15:12 +0200)]
Revert unrelated changes / rebase fixup

9 years agoRebase Joe's anon classes implementation
krakjoe [Sun, 26 Apr 2015 13:02:57 +0000 (15:02 +0200)]
Rebase Joe's anon classes implementation

9 years agoMerge branch 'PHP-5.6'
Derick Rethans [Sun, 26 Apr 2015 10:04:54 +0000 (11:04 +0100)]
Merge branch 'PHP-5.6'

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Derick Rethans [Sun, 26 Apr 2015 10:04:35 +0000 (11:04 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

9 years agoFixed location reading due to file format changes
Derick Rethans [Sun, 26 Apr 2015 10:04:16 +0000 (11:04 +0100)]
Fixed location reading due to file format changes

9 years agoPrint should be in *current* context (stack)
Bob Weinand [Sat, 25 Apr 2015 17:15:08 +0000 (19:15 +0200)]
Print should be in *current* context (stack)

9 years agoAdd line_start/end info to main op_array
Bob Weinand [Sat, 25 Apr 2015 17:10:43 +0000 (19:10 +0200)]
Add line_start/end info to main op_array

9 years agoTweak new deflate/inflate implementations
Nikita Popov [Sat, 25 Apr 2015 17:00:41 +0000 (19:00 +0200)]
Tweak new deflate/inflate implementations

Return NULL on zpp.
Don't manually cast zvals to long.

9 years agoFix bug #69532
Nikita Popov [Sat, 25 Apr 2015 16:47:26 +0000 (18:47 +0200)]
Fix bug #69532

Partial revert of ea2fc7f935d2767c127756647f47be8d420346ce.

9 years agoRespect USE_OTHER in spl_array_is_object
Nikita Popov [Sat, 25 Apr 2015 11:18:13 +0000 (13:18 +0200)]
Respect USE_OTHER in spl_array_is_object

Also a bit of code cleanup in get_hash_table.

9 years agoDon't store $this reference for IS_SELF AO
Nikita Popov [Sat, 25 Apr 2015 09:59:02 +0000 (11:59 +0200)]
Don't store $this reference for IS_SELF AO

The var_dump output changes in array_022.phpt were wrong previously,
the "storage" that was referenced there was not the actually used
storage.

9 years agoDrop ArrayObject IS_REF flag
Nikita Popov [Fri, 24 Apr 2015 17:23:49 +0000 (19:23 +0200)]
Drop ArrayObject IS_REF flag

9 years ago- Updated to version 2015.4 (2015d)
Derick Rethans [Fri, 24 Apr 2015 21:56:26 +0000 (22:56 +0100)]
- Updated to version 2015.4 (2015d)

9 years agoEmpty merge
Derick Rethans [Fri, 24 Apr 2015 21:56:26 +0000 (22:56 +0100)]
Empty merge

9 years agoOptimized HashTable copy and cleanup function for cases without holes.
Dmitry Stogov [Fri, 24 Apr 2015 19:43:50 +0000 (22:43 +0300)]
Optimized HashTable copy and cleanup function for cases without holes.

9 years ago- Updated to version 2015.4 (2015d)
Derick Rethans [Fri, 24 Apr 2015 16:22:33 +0000 (17:22 +0100)]
- Updated to version 2015.4 (2015d)

9 years agoEmpty merge
Derick Rethans [Fri, 24 Apr 2015 16:22:32 +0000 (17:22 +0100)]
Empty merge

9 years ago- Updated to version 2015.4 (2015d)
Derick Rethans [Fri, 24 Apr 2015 16:22:31 +0000 (17:22 +0100)]
- Updated to version 2015.4 (2015d)

9 years agoDropped CN_match and SNI_server_name context options
Nikita Popov [Fri, 24 Apr 2015 16:18:18 +0000 (18:18 +0200)]
Dropped CN_match and SNI_server_name context options

9 years agoRemove PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT
Nikita Popov [Fri, 24 Apr 2015 16:08:18 +0000 (18:08 +0200)]
Remove PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT

Use the generic ATTR_EMULATE_PREPARES instead.

9 years agoFix vim folding block
Daniel Lowrey [Fri, 24 Apr 2015 15:27:24 +0000 (09:27 -0600)]
Fix vim folding block

9 years agoUPGRADING
Daniel Lowrey [Fri, 24 Apr 2015 15:25:21 +0000 (09:25 -0600)]
UPGRADING

9 years agoUpdate NEWS/UPGRADING
Daniel Lowrey [Fri, 24 Apr 2015 15:19:58 +0000 (09:19 -0600)]
Update NEWS/UPGRADING

9 years agoMerge branch 'deflate'
Daniel Lowrey [Fri, 24 Apr 2015 15:02:59 +0000 (09:02 -0600)]
Merge branch 'deflate'

* deflate:
  Add inflate_*() test cases
  Add incremental zlib inflate API
  Add deflate_*() test cases
  Several deflate_* changes (more after the jump)
  Add incremental zlib deflate API

9 years agoOptimized zend_hash_rehash(), added some exoectations to generate better code
Dmitry Stogov [Fri, 24 Apr 2015 10:00:56 +0000 (13:00 +0300)]
Optimized zend_hash_rehash(), added some exoectations to generate better code

9 years agoMerge branch 'PHP-5.6'
Yasuo Ohgaki [Fri, 24 Apr 2015 07:06:41 +0000 (16:06 +0900)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Set NULL after efree

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Yasuo Ohgaki [Fri, 24 Apr 2015 07:05:50 +0000 (16:05 +0900)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Set NULL after efree

9 years agoSet NULL after efree
Yasuo Ohgaki [Fri, 24 Apr 2015 07:04:01 +0000 (16:04 +0900)]
Set NULL after efree

9 years agoAdded HashTable flag HASH_FLAG_STATIC_KEYS that is maintaned to be set if all hash...
Dmitry Stogov [Fri, 24 Apr 2015 06:34:50 +0000 (09:34 +0300)]
Added HashTable flag HASH_FLAG_STATIC_KEYS that is maintaned to be set if all hash table keys are numbers or interned strings.
Take this flag into account when copy or destroy HashTable to avoud useless checks for each key.

9 years agoAdd inflate_*() test cases
Daniel Lowrey [Fri, 24 Apr 2015 05:10:44 +0000 (23:10 -0600)]
Add inflate_*() test cases

9 years agoAdd incremental zlib inflate API
Daniel Lowrey [Wed, 22 Apr 2015 16:02:19 +0000 (10:02 -0600)]
Add incremental zlib inflate API

9 years agoAdd deflate_*() test cases
Daniel Lowrey [Wed, 22 Apr 2015 05:02:34 +0000 (23:02 -0600)]
Add deflate_*() test cases

9 years agoSeveral deflate_* changes (more after the jump)
Daniel Lowrey [Wed, 22 Apr 2015 05:00:10 +0000 (23:00 -0600)]
Several deflate_* changes (more after the jump)

- Remove deflate_flush()
- Add ZLIB_FINISH constant for use with deflate_add()
- Use options array at parameter 2 of deflate_add() to insulate
  against future API changes
- Minor bug fixes
- deflate_init() and deflate_add() now always return FALSE in the
  event of an error

9 years agoDont't use DO_ICALL for internal functions returned by reference
Dmitry Stogov [Thu, 23 Apr 2015 21:34:11 +0000 (00:34 +0300)]
Dont't use DO_ICALL for internal functions returned by reference

9 years agoCleanup comments and add related tests.
Dmitry Stogov [Thu, 23 Apr 2015 14:52:05 +0000 (17:52 +0300)]
Cleanup comments and add related tests.

9 years agoSlight improvement
Xinchen Hui [Thu, 23 Apr 2015 13:50:38 +0000 (21:50 +0800)]
Slight improvement

9 years agoFixed compiler warning
Kalle Sommer Nielsen [Thu, 23 Apr 2015 10:31:02 +0000 (12:31 +0200)]
Fixed compiler warning

9 years agoDon't propogate "fake" EX(called_scope) and EX(This) into each internal function.
Dmitry Stogov [Thu, 23 Apr 2015 09:16:37 +0000 (12:16 +0300)]
Don't propogate "fake" EX(called_scope) and EX(This) into each internal function.
They need quite seldom and it's cheaper to get them from corresponfing upper stack frame.

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Thu, 23 Apr 2015 00:43:55 +0000 (03:43 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  libpq versions older than 9.3 do not have lo_lseek64
  fix include with vc14
  fix compilation with vc14
  improve zpp readme

9 years agoMake internal non-static methods to be executed in context of class. Set EG(scope...
Dmitry Stogov [Thu, 23 Apr 2015 00:41:50 +0000 (03:41 +0300)]
Make internal non-static methods to be executed in context of class. Set EG(scope) accordingly.

9 years agolibpq versions older than 9.3 do not have lo_lseek64
Rasmus Lerdorf [Wed, 22 Apr 2015 23:15:28 +0000 (16:15 -0700)]
libpq versions older than 9.3 do not have lo_lseek64

9 years agofix include with vc14
Anatol Belski [Mon, 13 Apr 2015 08:51:24 +0000 (10:51 +0200)]
fix include with vc14

9 years agofix compilation with vc14
Anatol Belski [Sun, 5 Apr 2015 18:59:26 +0000 (20:59 +0200)]
fix compilation with vc14

9 years agoimprove zpp readme
Anatol Belski [Mon, 20 Apr 2015 11:49:19 +0000 (13:49 +0200)]
improve zpp readme

9 years agoUse fast method to check if first arguments should be passed by reference (not tested...
Dmitry Stogov [Wed, 22 Apr 2015 18:46:13 +0000 (21:46 +0300)]
Use fast method to check if first arguments should be passed by reference (not tested onbig endian).

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 22 Apr 2015 17:40:47 +0000 (20:40 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fix "invalid opcode" error

9 years agoAdd entry for bug #69152 in 5.6.8
Lior Kaplan [Wed, 22 Apr 2015 16:40:56 +0000 (19:40 +0300)]
Add entry for bug #69152 in 5.6.8

9 years agoAdd entry for bug #69152 in 5.5.24
Lior Kaplan [Wed, 22 Apr 2015 16:38:26 +0000 (19:38 +0300)]
Add entry for bug #69152 in 5.5.24

9 years agoFix "invalid opcode" error
Nikita Popov [Wed, 22 Apr 2015 15:38:49 +0000 (17:38 +0200)]
Fix "invalid opcode" error

Method call can happen on CONST, it'll just throw an error.

Not forbidding this at compile-time, so this can be overridden in
an extension.

9 years agoFormat alignment
Lior Kaplan [Wed, 22 Apr 2015 15:19:45 +0000 (18:19 +0300)]
Format alignment

9 years agoBug #68846 was fixed in 5.6.8 by 934d6ed9
Lior Kaplan [Wed, 22 Apr 2015 15:10:37 +0000 (18:10 +0300)]
Bug #68846 was fixed in 5.6.8 by 934d6ed9

9 years agoAdd merged bug fixes into 5.5.24
Lior Kaplan [Wed, 22 Apr 2015 14:41:34 +0000 (17:41 +0300)]
Add merged bug fixes into 5.5.24

Done in commits 25cb6f00 and 363e6ce6

9 years agoAdd incremental zlib deflate API
Bob Weinand [Fri, 27 Feb 2015 16:24:32 +0000 (17:24 +0100)]
Add incremental zlib deflate API

9 years agoUse string primitive
Dmitry Stogov [Wed, 22 Apr 2015 11:23:22 +0000 (14:23 +0300)]
Use string primitive

9 years agoRemovred temporary code
Dmitry Stogov [Wed, 22 Apr 2015 10:14:03 +0000 (13:14 +0300)]
Removred temporary code

9 years agoImproved property inheritance code
Dmitry Stogov [Wed, 22 Apr 2015 09:53:54 +0000 (12:53 +0300)]
Improved property inheritance code

9 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Wed, 22 Apr 2015 08:37:19 +0000 (16:37 +0800)]
Merge branch 'master' of git.php.net:php-src

9 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Wed, 22 Apr 2015 08:36:29 +0000 (16:36 +0800)]
Merge branch 'PHP-5.6'

9 years agoWindows support for sysvshm
Kalle Sommer Nielsen [Wed, 22 Apr 2015 07:29:45 +0000 (09:29 +0200)]
Windows support for sysvshm

A little background:
* key_t is an int, like ext/shmop
* There is no ftok() (from ext/standard), so tests have a new check to see whether or not it is available. This however means that the 7 tests will all be skipped for Windows. I know we cannot properly implement an ftok() function since there is no inodes for NTFS, maybe we should look into using the GetFileInfoByHandle() or similar to use the system unique ID for a file to get the same functionality, Anatol?
* Despite the lack of phpt's, local testing works flawlessly but we better look into a solution for this if we are to keep this patch

9 years agoSince 5.6 stat.cwd using emalloc (Thanks to Remi)
Xinchen Hui [Wed, 22 Apr 2015 07:14:00 +0000 (15:14 +0800)]
Since 5.6 stat.cwd using emalloc (Thanks to Remi)

9 years agofixed warning & test pushing
Xinchen Hui [Wed, 22 Apr 2015 02:53:26 +0000 (10:53 +0800)]
fixed warning & test pushing

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Tue, 21 Apr 2015 23:30:10 +0000 (02:30 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  FAST_RET opcode also returns
  Also consider specific catches when checking for uncaught
  Break on uncaught exceptions in current frame in phpdbg

9 years agoKeep realpath and PCRE caches in consistency with opcache SHM.
Dmitry Stogov [Tue, 21 Apr 2015 23:29:06 +0000 (02:29 +0300)]
Keep realpath and PCRE caches in consistency with opcache SHM.

9 years agoFAST_RET opcode also returns
Bob Weinand [Tue, 21 Apr 2015 23:11:59 +0000 (01:11 +0200)]
FAST_RET opcode also returns

9 years agoAlso consider specific catches when checking for uncaught
Bob Weinand [Tue, 21 Apr 2015 23:07:52 +0000 (01:07 +0200)]
Also consider specific catches when checking for uncaught

9 years agoBreak on uncaught exceptions in current frame in phpdbg
Bob Weinand [Tue, 21 Apr 2015 21:09:09 +0000 (23:09 +0200)]
Break on uncaught exceptions in current frame in phpdbg

9 years agoSlight zend_hash_find() optimization.
Dmitry Stogov [Tue, 21 Apr 2015 20:27:44 +0000 (23:27 +0300)]
Slight zend_hash_find() optimization.

9 years agoFixed zend_string related inconsistencies
Dmitry Stogov [Tue, 21 Apr 2015 20:26:34 +0000 (23:26 +0300)]
Fixed zend_string related inconsistencies

9 years agoFix first frame in backtrace
Bob Weinand [Tue, 21 Apr 2015 20:20:11 +0000 (22:20 +0200)]
Fix first frame in backtrace

9 years agoFix yield from with iterator (first element missing)
Bob Weinand [Tue, 21 Apr 2015 17:41:51 +0000 (19:41 +0200)]
Fix yield from with iterator (first element missing)

9 years agoAdd next command docs
Bob Weinand [Tue, 21 Apr 2015 12:22:15 +0000 (14:22 +0200)]
Add next command docs

9 years agoMove more stuff to file_context
Nikita Popov [Mon, 20 Apr 2015 18:16:58 +0000 (20:16 +0200)]
Move more stuff to file_context

Introduce helper macro FC(x) for CG(file_context).x.

end_compilation() now handled by file_context_end().

While at it, dropped zval wrapper for ticcks.

9 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Tue, 21 Apr 2015 14:45:19 +0000 (22:45 +0800)]
Merge branch 'PHP-5.6'

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Tue, 21 Apr 2015 14:44:45 +0000 (22:44 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

9 years agoRemove tail blank which is committed by accident
Xinchen Hui [Tue, 21 Apr 2015 14:44:22 +0000 (22:44 +0800)]
Remove tail blank which is committed by accident

9 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Tue, 21 Apr 2015 14:39:46 +0000 (22:39 +0800)]
Merge branch 'PHP-5.6'

Conflicts:
Zend/zend_compile.c

9 years agoUpdate NEWS
Xinchen Hui [Tue, 21 Apr 2015 14:37:25 +0000 (22:37 +0800)]
Update NEWS

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Tue, 21 Apr 2015 14:37:00 +0000 (22:37 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

9 years agoFixed Bug #69467 (Wrong checked for the interface by using Trait)
Xinchen Hui [Tue, 21 Apr 2015 14:36:32 +0000 (22:36 +0800)]
Fixed Bug #69467 (Wrong checked for the interface by using Trait)

9 years agoFixed warnings and folder marks mess
Xinchen Hui [Tue, 21 Apr 2015 13:53:12 +0000 (21:53 +0800)]
Fixed warnings and folder marks mess