Commit Graph

254 Commits

Author SHA1 Message Date
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Antony Dovgal
b38466a816 MFB: serialize() should use '.' as decimal point irrespectively to locale 2006-12-19 12:44:26 +00:00
Andrei Zmievski
7ccba6624d Use 'S' for escaped binary strings and 's' for non-escaped. 2006-12-14 23:41:57 +00:00
Antony Dovgal
ef6bcc4fb3 don't change public API 2006-12-08 21:18:16 +00:00
Antony Dovgal
ef7e4b1332 fix possible issue in the serializer, which might currupt struc when reallocating arguments stack
(no reproduce case, sorry)
2006-12-08 20:59:06 +00:00
Andrei Zmievski
411f6ca0fb Unicode support in var_export(). 2006-12-04 18:55:40 +00:00
Andrei Zmievski
1f2d5e3b00 Finalize Unicode support in serialize() and unserialize(). 2006-12-01 19:25:11 +00:00
Ilia Alshanetsky
e8ccee4873 MFB: Fixed bug #37262 (var_export() does not escape \0 character). 2006-10-09 18:09:42 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Andrei Zmievski
d019da8692 Mark memory funcs with U. 2006-10-06 18:03:41 +00:00
Antony Dovgal
dbe2092313 implement zend_unicode_to_string() and zend_string_to_unicode()
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Hannes Magnusson
0ba734cb6e Update protos & arginfo for memory_get_usage() & memory_get_peak_usage() 2006-07-25 16:40:11 +00:00
Dmitry Stogov
61d39cf1c1 Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:41:08 +00:00
Marcus Boerger
7dfc69f42e - Correctly handle binary proeprty names which are not mangled 2006-07-24 23:28:00 +00:00
Marcus Boerger
eb0fd63012 - zend_(u_)_unmangle_property_name() has changed 2006-07-24 17:55:41 +00:00
Dmitry Stogov
6687f0377b New memory manager 2006-07-18 09:08:06 +00:00
Antony Dovgal
8d8344272e WS and CS fixes
I suppose STR_FREE() is better than if(..) {efree (..);}
2006-07-14 08:38:30 +00:00
Dmitry Stogov
73001d4257 Fixed unserialize() in unicode mode 2006-07-14 08:29:06 +00:00
Andrei Zmievski
938f6d4141 Use zend_convert_from_unicode() in var_dump(). 2006-07-12 17:23:53 +00:00
Dmitry Stogov
14a10f441d Fixed bug #37947 (zend_ptr_stack reallocation problem) 2006-07-10 14:02:54 +00:00
Michael Wallner
231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner
be96a46e96 - fix encoding 2006-06-02 20:09:22 +00:00
Michael Wallner
4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Ilia Alshanetsky
1aadb29d51 MFB: Added memory_get_peak_usage() function for retrieving peak memory
usage of a PHP script.
2006-05-30 14:51:54 +00:00
Ilia Alshanetsky
1df7d39695 Fixed bug #36957 (serialize() does not handle recursion). 2006-04-05 02:28:39 +00:00
Andrei Zmievski
d761aa7eb2 Typo. 2006-03-27 22:16:53 +00:00
Andrei Zmievski
626be75d6c Make a UTODO note. 2006-03-27 21:19:12 +00:00
Andrei Zmievski
a8c291f8fe Proto updates. 2006-03-27 19:24:18 +00:00
Dmitry Stogov
c744d73d04 Unicode support 2006-03-27 13:37:47 +00:00
Derick Rethans
52bec1ea36 - Reduce space in serialization. The first 128 bytes will now use just the
character and everything above will use \uXXXX. It seems that unserialize
  doesn't work at all yet on the U: element so that I added to my to-do list.
2006-03-15 09:50:47 +00:00
Dmitry Stogov
cebd9e8f30 Fixed debug_zval_dump() to support private and protected members 2006-03-10 08:43:14 +00:00
Dmitry Stogov
c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Dmitry Stogov
5237a40717 Unicode support: fixed serialization of "Serializable" 2006-02-22 14:20:54 +00:00
Dmitry Stogov
ba8069e77e Unicode support: fixed serealization of "Serializable" and "IncompleteClass" 2006-02-22 13:47:40 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Dmitry Stogov
5bb71a7871 Fixed sleep() magic method with private and protected members 2005-12-07 09:41:22 +00:00
Derick Rethans
194e2dd081 - MF51: Fixed bug #29361 (var_export() producing invalid code). 2005-10-17 15:03:12 +00:00
Dmitry Stogov
f4a3454c52 Fix for exceptions in __sleep() 2005-09-12 07:14:54 +00:00
Andrei Zmievski
2a8a18b22c Fix verbosity for var_inspect(). 2005-08-23 17:22:54 +00:00
Dmitry Stogov
474ff091a2 var_export() should escape \ and ' characters. 2005-08-18 11:13:50 +00:00
Dmitry Stogov
21c6c8c8fe Proper handling of unicode strings with \0 in the middle 2005-08-17 15:11:41 +00:00
Dmitry Stogov
48def9a6ad Unicode support 2005-08-17 13:10:04 +00:00
Dmitry Stogov
7b7a4aac86 Unicode support 2005-08-16 09:25:04 +00:00
Marcus Boerger
bc4202473e - Simplify and make work in all modes 2005-08-14 21:26:01 +00:00
Marcus Boerger
cdd5e86cc2 - If prop_name is printed as unicode then class_name needs to be treated
in the exact same manner
2005-08-14 15:18:46 +00:00
Marcus Boerger
a19585eb49 - Show classname very needed
- No 3rd " which doesn't help parsing
# Does the class name need to be printed as u"<name>" ?
2005-08-14 15:08:38 +00:00
Antony Dovgal
0714953a44 change ["var_name":private"] -> ["var_name:private"]
* I'm also not sure we want ["var_name:public"], but I left it as is.
2005-08-12 18:54:18 +00:00