Skip to content


Returns the information log for a shader object

function glGetShaderInfoLog(int $shader, int $bufSize) : string


In the PHP extension this function directly returns the error string instead of being passed by reference as an argument.

  1. int $shader Specifies the shader object whose information log is to be queried.
  2. int $bufSize Specifies the size of the character buffer for storing the returned information log.

string Returns the information log for the specified object.

Copyright © 2010-2014 Khronos Group

This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999.