- removed deprecated returning value of new by reference
| | |
| | | return $err; |
| | | } |
| | | $this->{$property} = new $class_name($this->db_index); |
| | | $this->modules[$module] =& $this->{$property}; |
| | | $this->modules[$module] = $this->{$property}; |
| | | if ($version) { |
| | | // this will be used in the connect method to determine if the module |
| | | // needs to be loaded with a different version if the server |
| | |
| | | if ($object_class == 'stdClass') {
|
| | | $row = (object) $row;
|
| | | } else {
|
| | | $row = &new $object_class($row);
|
| | | $row = new $object_class($row);
|
| | | }
|
| | | }
|
| | | ++$this->rownum;
|
| | |
| | | if ($object_class == 'stdClass') { |
| | | $row = (object) $row; |
| | | } else { |
| | | $row = &new $object_class($row); |
| | | $row = new $object_class($row); |
| | | } |
| | | } |
| | | ++$this->rownum; |
| | |
| | | if ($object_class == 'stdClass') { |
| | | $row = (object) $row; |
| | | } else { |
| | | $row = &new $object_class($row); |
| | | $row = new $object_class($row); |
| | | } |
| | | } |
| | | ++$this->rownum; |
| | |
| | | if ($object_class == 'stdClass') {
|
| | | $row = (object) $row;
|
| | | } else {
|
| | | $row = &new $object_class($row);
|
| | | $row = new $object_class($row);
|
| | | }
|
| | | }
|
| | | ++$this->rownum;
|
| | |
| | | if ($object_class == 'stdClass') {
|
| | | $row = (object) $row;
|
| | | } else {
|
| | | $row = &new $object_class($row);
|
| | | $row = new $object_class($row);
|
| | | }
|
| | | }
|
| | | ++$this->rownum;
|
| | |
| | | break; |
| | | |
| | | case 'message/rfc822': |
| | | $obj = &new Mail_mimeDecode($body); |
| | | $obj = new Mail_mimeDecode($body); |
| | | $return->parts[] = $obj->decode(array('include_bodies' => $this->_include_bodies, |
| | | 'decode_bodies' => $this->_decode_bodies, |
| | | 'decode_headers' => $this->_decode_headers)); |
| | |
| | | $ec = 'PEAR_Error'; |
| | | } |
| | | if ($skipmsg) { |
| | | $a = &new $ec($code, $mode, $options, $userinfo); |
| | | $a = new $ec($code, $mode, $options, $userinfo); |
| | | return $a; |
| | | } else { |
| | | $a = &new $ec($message, $code, $mode, $options, $userinfo); |
| | | $a = new $ec($message, $code, $mode, $options, $userinfo); |
| | | return $a; |
| | | } |
| | | } |