summaryrefslogtreecommitdiff
path: root/ext/standard/var.c
Commit message (Collapse)AuthorAgeFilesLines
* Add comments for the fixStanislav Malyshev2002-04-291-0/+2
|
* Fix here tooStanislav Malyshev2002-04-291-1/+1
|
* Yet another serialization fix - for incomplete classStanislav Malyshev2002-04-291-2/+4
|
* Fix couple of nasty serializer bugs:Stanislav Malyshev2002-04-281-7/+14
| | | | | | | | | | | | | a) When array unserializer encounters less data than it expects (like: a:1:{}) it crashes. I don't understand exactly why it does, but the fact is it does. So now it should catch "}" and bail out. b) When array/object data are serialized, the count is written by hash count. However, it can be that in-loop check fails and less data than expected will then be written into the array. Which, due to a), would crash on unserialize. So now it will write empty entries in place of entries it cannot serialize (the other choice would be make two passes on the data, which I don't like).
* simplify and improve speed of smart_str_print_long.Sascha Schumann2002-04-211-5/+7
| | | | | also add a variant for unsigned numbers.
* fix #12793 - serialize will now spit a notice if the return value of __sleep isThies C. Arntzen2002-03-191-2/+13
| | | | | bogus.
* it's late; no more commits from me tonight...Wez Furlong2002-03-151-1/+1
|
* should have diffed first...Wez Furlong2002-03-151-2/+2
|
* fix for ZE2 compileWez Furlong2002-03-151-3/+3
|
* - Fix bug #16078Derick Rethans2002-03-141-6/+29
|
* fix bugletWez Furlong2002-03-141-3/+2
|
* Fixed var_dump() crash when there is recursion.Yasuo Ohgaki2002-03-141-0/+19
| | | | | # Since I said it's easy to fix :)
* Added ob_get_status() to get array of buffers and it's status.Yasuo Ohgaki2002-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (DO NOT document this function yet) Fixed crash bug with ob_end_*() function. ob_end_*() will not delete buffers that may not be deleted. php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for if the buffer created may be deleted or not. Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be deleted until script finshes. Changed ob_*() function that have void return type to bool. All ob_*() functions return TRUE for success, FALSE for failure. @ - Added ob_get_status() to get array of buffers and it's status. (Yasuo) @ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete @ buffers that may not be deleted. (Yasuo) @ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be @ deleted until script finshes. (Yasuo) @ - Changed ob_*() function that have void return type to bool. All ob_*() @ functions return TRUE for success, FALSE for failure. (Yasuo)
* - Make it a booleanDerick Rethans2002-02-281-3/+3
|
* - Fix the fix.. no need to escape " in single quotesDerick Rethans2002-02-241-1/+1
|
* - Add slashes around string outputDerick Rethans2002-02-241-1/+5
|
* Renamed zval_debug_dump() to debug_zval_dump()Jason Greene2002-02-101-6/+6
|
* @Added zval_debug_dump which works similar to var_dump yet displays extraJason Greene2002-02-101-0/+98
| | | | | internal information such as refcounts, and the true type names (Jason)
* - TSRMLS here and there, it's all about the Windows flairDerick Rethans2001-12-151-3/+3
|
* - Added a second parameter to var_export which makes the function returnDerick Rethans2001-12-151-14/+15
| | | | | the variable representation in a string.
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* - Remove debug codeDerick Rethans2001-12-081-5/+1
|
* - Added var_export, which shows a representation of a variable, much likeDerick Rethans2001-12-081-0/+95
| | | | | | | var_dump, but in such a way you can use it as PHP code. @- Added var_export, which shows a representation of a variable, much like @ var_dump, but in such a way you can use it as PHP code. (Derick)
* improve last patch:Thies C. Arntzen2001-12-011-15/+14
| | | | | | non existant object variables are now serialized as NULL, this saves us from buffering the serialized data.
* serialized data would be incoorect if __sleep() returned a variable-nameThies C. Arntzen2001-12-011-8/+15
| | | | | | which is non-existant in the object. submitted by: Bernd Roemer <berndr@bonn.edu>
* Rewrite of unserializer which should be more maintainable and extensible.Sascha Schumann2001-11-101-243/+1
| | | | | | | Changes pass `make test´ and a couple of custom tests. Enjoy.
* Back-substitute for Z_* macro's. If it breaks some extension (the script ↵Jeroen van Wolffelaar2001-09-251-10/+10
| | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know.
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* API updateZeev Suraski2001-08-211-1/+1
|
* Cleanup of var_dump() with correct macro's, k&r indent, and removal of aSterling Hughes2001-08-171-45/+43
| | | | | pair of unnecessary { }
* - This code looks OK so remove FIXME commentAndi Gutmans2001-08-141-1/+0
|
* WhitespaceZeev Suraski2001-08-111-9/+10
|
* we can no longer register internal-classes once the script is started.Thies C. Arntzen2001-08-061-1/+1
| | | | | therefore the "incomplete class" is now registered at MINIT time.
* more tsrm cleanupSascha Schumann2001-08-051-11/+6
|
* more tsrm cleanup -- output.c is not doing any fetches anymoreSascha Schumann2001-08-051-4/+5
|
* fix serialize:Thies C. Arntzen2001-08-041-13/+12
| | | | | | | | - keys no longer have a trailing \0 - no leak on calling __wakeup (also saved 2* malloc & free) - serializing objects that implement __sleep() works again - make test works again:-)
* Eliminate TSRMLS_FETCH() call.Sebastian Bergmann2001-08-041-4/+3
|
* Fix Win32 (and maybe other ZTS) builds.Sebastian Bergmann2001-08-041-0/+1
|
* Clean up the serializer by modularizing some of its code. That alsoSascha Schumann2001-08-041-106/+125
| | | | | | enables us to serialize hash indices without creating zvals for them. Due to its nature, this patch also includes some whitespace changes.
* Do the nul'ifiying of php_var_serialize's result at the right placeSascha Schumann2001-08-031-7/+12
|
* NUL-terminate stringSascha Schumann2001-08-031-0/+1
|
* Convert serializer to smart_str.. avoids lots of sprintf's andSascha Schumann2001-08-031-60/+50
| | | | | copying of data.
* Zend compatibility patchZeev Suraski2001-07-301-2/+2
|
* More TSRMLS_FETCH annihilation (Zend compatibility patch)Zeev Suraski2001-07-301-1/+3
|
* - More object macrosAndi Gutmans2001-07-291-8/+6
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-6/+1
|
* - Get rid of ELS_*(), and use TSRMLS_*() instead.Zeev Suraski2001-07-271-3/+3
| | | | | | | - Move to the new ts_allocate_id() API This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
* Update castZeev Suraski2001-07-151-1/+1
|
* Improved interactive mode - it is now available in all builds, without any ↵Zeev Suraski2001-07-151-3/+2
| | | | significant slowdown
* More correct pseudo-fixStanislav Malyshev2001-07-111-2/+1
| | | | | | # This is not really a fix. This thing is still broken. I will think on # how to really fix it. Any suggestion is *welcome*.