Re: Suggestion for dbm functions

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Suggestion for dbm functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4443@lists.php.net to get a copy of this message
> I suggest thet the two functions dbmstore and dbmfetch take any variably > type as parameter instead of only strings so that you can store any data > type, even arrays and objects. This would indeed make the dbm functions > usable for more purposes. > > I have only gdbm available here, but from the documentation supplied, I > know that you can easily store binary data and not just strings. > > Making this change would even not break existing php3 sources, as strings > would still be strings. I don't think it makes much sense to make this specific to the dbm functions. There are already functions that take any PHP data structure and convert it to a string and back. See the serialize() function, for example. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4443) next »