I agree, you're right. My desire to override the existing algorithm serialize(), due to the need to change the method serialization, but does not change the source code (legacy code, ext PHP)
2014-09-24 3:03 GMT+03:00 Stas Malyshev <smalys...@sugarcrm.com>: > Hi! > >> Perhaps a compromise would be to choose the quickest method of >> serialization, add it to PHP core. >> >> In php.ini add the directive >> serialization.method = msgpack / Igbinary / .... > > We could, but what if you need to read/write data specifically from > current PHP serializer? You'd have to mess then with runtime directives, > it doesn't look like a good design. That's like having one db_query() > function for all databases and have a config parameter that switches the > global database type. I think the other option is better - to have > extensions for all underlying functions and abstraction layer (PDO or > userspace) that provides unified API if needed. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php