php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31035 print function
Submitted: 2004-12-09 10:04 UTC Modified: 2004-12-09 10:09 UTC
From: freeseacher at pisem dot net Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.9 OS: freebsd 4.10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-09 10:04 UTC] freeseacher at pisem dot net
Description:
------------
sorry foк my english
I want to make some debug output from my script and make it optional. some thing like 
print(DEBUG1,"test");
So i need to print string only if debug level is 1 and so on. 

Reproduce code:
---------------
print ("Connecting mysql...");
$link = mysql_connect($mysql_ht, $mysql_name, $mysql_pass) or die("\t\t FAILED!\n");
print ("\t\tOK!\n");



Expected result:
----------------
Connecting mysql...      OK!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-09 10:09 UTC] derick@php.net
Define our own function which checks for a parameter.... this can be very easily done in user land.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 11:01:32 2024 UTC