Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > #38218 : php:functionString tries to access objects with their names in lowercase
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 22nd August 21:46
php-bugs@lists.php.net (moksinski at gmail dot
External User
 
Posts: 1
Default #38218 : php:functionString tries to access objects with their names in lowercase



From: moksinski at gmail dot com
Operating system: windows 2000
PHP version: 6CVS-2006-07-26 (snap)
PHP Bug Type: XSLT related
Bug description: php:functionString tries to access objects with their names in lowercase

Description:
------------
php:functionString tries to access objects with their names in lowercase.
when you use autoloader to include your classes it generates fatal error
because it cannot find the proper php file.

Reproduce code:
---------------
<?php //FILE AutoLoaded.php
class AutoLoaded { public static function printText($text) { return $text;
}}
?>

<?php //FILE index.php
$xsl=<<<EOSTRING
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnshp="http://php.net/xsl" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of
select="php:functionString('AutoLoaded:rintText' ,@dummy)"
disable-output-escaping="yes"/>
</xsl:template></xsl:stylesheet>
EOSTRING;
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
echo $className."\n";
static $classes = array('AutoLoaded'=>'AutoLoaded.php');
require_once($classes[$className]);
}
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new
DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions();
$proc->importStyleSheet($xslt);
$proc->transformToXML($doc);
?>

Expected result:
----------------
AutoLoaded

Actual result:
--------------
autoloaded
Fatal error: require_once() [function.require]: Failed opening required
.....

--
Edit bug report at http://bugs.php.net/?id=38218&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38218&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38218&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38218&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38218&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38218&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38218&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38218&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38218&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38218&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38218&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38218&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38218&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38218&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38218&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38218&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38218&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38218&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38218&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38218&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38218&r=mysqlcfg
  Reply With Quote


 


2 22nd August 21:46
tony2001
External User
 
Posts: 1
Default #38218 : php:functionString tries to access objects with their names in lowercase



ID: 38218
Updated by: tony2001@php.net
Reported By: moksinski at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: XSLT related
Operating System: windows 2000
PHP Version: 6CVS-2006-07-26 (snap)
New Comment:

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2006-07-26 08:47:20] moksinski at gmail dot com

Description:
------------
php:functionString tries to access objects with their names in
lowercase. when you use autoloader to include your classes it generates
fatal error because it cannot find the proper php file.

Reproduce code:
---------------
<?php //FILE AutoLoaded.php
class AutoLoaded { public static function printText($text) { return
$text; }}
?>

<?php //FILE index.php
$xsl=<<<EOSTRING
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnshp="http://php.net/xsl" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of
select="php:functionString('AutoLoaded:rintText' ,@dummy)"
disable-output-escaping="yes"/>
</xsl:template></xsl:stylesheet>
EOSTRING;
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
echo $className."\n";
static $classes = array('AutoLoaded'=>'AutoLoaded.php');
require_once($classes[$className]);
}
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new
DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions();
$proc->importStyleSheet($xslt);
$proc->transformToXML($doc);
?>

Expected result:
----------------
AutoLoaded

Actual result:
--------------
autoloaded
Fatal error: require_once() [function.require]: Failed opening required
.....


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38218&edit=1
  Reply With Quote
3 22nd August 22:51
php-bugs@lists.php.net (moksinski at gmail dot
External User
 
Posts: 1
Default #38218 : php:functionString tries to access objects with their names in lowercase


ID: 38218
User updated by: moksinski at gmail dot com
Reported By: moksinski at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: XSLT related
Operating System: windows 2000
PHP Version: 6CVS-2006-07-26 (snap)
New Comment:

php6.0-win32-200607260830 generates the same error
php5.2-win32-200607261030 - works fine


Previous Comments:
------------------------------------------------------------------------

[2006-07-26 08:53:22] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

------------------------------------------------------------------------

[2006-07-26 08:47:20] moksinski at gmail dot com

Description:
------------
php:functionString tries to access objects with their names in
lowercase. when you use autoloader to include your classes it generates
fatal error because it cannot find the proper php file.

Reproduce code:
---------------
<?php //FILE AutoLoaded.php
class AutoLoaded { public static function printText($text) { return
$text; }}
?>

<?php //FILE index.php
$xsl=<<<EOSTRING
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnshp="http://php.net/xsl" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of
select="php:functionString('AutoLoaded:rintText' ,@dummy)"
disable-output-escaping="yes"/>
</xsl:template></xsl:stylesheet>
EOSTRING;
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
echo $className."\n";
static $classes = array('AutoLoaded'=>'AutoLoaded.php');
require_once($classes[$className]);
}
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new
DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions();
$proc->importStyleSheet($xslt);
$proc->transformToXML($doc);
?>

