php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19849 strlen(trim($content))
Submitted: 2002-10-10 10:27 UTC Modified: 2002-10-10 18:03 UTC
From: jazar at zacks dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.2.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jazar at zacks dot com
New email:
PHP Version: OS:

 

 [2002-10-10 10:27 UTC] jazar at zacks dot com
The using of trim function into strlen returns error.
strlen(trim($content));
I tried this on PHP4.1, and on PHP 4.2.3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-10 10:57 UTC] sander@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-10-10 11:04 UTC] jazar at zacks dot com
PHP Version 4.2.4-dev

Apache/1.3.27 

System: Linux 2.4.19 #26 SMP Wed Aug 28 04:55:50 IDT 2002 i686

'./configure' '--with-xml' '--with-gd' '--with-gettext' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql' '--with-mcrypt' '--without-kerberos' '--with-openssl' '--with-iconv'

Loaded Modules mod_php4, mod_ssl, mod_setenvif, mod_so, mod_unique_id, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_vhost_alias, mod_mmap_static, http_core 

The second server:
PHP Version 4.1.2

System:
Linux 2.2.12-29

'./configure' '--with-oracle=/home/oracle/product/8i' '--with-oci8' '--prefix=/usr/local/php4.1.2' '--exec-prefix=/usr/local/php4.1.2' '--enable-sigchild' '--with-openssl=/usr/local/ssl' '--with-apxs=/etc/httpd1.3.24/bin/apxs' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--enable-trans-sid'

Loaded Modules:
mod_php4, apache_ssl, mod_setenvif, mod_so, mod_unique_id, mod_example, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_dbm, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_referer, mod_log_agent, mod_log_config, mod_env, mod_vhost_alias, mod_mmap_static, http_core
 [2002-10-10 11:09 UTC] sander@php.net
What error do you get? What did you expect? What does $content contain? Can you post a simple and selfcontained sample script?
 [2002-10-10 18:03 UTC] sniper@php.net
<?php 

$foo = "asdasd asdasd  ";
echo strlen(trim($foo)); 

?>

Works fine with latest CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC