From d0dbed9ed21123455adcd0277991036ad9bdbb06 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 8 Jul 2014 15:03:43 +0200 Subject: in the documentation and source code comments, the old method name Value::resize() was used, while the actual name is reserve(), solves issue #102 --- documentation/variables.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/variables.html b/documentation/variables.html index 98a6d49..dfc5b18 100644 --- a/documentation/variables.html +++ b/documentation/variables.html @@ -223,10 +223,10 @@ Php::Value readExample2(int fd) // result variable Php::Value result; - // resize the buffer to 4096 bytes, the resize() method resizes + // resize the buffer to 4096 bytes, the reserve() method resizes // the internal buffer to the appropriate size, and returns a pointer // to the buffer - char *buffer = result.resize(4096); + char *buffer = result.reserve(4096); // read in the bytes directly into the just allocated buffer ssize_t bytes = read(fd, buffer, 4096); @@ -235,7 +235,7 @@ Php::Value readExample2(int fd) // resize the buffer to the actual number of bytes in it (this // is necessary, otherwise the PHP strlen() returns 4096 even // when less bytes were available - result.resize(bytes); + result.reserve(bytes); // return the result return result; -- cgit v1.2.3