php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29463 describe for assert() function
Submitted: 2004-07-31 02:29 UTC Modified: 2012-08-31 17:06 UTC
From: t dot prochazka at centrum dot cz Assigned: lstrojny (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS: Win XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: t dot prochazka at centrum dot cz
New email:
PHP Version: OS:

 

 [2004-07-31 02:29 UTC] t dot prochazka at centrum dot cz
Description:
------------
Can you add second argument for assert() function, which be text with description.

Example:

fuction test($i) {
  assert($i > 0,"argument i must be positive");
}

This text will be part of error message when assert failed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-31 17:00 UTC] lstrojny@php.net
-Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: lstrojny
 [2012-08-31 17:06 UTC] lstrojny@php.net
-Status: Assigned +Status: Closed
 [2012-08-31 17:06 UTC] lstrojny@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 21:01:31 2025 UTC