equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Amf |
16 * @package Zend_Amf |
17 * @subpackage Parse |
17 * @subpackage Parse |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $ |
20 * @version $Id: Serializer.php 25179 2012-12-22 21:29:30Z rob $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * Base abstract class for all AMF serializers. |
24 * Base abstract class for all AMF serializers. |
25 * |
25 * |
26 * @package Zend_Amf |
26 * @package Zend_Amf |
27 * @subpackage Parse |
27 * @subpackage Parse |
28 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
29 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 * @license http://framework.zend.com/license/new-bsd New BSD License |
30 */ |
30 */ |
31 abstract class Zend_Amf_Parse_Serializer |
31 abstract class Zend_Amf_Parse_Serializer |
32 { |
32 { |
33 /** |
33 /** |
36 * @var string |
36 * @var string |
37 */ |
37 */ |
38 protected $_stream; |
38 protected $_stream; |
39 |
39 |
40 /** |
40 /** |
|
41 * str* functions overloaded using mbstring.func_overload |
|
42 * |
|
43 * @var bool |
|
44 */ |
|
45 protected $mbStringFunctionsOverloaded; |
|
46 |
|
47 /** |
41 * Constructor |
48 * Constructor |
42 * |
49 * |
43 * @param Zend_Amf_Parse_OutputStream $stream |
50 * @param Zend_Amf_Parse_OutputStream $stream |
44 * @return void |
51 * @return void |
45 */ |
52 */ |
46 public function __construct(Zend_Amf_Parse_OutputStream $stream) |
53 public function __construct(Zend_Amf_Parse_OutputStream $stream) |
47 { |
54 { |
48 $this->_stream = $stream; |
55 $this->_stream = $stream; |
|
56 $this->_mbStringFunctionsOverloaded = function_exists('mb_strlen') && (ini_get('mbstring.func_overload') !== '') && ((int)ini_get('mbstring.func_overload') & 2); |
49 } |
57 } |
50 |
58 |
51 /** |
59 /** |
52 * Find the PHP object type and convert it into an AMF object type |
60 * Find the PHP object type and convert it into an AMF object type |
53 * |
61 * |