Expected result:
----------------
AutoLoaded

Actual result:
--------------
autoloaded
Fatal error: require_once() [function.require]: Failed opening required
.....


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38218&edit=1
  Reply With Quote
4 22nd August 22:51
chregu
External User
 
Posts: 1
Default #38218 : php:functionString tries to access objects with their names in lowercase


ID: 38218
Updated by: chregu@php.net
Reported By: moksinski at gmail dot com
Status: Open
Bug Type: XSLT related
Operating System: windows 2000
PHP Version: 6CVS-2006-07-26 (snap)
New Comment:

zend_make_callable() does a lowercase in PHP 6, which it
didn't before

don't know, which part has to be fixed for this...


Previous Comments:
------------------------------------------------------------------------

[2006-07-26 11:27:39] moksinski at gmail dot com

php6.0-win32-200607260830 generates the same error
php5.2-win32-200607261030 - works fine

------------------------------------------------------------------------

[2006-07-26 08:53:22] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

------------------------------------------------------------------------

[2006-07-26 08:47:20] moksinski at gmail dot com

Description:
------------
php:functionString tries to access objects with their names in
lowercase. when you use autoloader to include your classes it generates
fatal error because it cannot find the proper php file.

Reproduce code:
---------------
<?php //FILE AutoLoaded.php
class AutoLoaded { public static function printText($text) { return
$text; }}
?>

<?php //FILE index.php
$xsl=<<<EOSTRING
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnshp="http://php.net/xsl" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of
select="php:functionString('AutoLoaded:rintText' ,@dummy)"
disable-output-escaping="yes"/>
</xsl:template></xsl:stylesheet>
EOSTRING;
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
echo $className."\n";
static $classes = array('AutoLoaded'=>'AutoLoaded.php');
require_once($classes[$className]);
}
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new
DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions();
$proc->importStyleSheet($xslt);
$proc->transformToXML($doc);
?>

Expected result:
----------------
AutoLoaded

Actual result:
--------------
autoloaded
Fatal error: require_once() [function.require]: Failed opening required
.....


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38218&edit=1
  Reply With Quote
5 22nd August 22:51
tony2001
External User
 
Posts: 1
Default #38218 : php:functionString tries to access objects with their names in lowercase


ID: 38218
Updated by: tony2001@php.net
Reported By: moksinski at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: XSLT related
Operating System: windows 2000
PHP Version: 6CVS-2006-07-26 (snap)
-Assigned To:
+Assigned To: tony2001
New Comment:

Obviously, the engine is not completely ready for Unicode.
I'll take a look at it.


Previous Comments:
------------------------------------------------------------------------

[2006-07-26 11:48:36] chregu@php.net

zend_make_callable() does a lowercase in PHP 6, which it
didn't before

don't know, which part has to be fixed for this...

------------------------------------------------------------------------

[2006-07-26 11:27:39] moksinski at gmail dot com

php6.0-win32-200607260830 generates the same error
php5.2-win32-200607261030 - works fine

------------------------------------------------------------------------

[2006-07-26 08:53:22] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

------------------------------------------------------------------------

[2006-07-26 08:47:20] moksinski at gmail dot com

Description:
------------
php:functionString tries to access objects with their names in
lowercase. when you use autoloader to include your classes it generates
fatal error because it cannot find the proper php file.

Reproduce code:
---------------
<?php //FILE AutoLoaded.php
class AutoLoaded { public static function printText($text) { return
$text; }}
?>

<?php //FILE index.php
$xsl=<<<EOSTRING
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlnshp="http://php.net/xsl" xsl:extension-element-prefixes="php">
<xsl:template match="xml"><xsl:value-of
select="php:functionString('AutoLoaded:rintText' ,@dummy)"
disable-output-escaping="yes"/>
</xsl:template></xsl:stylesheet>
EOSTRING;
$xml='<xml dummy="everything is ok"/>';
function __autoload($className) {
echo $className."\n";
static $classes = array('AutoLoaded'=>'AutoLoaded.php');
require_once($classes[$className]);
}
$doc = new DOMDocument('1.0','utf-8'); $doc->loadxml($xml); $xslt = new
DOMDocument(); $xslt->loadxml($xsl);
$proc = new XSLTProcessor(); $proc->registerPHPFunctions();
$proc->importStyleSheet($xslt);
$proc->transformToXML($doc);
?>

Expected result:
----------------
AutoLoaded

Actual result:
--------------
autoloaded
Fatal error: require_once() [function.require]: Failed opening required
.....


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38218&edit=1
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666