php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16582 unserialize_callback_func isnt changeable
Submitted: 2002-04-13 03:03 UTC Modified: 2002-11-15 04:06 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ian dot ferger at solveris dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.2 OS: red hat linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ian dot ferger at solveris dot com
New email:
PHP Version: OS:

 

 [2002-04-13 03:03 UTC] ian dot ferger at solveris dot com
am unable to set unserialize_callback_func using ini_set.
I can see it in my php.ini, but when i use the following script (adapted from code given on the unserialize() function page):

ini_set('unserialize_callback_func','thecallback');

function thecallback($classname) {
      echo "calling back";
      $filename="includez/".$classname.".cls.php";
      include($filename);
 }

after unserializing I would have expected to see the echo statement, but it just wont seem to work at all.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 05:27 UTC] bernd@php.net
I cannot find any unserialize_callback_func-implementation in the source of your version :(
I'm sorry.. but i have no idea why :((
The feature is not that bad, and works fine for me in many projects... 
 [2002-04-14 18:40 UTC] sniper@php.net
First of all, try with PHP 4.2.0RC4 from http://www.php.net/~derick/ and if you can reproduce this 
problem with it, add a _complete_ but short example
script into this bug report.

 [2002-04-14 18:58 UTC] ian dot ferger at solveris dot com
but 4.2 is only in test.....and 4.1.2 is the last. how can you have done many projects with it if it hasnt been implemented in any release?
 [2002-04-14 19:16 UTC] mfischer@php.net
Changing to documentation problem: this feature will be available the first time in 4.2 but the page (unserialze) doesn't mention this.

Ian: you should have checked the return value of ini_set(), it reports false

Bernd: you should have known better where your feature is available and where not
 [2002-07-02 16:09 UTC] eru@php.net
It is mentioned on the ini_set manpage "Below is a table with a list of all PHP options (as of PHP 4.2.0), ...", but I concurr, not mentioned on the unserialize-manpage.

 [2002-11-15 04:06 UTC] philip@php.net
This is now documented, you may view changes to this manual page here:

http://cvs.php.net/cvs.php/phpdoc/en/reference/var/functions/unserialize.xml

Thanks for the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 16:01:27 2024 UTC