]> granicus.if.org Git - php/log
php
14 years agoRefactored part of the Traits implementation.
Stefan Marr [Sun, 2 May 2010 16:32:25 +0000 (16:32 +0000)]
Refactored part of the Traits implementation.
# - renamed php_runkit_function_copy_ctor to _duplicate_function
#   REM: runkit does not compile with trunk at the moment, fixing it would introduce even more version #ifs, don't know what the best way is to fix it
# - extracted traits related stuff from destroy_zend_class into _destroy_zend_class_traits_info
#   - need to investigate implementation/handling of internal classes further before enabling internal traits

14 years agoFix bug in unaligned memory access fix
Raphael Geissert [Sun, 2 May 2010 05:01:51 +0000 (05:01 +0000)]
Fix bug in unaligned memory access fix

14 years agoFix unaligned memory accesses in enchant (bug #51289)
Raphael Geissert [Sat, 1 May 2010 23:32:40 +0000 (23:32 +0000)]
Fix unaligned memory accesses in enchant (bug #51289)

14 years ago- Fixed bug #51719 (typo in function prototype)
Felipe Pena [Sat, 1 May 2010 18:54:49 +0000 (18:54 +0000)]
- Fixed bug #51719 (typo in function prototype)

14 years agoFix another typo s/exlcusive/exclusive
Raphael Geissert [Sat, 1 May 2010 18:30:38 +0000 (18:30 +0000)]
Fix another typo s/exlcusive/exclusive

14 years agoFix typos s/connnection/connection
Raphael Geissert [Sat, 1 May 2010 18:27:42 +0000 (18:27 +0000)]
Fix typos s/connnection/connection

14 years agomerge the fix for #51688
Antony Dovgal [Fri, 30 Apr 2010 08:20:57 +0000 (08:20 +0000)]
merge the fix for #51688

14 years ago- Fix #51688, ini per dir crashes when invalid document root are given
Pierre Joye [Fri, 30 Apr 2010 08:15:09 +0000 (08:15 +0000)]
- Fix #51688, ini per dir crashes when invalid document root  are given

14 years agoMake sure we search the source dir for the dtrace files
David Soria Parra [Fri, 30 Apr 2010 00:07:39 +0000 (00:07 +0000)]
Make sure we search the source dir for the dtrace files

14 years agoFix misplaced code
Etienne Kneuss [Thu, 29 Apr 2010 17:14:37 +0000 (17:14 +0000)]
Fix misplaced code

14 years agoHandle OOM cases, in case of persistent connections this is real
Andrey Hristov [Thu, 29 Apr 2010 15:49:51 +0000 (15:49 +0000)]
Handle OOM cases, in case of persistent connections this is real
and the Zend MM won't help.

14 years agoImplement SplObjectStorage::getHash()
Etienne Kneuss [Thu, 29 Apr 2010 15:47:41 +0000 (15:47 +0000)]
Implement SplObjectStorage::getHash()

14 years agoFix valgrind warning, usage of nirvana memory
Andrey Hristov [Thu, 29 Apr 2010 15:17:44 +0000 (15:17 +0000)]
Fix valgrind warning, usage of nirvana memory

14 years agoAdd a test case for the recently fixed memleak
Andrey Hristov [Thu, 29 Apr 2010 13:19:57 +0000 (13:19 +0000)]
Add a test case for the recently fixed memleak

14 years agoFix possible crashes in case of OOM, as well as a leak.
Andrey Hristov [Thu, 29 Apr 2010 13:13:41 +0000 (13:13 +0000)]
Fix possible crashes in case of OOM, as well as a leak.

14 years agofix tests
Antony Dovgal [Thu, 29 Apr 2010 12:48:06 +0000 (12:48 +0000)]
fix tests

14 years agofix skipif section
Antony Dovgal [Thu, 29 Apr 2010 12:43:18 +0000 (12:43 +0000)]
fix skipif section

14 years agoTry blob columns instead of int, and insert a lot of data at once
Andrey Hristov [Thu, 29 Apr 2010 12:07:02 +0000 (12:07 +0000)]
Try blob columns instead of int, and insert a lot of data at once

14 years agoFix crash if OOM and USE_ZEND_ALLOC=0
Andrey Hristov [Thu, 29 Apr 2010 11:49:08 +0000 (11:49 +0000)]
Fix crash if OOM and USE_ZEND_ALLOC=0

14 years ago- Adieu VC6/7/8, merci pour les bons et loyaux services
Pierre Joye [Thu, 29 Apr 2010 08:13:15 +0000 (08:13 +0000)]
- Adieu VC6/7/8, merci pour les bons et loyaux services

14 years agoBug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strin...
Christopher Jones [Thu, 29 Apr 2010 05:07:16 +0000 (05:07 +0000)]
Bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings).  Updated tests check some other edge cases

14 years agoRemove obsolete test
Christopher Jones [Thu, 29 Apr 2010 05:07:03 +0000 (05:07 +0000)]
Remove obsolete test

14 years agoUpdate UPGRADING with recent feature removals
Kalle Sommer Nielsen [Thu, 29 Apr 2010 01:03:21 +0000 (01:03 +0000)]
Update UPGRADING with recent feature removals

14 years ago- Updated to version 2010.9 (2010i)
Derick Rethans [Wed, 28 Apr 2010 23:03:36 +0000 (23:03 +0000)]
- Updated to version 2010.9 (2010i)

14 years ago- we don't need that anymore
Pierre Joye [Wed, 28 Apr 2010 22:26:08 +0000 (22:26 +0000)]
- we don't need that anymore

14 years ago- fix build (void is evil)
Pierre Joye [Wed, 28 Apr 2010 20:47:13 +0000 (20:47 +0000)]
- fix build (void is evil)

14 years agoMask schemaname in error messages
Christopher Jones [Wed, 28 Apr 2010 17:26:59 +0000 (17:26 +0000)]
Mask schemaname in error messages

14 years ago- Fix test
Felipe Pena [Wed, 28 Apr 2010 16:33:36 +0000 (16:33 +0000)]
- Fix test

14 years agoFixed few buffer overflows reported by Stefan Esser.
Andrey Hristov [Wed, 28 Apr 2010 15:35:52 +0000 (15:35 +0000)]
Fixed few buffer overflows reported by Stefan Esser.

14 years agorevert change #298288: Remove old dsp/dsw/makefile files
Rob Richards [Wed, 28 Apr 2010 14:41:51 +0000 (14:41 +0000)]
revert change #298288: Remove old dsp/dsw/makefile files

14 years ago- - Fixed #51128, imagefill() doesn't work with large images
Pierre Joye [Wed, 28 Apr 2010 14:35:42 +0000 (14:35 +0000)]
- - Fixed #51128, imagefill() doesn't work with large images

14 years ago- fix possible Dechunking Filter Buffer Overflow
Pierre Joye [Wed, 28 Apr 2010 14:10:01 +0000 (14:10 +0000)]
- fix possible Dechunking Filter Buffer Overflow

14 years agoconst-ify fields
Andrey Hristov [Wed, 28 Apr 2010 12:29:13 +0000 (12:29 +0000)]
const-ify fields

14 years agoFixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz...
Ilia Alshanetsky [Wed, 28 Apr 2010 12:10:10 +0000 (12:10 +0000)]
Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski.

14 years agoadd the constant back. quite a lot of code uses it.
Antony Dovgal [Wed, 28 Apr 2010 10:36:33 +0000 (10:36 +0000)]
add the constant back. quite a lot of code uses it.

14 years agospread some more const
Johannes Schlüter [Wed, 28 Apr 2010 10:11:50 +0000 (10:11 +0000)]
spread some more const

14 years ago- Fix #51671, imagefill does not work correctly for small images
Pierre Joye [Wed, 28 Apr 2010 08:23:44 +0000 (08:23 +0000)]
- Fix #51671, imagefill does not work correctly for small images

14 years ago- WS
Pierre Joye [Wed, 28 Apr 2010 08:04:52 +0000 (08:04 +0000)]
- WS

14 years agoFixed string format validation inside phar extension. Reported by Stefan Esser
Ilia Alshanetsky [Tue, 27 Apr 2010 17:13:24 +0000 (17:13 +0000)]
Fixed string format validation inside phar extension. Reported by Stefan Esser

14 years agoFixed memory leak in ext/spl/tests/spl_autoload_bug48541.phpt
Dmitry Stogov [Tue, 27 Apr 2010 13:31:55 +0000 (13:31 +0000)]
Fixed memory leak in ext/spl/tests/spl_autoload_bug48541.phpt

14 years agoFixed very rare memory leak in mysqlnd, when binding thousands of columns
Andrey Hristov [Tue, 27 Apr 2010 12:32:34 +0000 (12:32 +0000)]
Fixed very rare memory leak in mysqlnd, when binding thousands of columns

14 years agows
Dmitry Stogov [Tue, 27 Apr 2010 12:23:29 +0000 (12:23 +0000)]
ws

14 years ago- ws
Dmitry Stogov [Tue, 27 Apr 2010 12:17:32 +0000 (12:17 +0000)]
- ws
- removed unused variables

14 years ago- Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to use literal...
Dmitry Stogov [Tue, 27 Apr 2010 12:09:13 +0000 (12:09 +0000)]
- Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to use literals instead of additional operands
- Optimized access to global constants

14 years agoOf course, 64*4 is 256, not 1024
Andrey Hristov [Tue, 27 Apr 2010 11:02:51 +0000 (11:02 +0000)]
Of course, 64*4 is 256, not 1024

14 years agoMove the macro to mysqlnd_enum_n_def.h, because it can be reused
Andrey Hristov [Tue, 27 Apr 2010 10:53:27 +0000 (10:53 +0000)]
Move the macro to mysqlnd_enum_n_def.h, because it can be reused
in other places. Also, premultiply the values by 4 and add some
reserve for future releases of the server.

14 years agoFixed #48361 (SplFileInfo::getPathName() should return the parent
Etienne Kneuss [Tue, 27 Apr 2010 08:56:01 +0000 (08:56 +0000)]
Fixed #48361 (SplFileInfo::getPathName() should return the parent

14 years agoTest case for the buffer overflow in mysqlnd_change_user
Andrey Hristov [Tue, 27 Apr 2010 08:45:23 +0000 (08:45 +0000)]
Test case for the buffer overflow in mysqlnd_change_user

14 years agoFixed buffer overflow in mysqlnd_change_user
Andrey Hristov [Tue, 27 Apr 2010 08:26:24 +0000 (08:26 +0000)]
Fixed buffer overflow in mysqlnd_change_user

14 years ago- Unifiy that message
Hannes Magnusson [Tue, 27 Apr 2010 08:23:25 +0000 (08:23 +0000)]
- Unifiy that message
- Mention php.ini

14 years agoFix test
Hannes Magnusson [Tue, 27 Apr 2010 08:17:17 +0000 (08:17 +0000)]
Fix test

14 years agoFixed possible buffer overflow in mysqlnd_conn__list_fields.
Andrey Hristov [Tue, 27 Apr 2010 08:02:08 +0000 (08:02 +0000)]
Fixed possible buffer overflow in mysqlnd_conn__list_fields.

14 years agoFix #51374 (Wrongly initialized object properties)
Etienne Kneuss [Tue, 27 Apr 2010 05:58:39 +0000 (05:58 +0000)]
Fix #51374 (Wrongly initialized object properties)

14 years agoFixed bug #51670 getColumnMeta causes segfault when re-executing query after calling...
Pierrick Charron [Tue, 27 Apr 2010 05:56:56 +0000 (05:56 +0000)]
Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset

14 years agoFix #49723 (Skip seek when unnecessary)
Etienne Kneuss [Tue, 27 Apr 2010 04:57:48 +0000 (04:57 +0000)]
Fix #49723 (Skip seek when unnecessary)

14 years agoRemove unused variables
Pierrick Charron [Tue, 27 Apr 2010 00:09:55 +0000 (00:09 +0000)]
Remove unused variables

14 years agoRemoved safe_mode
Kalle Sommer Nielsen [Mon, 26 Apr 2010 23:53:30 +0000 (23:53 +0000)]
Removed safe_mode
 * Removed ini options, safe_mode*
 * Removed --enable-safe-mode --with-exec-dir configure options on Unix
 * Updated extensions, SAPI's and core
 * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore

14 years agoFixed handling of session variable serialization on certain prefix characters. Report...
Ilia Alshanetsky [Mon, 26 Apr 2010 18:35:54 +0000 (18:35 +0000)]
Fixed handling of session variable serialization on certain prefix characters. Reported by Stefan Esser

14 years ago- Fixed tests
Felipe Pena [Mon, 26 Apr 2010 14:15:44 +0000 (14:15 +0000)]
- Fixed tests

14 years agoFixed crash in Zend/tests/unset_cv09.phpt
Dmitry Stogov [Mon, 26 Apr 2010 13:51:46 +0000 (13:51 +0000)]
Fixed crash in Zend/tests/unset_cv09.phpt

14 years agofix test
Antony Dovgal [Mon, 26 Apr 2010 13:46:40 +0000 (13:46 +0000)]
fix test

14 years agofix test
Antony Dovgal [Mon, 26 Apr 2010 13:44:23 +0000 (13:44 +0000)]
fix test

14 years agofix skipif sections
Antony Dovgal [Mon, 26 Apr 2010 13:41:43 +0000 (13:41 +0000)]
fix skipif sections

14 years ago- Fix test
Felipe Pena [Mon, 26 Apr 2010 13:41:00 +0000 (13:41 +0000)]
- Fix test

14 years ago- Fix #51582, Don't assume UINT64_C it's ever available
Pierre Joye [Mon, 26 Apr 2010 10:34:06 +0000 (10:34 +0000)]
- Fix #51582, Don't assume UINT64_C it's ever available

14 years agoUpdate tests related to allow_call_time_pass_reference
Pierrick Charron [Mon, 26 Apr 2010 00:27:04 +0000 (00:27 +0000)]
Update tests related to allow_call_time_pass_reference

14 years ago- Remove empty tests
Felipe Pena [Mon, 26 Apr 2010 00:21:18 +0000 (00:21 +0000)]
- Remove empty tests

14 years ago- Removed allow_call_time_pass_reference (Pierrick)
Felipe Pena [Mon, 26 Apr 2010 00:13:34 +0000 (00:13 +0000)]
- Removed allow_call_time_pass_reference (Pierrick)

14 years agofix ~450 tests and 25 segfaults
Antony Dovgal [Sun, 25 Apr 2010 19:17:16 +0000 (19:17 +0000)]
fix ~450 tests and 25 segfaults
make test, anyone?

14 years agomention which setting!
Hannes Magnusson [Sun, 25 Apr 2010 18:55:06 +0000 (18:55 +0000)]
mention which setting!

14 years agoRemove unused variable
David Soria Parra [Sun, 25 Apr 2010 18:34:36 +0000 (18:34 +0000)]
Remove unused variable

14 years agoFix #51532 (Invalid prototype for SplFileInfo::fscanf)
Etienne Kneuss [Sun, 25 Apr 2010 05:18:42 +0000 (05:18 +0000)]
Fix #51532 (Invalid prototype for SplFileInfo::fscanf)

14 years ago- Fixed memory leak
Felipe Pena [Sat, 24 Apr 2010 16:59:09 +0000 (16:59 +0000)]
- Fixed memory leak

14 years agoAdd DTrace probes
David Soria Parra [Sat, 24 Apr 2010 13:32:30 +0000 (13:32 +0000)]
Add DTrace probes

14 years agoInitialize vars to prevent valgrind warnings in some cases
Christopher Jones [Sat, 24 Apr 2010 00:44:56 +0000 (00:44 +0000)]
Initialize vars to prevent valgrind warnings in some cases

14 years ago- Fix regexp
Felipe Pena [Fri, 23 Apr 2010 19:20:55 +0000 (19:20 +0000)]
- Fix regexp

14 years agoAdd PHP_VALUE and PHP_ADMIN_VALUE interpretation from fastcgi headers.
Jérôme Loyet [Fri, 23 Apr 2010 16:05:52 +0000 (16:05 +0000)]
Add PHP_VALUE and PHP_ADMIN_VALUE interpretation from fastcgi headers.
It works as php_value and php_admin_value from the main conf file or apache sapi.

See bug (request) #51595

14 years agoRemove unused functions / variables / #if 0 blocks
Jérôme Loyet [Fri, 23 Apr 2010 15:09:28 +0000 (15:09 +0000)]
Remove unused functions / variables / #if 0 blocks

14 years agotypo
Jérôme Loyet [Fri, 23 Apr 2010 13:56:14 +0000 (13:56 +0000)]
typo

14 years agoFix for bug #51647 Certificate file without private key (pk in another file) doesn...
Andrey Hristov [Fri, 23 Apr 2010 13:54:40 +0000 (13:54 +0000)]
Fix for bug #51647 Certificate file without private key (pk in another file) doesn't work

14 years ago- Fixed compiler warnings
Felipe Pena [Fri, 23 Apr 2010 13:32:03 +0000 (13:32 +0000)]
- Fixed compiler warnings

14 years agofix WS
Antony Dovgal [Fri, 23 Apr 2010 09:11:44 +0000 (09:11 +0000)]
fix WS

14 years agoUse fast class fetch function
Dmitry Stogov [Fri, 23 Apr 2010 08:56:03 +0000 (08:56 +0000)]
Use fast class fetch function

14 years agotypo and errors in php-fpm.conf
Jérôme Loyet [Fri, 23 Apr 2010 08:06:49 +0000 (08:06 +0000)]
typo and errors in php-fpm.conf

14 years ago- Fix memory issue
Felipe Pena [Fri, 23 Apr 2010 02:57:49 +0000 (02:57 +0000)]
- Fix memory issue

14 years ago- Fix Windows build (Kalle)
Felipe Pena [Fri, 23 Apr 2010 01:56:03 +0000 (01:56 +0000)]
- Fix Windows build (Kalle)

14 years ago- Fix function signature
Felipe Pena [Fri, 23 Apr 2010 01:43:27 +0000 (01:43 +0000)]
- Fix function signature

14 years ago- Fix ZTS code and CS
Felipe Pena [Fri, 23 Apr 2010 00:54:51 +0000 (00:54 +0000)]
- Fix ZTS code and CS

14 years ago- Fix zend_hash_apply_with_arguments() calls on ZTS
Felipe Pena [Thu, 22 Apr 2010 23:25:05 +0000 (23:25 +0000)]
- Fix zend_hash_apply_with_arguments() calls on ZTS

14 years agoUpdate the deprecated directives in the MakeFile
Kalle Sommer Nielsen [Thu, 22 Apr 2010 23:23:10 +0000 (23:23 +0000)]
Update the deprecated directives in the MakeFile

14 years ago- Fixed ZTS build & comment-style
Felipe Pena [Thu, 22 Apr 2010 23:16:15 +0000 (23:16 +0000)]
- Fixed ZTS build & comment-style

14 years agoFor real this time :-/
Kalle Sommer Nielsen [Thu, 22 Apr 2010 22:57:35 +0000 (22:57 +0000)]
For real this time :-/

14 years agoFix the sys_getloadavg() test
Kalle Sommer Nielsen [Thu, 22 Apr 2010 22:41:42 +0000 (22:41 +0000)]
Fix the sys_getloadavg() test

14 years agoImplemented Traits for PHP as proposed in the RFC [TRAITS]
Stefan Marr [Thu, 22 Apr 2010 22:05:56 +0000 (22:05 +0000)]
Implemented Traits for PHP as proposed in the RFC [TRAITS]

# RFC http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior
# Ok, here we go, I guess that will result in more discussion, which is fine
# by me. But now, the patch is here, and properly archived.
#
# See below a list of notes to the patch, it also includes a list of
# points which should be fixed
#
# Internals of the Traits Patch
# -----------------------------
#
# Open TODOs
# """"""""""
#
# - Reflection API
# - support for traits for internal classes
#   - currently destroy_zend_class does not handle that case
#
# Introduced Structures
# """""""""""""""""""""
#
# Data structures to encode the composition information specified in the
# source:
#  - zend_trait_method_reference
#  - zend_trait_precedence
#  - zend_trait_alias
#
# Changes
# """""""
#
# zend_class_entry
#  - uses NULL terminated lists of pointers for
#    - trait_aliases
#    - trait_precedences
#    - do you prefer an explicit counter?
#    - the information is only necessary during class composition
#      but might be interesting for reflection
#    - did not want to blow up class further with not really necessary length counters
#
# added keywords
#   - trait
#   - insteadof
#
# Added opcodes
#  ZEND_ADD_TRAIT
#    - similar to ZEND_ADD_INTERFACE
#    - adds the trait to the list of traits of a class, no actual composition done
#  ZEND_BIND_TRAITS
#    - emitted in zend_do_end_class_declaration
#    - concludes the class definition and will initiate the trait composition
#      when the class definition is encountered during runtime
#
# Added Flags
#   ZEND_ACC_TRAIT = 0x120
#   ZEND_ACC_IMPLEMENT_TRAITS = 0x400000
#   ZEND_FETCH_CLASS_TRAIT = 14
#
# zend_vm_execute.h
#  - not sure whether the handler initialization (ZEND_ADD_TRAIT_SPEC_HANDLER,
#    ZEND_BIND_TRAITS_SPEC_HANDLER) is correct, maybe it should be more selective
#
# zend_compile.c
#  - refactored do_inherit_method_check
#    split into do_inherit_method_check and do_inheritance_check_on_method
#  - added helper functions use a '_' as prefix and are not mentioned in the
#    headers
#  - _copy_functions
#    prepare hash-maps of functions which should be merged into a class
#    here the aliases are handled
#  - _merge_functions
#    builds a hash-table of the methods which need to be added to a class
#    does the conflict detection
#  - reused php_runkit_function_copy_ctor
#    - it is not identical with the original code anymore, needed to update it
#      think I fixed some bugs, not sure whether all have been reported back to runkit
#    - has to be renamed, left the name for the moment, to make its origin obvious
#    - here might be optimization potential
#    - not sure whether everything needs to be copied
#      - copying the literals might be broken
#        - added it since the literals array is freed by efree and gave problems
#          with doubled frees
#      - all immutable parts of the zend_op array should not be copied
#        - am not sure which parts are immutable
#        - and not sure how to avoid doubled frees on the same arrays on shutdown
#  - _merge_functions_to_class
#    does the final merging with the target class to handle inherited
#    and overridden methods
#  - small helper for NULL terminated lists
#    zend_init_list, zend_add_to_list
#
# zend_language_parser.y
#  - reused class definition for traits
#    - there should be something with regard to properties
#      - if they get explicitly defined, it might be worthwhile to
#        check that there are no collisions with other traits in a composition
#        (however, I would not introduce elaborate language features to control that
#         but a notice for such conflicts might be nice to the developers)

14 years agoChanged the exclusion keyword from 'instead' to 'insteadof'. [TRAITS]
Stefan Marr [Thu, 22 Apr 2010 21:56:55 +0000 (21:56 +0000)]
Changed the exclusion keyword from 'instead' to 'insteadof'. [TRAITS]
#That was suggested several times already, but am still not sure whether that really reads better.
#Especially since only the trait is mentioned, since the method name would be duplicated anyway.

14 years ago- Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors)
Felipe Pena [Thu, 22 Apr 2010 20:54:35 +0000 (20:54 +0000)]
- Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors)

14 years agoChange the way the allocator is called - through an abstraction
Andrey Hristov [Thu, 22 Apr 2010 16:28:50 +0000 (16:28 +0000)]
Change the way the allocator is called - through an abstraction
to give the possibility of pluggability. Thanks to the macros
already used the changes are not pervasive.

14 years agoFix problem spotted by Felipe.
Andrey Hristov [Thu, 22 Apr 2010 16:22:56 +0000 (16:22 +0000)]
Fix problem spotted by Felipe.

14 years agofix typo
Antony Dovgal [Thu, 22 Apr 2010 16:00:45 +0000 (16:00 +0000)]
fix typo

14 years agorevert most of the Andrey's patch that causes segfaults
Antony Dovgal [Thu, 22 Apr 2010 15:59:44 +0000 (15:59 +0000)]
revert most of the Andrey's patch that causes segfaults
(as agreed with Pierre)