php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44962 error_log returns true not integer on success
Submitted: 2008-05-10 16:12 UTC Modified: 2008-11-05 17:01 UTC
From: sven-ullmann at v1958 dot ncsrv dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sven-ullmann at v1958 dot ncsrv dot de
New email:
PHP Version: OS:

 

 [2008-05-10 16:12 UTC] sven-ullmann at v1958 dot ncsrv dot de
Description:
------------
in documentation described error_log returns integer but testet on linux php 5.x it does return true on success.
Maybe it's a Bug

With best regards

Sven Ullmann

Reproduce code:
---------------
php -r "var_dump( error_log( 'test' ) );";

// returns: true

Expected result:
----------------
integer as it is described

Actual result:
--------------
boolean

Patches

Pull Requests

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC