Derick Rethans
13c2cbb515
- MF43: Fixed bug #31072 (var_export() does not output an array element with an
...
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Marcus Boerger
f0c9f998d3
speling
2004-10-08 19:02:00 +00:00
Marcus Boerger
91af7f394f
- Add some checks when unserializing data to prevent buffer overflows
2004-09-05 16:29:05 +00:00
Marcus Boerger
72000ecda9
Fix memleak in serialize
2004-09-02 18:28:47 +00:00
Ilia Alshanetsky
9996b5f731
Fixed leak when serializing protected & private properties.
2004-08-29 17:16:20 +00:00
Andrey Hristov
dd5538566e
fix for bug 26737 : private & protected member variables not serialized
...
when user defined __sleep() is declared. Additionally E_NOTICE is
being thrown if __sleep() returns a non-existing member variable name
2004-08-21 13:49:19 +00:00
Marcus Boerger
c5b9577df8
Fix TSRM build
2004-07-04 11:14:17 +00:00
Moriyoshi Koizumi
a92af73136
- Bugfix #28325 (circular reference serialisation).
2004-07-03 16:10:28 +00:00
Andrey Hristov
19d0283ce8
for now removing ":public". Waiting for a decision? ":public" will require
...
quite a lot of phpt files changes.
2004-05-20 21:15:42 +00:00
Andrey Hristov
aafb2b1581
var_dump() now shows private and protected member variables.
...
Not BC is that since now the public variables are explicitly shown as public
Example :
class a{ protected $a=1; private $b=2;var $c=3;} $a=new a(); var_dump($a);
object(a)#1 (3) {
["a:protected"]=>
int(1)
["b:private"]=>
int(2)
["c:public"]=>
int(3)
}
2004-05-20 17:46:20 +00:00
Dmitry Stogov
deb84befae
BUG #27469 was fixed (serialize() objects of incomplete class)
2004-03-18 16:54:36 +00:00
Ard Biesheuvel
b303ba089c
More wordsize fixes
2004-03-08 23:11:45 +00:00
Ilia Alshanetsky
6112260738
Fixed compiler warnings.
2004-03-08 03:06:56 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
Stanislav Malyshev
794975d97f
ce is not used, don't get it
2004-02-16 11:21:31 +00:00
Stanislav Malyshev
1c433049ca
fix serialization
2004-02-05 09:07:46 +00:00
Stanislav Malyshev
3fd027c5ac
fix bug #27120 and bug #25975 - preserve is_ref when bound
...
objects are serialized
2004-02-03 14:12:59 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Derick Rethans
6923a16c26
- Fixed var_export() to show public, protected and private modifiers properly.
...
- Exported (un)mangle_property_name.
2004-01-03 13:51:02 +00:00
Derick Rethans
287834a5af
- Fix typo
2003-12-28 21:56:15 +00:00
Ilia Alshanetsky
91052eb93b
Fixed bug #26458 (var_dump(), var_export(), debug_zval_dump() not binary
...
safe for array keys).
2003-11-29 04:43:06 +00:00
Wez Furlong
28277f1d00
fix #26001 ; serialize crashes when accessing an overloaded
...
object that has no properties (NULL hashtable).
2003-11-28 15:42:58 +00:00
Moriyoshi Koizumi
bb6f3a115e
Fixed bug #24394 (serializing cross-referenced objects causes segfault)
2003-11-04 16:08:10 +00:00
Moriyoshi Koizumi
ed40a56c6c
Oops..
2003-10-08 01:51:32 +00:00
Moriyoshi Koizumi
f4595d18af
Better fix for bug #25758
2003-10-08 01:49:31 +00:00
Ilia Alshanetsky
6f8b8ade45
Fixed bug #25758 (var_export does not escape ' & \ inside array keys)
2003-10-08 01:16:44 +00:00
Sascha Schumann
6a7dde29e7
kill warnings
2003-08-28 16:28:33 +00:00
Ilia Alshanetsky
ed40ae2650
emalloc -> safe_emalloc
2003-08-11 23:16:54 +00:00
Ilia Alshanetsky
4320c6994f
Fixed bug #21957 (serialize() mangles objects with __sleep).
2003-08-11 03:22:24 +00:00
Stanislav Malyshev
d113d32314
Don't try to __sleep incomplete classes
2003-08-05 09:19:38 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
b20df54af7
Make serialize precision a configurable option.
2003-05-08 01:23:21 +00:00
Ilia Alshanetsky
7f404846ad
s/g/G/
2003-05-05 22:21:29 +00:00
Ilia Alshanetsky
88bafcb7a5
Safer implementation.
...
Thanks Marcus.
2003-05-04 19:09:54 +00:00
Ilia Alshanetsky
75c01dd66b
Fixed bug #23298 (serialize cuts off floats & doubles)
2003-05-04 18:41:02 +00:00
Derick Rethans
9ab3ad2963
- Commit the .c file too...
2003-04-28 18:52:59 +00:00
Moriyoshi Koizumi
cf620ddfdb
Unified all those redundant printf's
2003-04-21 18:00:41 +00:00
Stanislav Malyshev
5a904d6ea8
Update to latest inteface change for get_class_name
2003-04-21 17:03:29 +00:00
Moriyoshi Koizumi
47e40e1b98
Improved var_dump() and debug_zval_dump() so they also show the
...
namespace of the given object.
2003-03-29 21:29:22 +00:00
Andrei Zmievski
b1546a1775
Print the object handle (it's useful).
2003-03-10 15:13:32 +00:00
Wez Furlong
84f83e8559
Don't assume that objects have class entries (in the ZE1 sense) when
...
determining the class name.
Additionally, don't assume that objects have a properties hash either.
2003-02-01 03:52:31 +00:00
Sascha Schumann
bea6ff5183
Unbreak $Id tag
2003-01-31 16:24:12 +00:00
Andrey Hristov
309ef518fc
Renamed get_memory_usage() to memory_get_usage() (per Andi's advice)
...
This doesn't break any BC.
2003-01-18 15:03:01 +00:00
Andrey Hristov
7866f02260
added function get_memory_usage(). available only when PHP is compiled
...
with --enable-memory-limit
2003-01-14 18:26:47 +00:00
Stanislav Malyshev
bcc1e5a74e
remove unneeded var
2003-01-12 13:50:17 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Marcus Boerger
49a99a98f4
-php_error -> php_error_docref
...
-removed some cases where emalloc result was tested
2002-12-05 20:59:49 +00:00
Derick Rethans
e06550f853
- Fix problem with var_export when objects with numeric indexes were
...
exported. We now skip those, as there is no way to export valid code for
it.
2002-10-11 13:49:20 +00:00
Zeev Suraski
df55f35798
Revert the implicit_flush mess.
...
Do not revert it again under any circumstances!
Yasuo/anybody else - if there are issues with implicit_flush, please inform
me and I will fix them.
2002-10-06 12:02:53 +00:00
Yasuo Ohgaki
39b0eb9b22
Fixed broken code by Derick.
...
ob_implicit_flush() and ob_flush_all() are stopped working.
var_dump() and hightlisht_string() outputs buffer contents wrongly
with ob_implicit_flush().
Everyone should be happy now.
It was only OG(implicit_flush) interpretation issue after all.
2002-10-03 13:32:01 +00:00