public function transaction_starts() {
        if ($this->buffer !== null) {
            $this->unregister();
            return;
        }
        if (!$this->rsrc) {
            $this->unregister();
            return;
        }
        // This might eat memory pretty quickly...
        raise_memory_limit('2G');
        $this->buffer = array();

        while($next = $this->fetch_next()) {
            $this->buffer[] = $next;
        }
    }
public function transaction_starts() {
        if ($this->buffer !== null) {
            $this->unregister();
            return;
        }
        if (!$this->rsrc) {
            $this->unregister();
            return;
        }
        // This might eat memory pretty quickly...
        raise_memory_limit('2G');
        $this->buffer = array();

        while($next = $this->fetch_next()) {
            $this->buffer[] = $next;
        }
    }
public function transaction_starts ( ) { if ( $ this -> buffer !== null ) { $ this -> unregister ( ) ; return ; } if ( ! $ this -> rsrc ) { $ this -> unregister ( ) ; return ; } // This might eat memory pretty quickly... raise_memory_limit ( '2G' ) ; $ this -> buffer = array ( ) ; while ( $ next = $ this -> fetch_next ( ) ) { $ this -> buffer [ ] = $ next ; } }
Inform existing open recordsets that transaction
is starting, this works around MARS problem described
in MDL-37734.
Inform existing open recordsets that transaction is starting this works around MARS problem described in MDL - 37734 .