Changes between Initial Version and Version 1 of Ticket #24023, comment 7
- Timestamp:
- 04/10/2013 06:59:20 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24023, comment 7
initial v1 1 1 That's right Sergey, I added is_string to speed up. 2 2 3 Even if there was no speed improvement, the code would be tiny and clean. 4 5 {{{ 6 function is_serialized($data) { 7 return is_string($data) && ($data === "b:0;" || @unserialize($data) !== false); 8 } 9 }}} 10 11 3 12 Thank you!