#36795 [Com]: Inappropriate unterminated entity reference in DOMElement-setAttribute
ID: 36795 Comment by: php dot net at jax dot be Reported By: john at carney dot id dot au Status: No Feedback Bug Type: DOM XML related Operating System: Windows/Linux PHP Version: 5.1.2 New Comment: In PHP 4.2.2 I have the same issue. code ?php require_once(sms/messageRelay.class.php); $doc = domxml_new_doc(1.0); $msg = $doc-create_element(message); $msg-set_attribute(type, MT); $doc-append_child($msg); $auth = $doc-create_element(authentication); $str = abc d e f; $auth-set_content($str); $msg-append_child($auth); echo pre; echo $doc-dump_mem(true, UTF-8); echo /pre; ? /code It chokes on the . Previous Comments: [2006-04-01 04:49:32] tamit at xmission dot com This is most definitely a bug. I've replicated by producing the following tree in my code: (This is well-formed XML so I have no idea why there would be a problem.) -BEGIN XML ?xml version=1.0 encoding=iso-8859-1? classes class classid=0 parentid= class_level=0Rootclass classid=1 parentid=0 class_level=1Adhesives /class class classid=3286 parentid=0 class_level=1Agricultural and Farming Products/class class classid=3283 parentid=0 class_level=1Architectural and Civil Engineering Products/class class classid=14 parentid=0 class_level=1Automatic ID/class class classid=45 parentid=0 class_level=1Chemical Processing /class class classid=124 parentid=0 class_level=1Cleaning Products /class class classid=148 parentid=0 class_level=1Communication Systems /class class classid=264 parentid=0 class_level=1Computer Hardware /class class classid=3281 parentid=0 class_level=1Construction Equipment and Supplies/class class classid=489 parentid=0 class_level=1Controls /class class classid=589 parentid=0 class_level=1Display /class class classid=612 parentid=0 class_level=1Electrical Equipment /class class classid=772 parentid=0 class_level=1Electronic Components /class class classid=3282 parentid=0 class_level=1Explosives, Armaments, and Weaponry/class class classid=920 parentid=0 class_level=1Fasteners /class class classid=954 parentid=0 class_level=1Fluid /class class classid=3461 parentid=0 class_level=1Food Processing /class class classid=3288 parentid=0 class_level=1Health, Medical, /class class classid=1029 parentid=0 class_level=1HVAC/class class classid=1068 parentid=0 class_level=1Labels Tags Signage /class class classid=3279 parentid=0 class_level=1Laboratory and Research Supplies and Equipment/class class classid=1083 parentid=0 class_level=1Lubricants/class class classid=1106 parentid=0 class_level=1Machinery /class class classid=1424 parentid=0 class_level=1Material Handling /class class classid=1303 parentid=0 class_level=1Materials /class class classid=3284 parentid=0 class_level=1Mechanical Components and Assemblies/class class classid=1620 parentid=0 class_level=1Mechanical Power Transmission/class class classid=3462 parentid=0 class_level=1Mining, Oil Drilling /class class classid=1728 parentid=0 class_level=1Mounting /class class classid=3285 parentid=0 class_level=1Non-Industrial Products/class class classid=1782 parentid=0 class_level=1Optics /class class classid=2054 parentid=0 class_level=1Packaging Equipment /class class classid=2151 parentid=0 class_level=1Paints /class class classid=2185 parentid=0 class_level=1Plant Furnishings /class class classid=2196 parentid=0 class_level=1Portable Tools/class class classid=2286 parentid=0 class_level=1Printing /class class classid=3539 parentid=0 class_level=1Problematic Headings/class class classid=3463 parentid=0 class_level=1Retail and Sales Equipment/class class classid=2328 parentid=0 class_level=1Robotics/class class classid=2369 parentid=0 class_level=1Safety /class class classid=2399 parentid=0 class_level=1Sensors Monitors /class class classid=3280 parentid=0 class_level=1Services/class class classid=2585 parentid=0 class_level=1Software/class class classid=2697 parentid=0 class_level=1Test /class class classid=3919 parentid=0 class_level=1Textile Industry Products/class
#36949 [Fbk-Opn]: mysqli-fetch_object cripples mysqli object so that it can't be closed correctl
ID: 36949 User updated by: jax at student dot unibe dot ch Reported By: jax at student dot unibe dot ch -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Gentoo Linux PHP Version: 5.1.2 New Comment: Ok i installed PHP 5.1.3 RC3 from CVS and problem persists: [EMAIL PROTECTED]: cli # ./php --version PHP 5.1.3RC3 (cli) (built: Apr 11 2006 00:27:07) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies [EMAIL PROTECTED]: cli # ./php test.php 2006-04-11 00:38:02br2006-04-11 00:38:02br Warning: mysqli::close(): Couldn't fetch mysqli in /root/php5.1-200604102030/sapi/cli/test.php on line 35 test.php contained exact code mentioned in first post. Previous Comments: [2006-04-10 12:03:16] [EMAIL PROTECTED] You don't need to INSTALL it, just run your test script from the compiled dir: sapi/cli/php test.php [2006-04-05 12:42:40] jax at student dot unibe dot ch I cannot currently install CVS PHP on the production server, perhaps somebody could please test this and feedback so we can resolve this issue. Thank you in advance. Gabe Jackson [2006-04-02 16:00:00] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip [2006-04-02 15:14:56] jax at student dot unibe dot ch Description: Test Case for mysqli-fetch_object bug class A and class B contain the exact same code Using mysqli-fetch_object causes warning when the destructor of B is called (mysqli-close()): Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/php/test.php on line 56 (destructor of B) If mysqli-fetch_assoc is used instead of fetch_object, it works fine. Replace $row = $result-fetch_object(); echo $row-my_time; With $row = $result-fetch_assoc(); echo $row['my_time']; to test something must be wrong with fetch_object Reproduce code: --- class A { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem -- $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } class B { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } $A = new A(); $B = new B(); Expected result: $this-mysqli-close() should work without throwing an error Actual result: -- 2006-04-02 15:01:36 2006-04-02 15:01:36 Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/test.php on line 56 -- Edit this bug report at http://bugs.php.net/?id=36949edit=1
#36949 [Fbk-Opn]: mysqli-fetch_object cripples mysqli object so that it can't be closed correctl
ID: 36949 User updated by: jax at student dot unibe dot ch Reported By: jax at student dot unibe dot ch -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Gentoo Linux PHP Version: 5.1.2 New Comment: I cannot currently install CVS PHP on the production server, perhaps somebody could please test this and feedback so we can resolve this issue. Thank you in advance. Gabe Jackson Previous Comments: [2006-04-02 16:00:00] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip [2006-04-02 15:14:56] jax at student dot unibe dot ch Description: Test Case for mysqli-fetch_object bug class A and class B contain the exact same code Using mysqli-fetch_object causes warning when the destructor of B is called (mysqli-close()): Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/php/test.php on line 56 (destructor of B) If mysqli-fetch_assoc is used instead of fetch_object, it works fine. Replace $row = $result-fetch_object(); echo $row-my_time; With $row = $result-fetch_assoc(); echo $row['my_time']; to test something must be wrong with fetch_object Reproduce code: --- class A { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem -- $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } class B { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } $A = new A(); $B = new B(); Expected result: $this-mysqli-close() should work without throwing an error Actual result: -- 2006-04-02 15:01:36 2006-04-02 15:01:36 Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/test.php on line 56 -- Edit this bug report at http://bugs.php.net/?id=36949edit=1
#36949 [NEW]: mysqli-fetch_object cripples mysqli object so that it can't be closed correctl
From: jax at student dot unibe dot ch Operating system: Gentoo Linux PHP version: 5.1.2 PHP Bug Type: MySQLi related Bug description: mysqli-fetch_object cripples mysqli object so that it can't be closed correctl Description: Test Case for mysqli-fetch_object bug class A and class B contain the exact same code Using mysqli-fetch_object causes warning when the destructor of B is called (mysqli-close()): Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/php/test.php on line 56 (destructor of B) If mysqli-fetch_assoc is used instead of fetch_object, it works fine. Replace $row = $result-fetch_object(); echo $row-my_time; With $row = $result-fetch_assoc(); echo $row['my_time']; to test something must be wrong with fetch_object Reproduce code: --- class A { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem -- $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } class B { private $mysqli; public function __construct() { $this-mysqli = new mysqli(localhost, u, p, test); $result = $this-mysqli-query(SELECT NOW() AS my_time); // Line Causing Problem $row = $result-fetch_object(); echo $row-my_time.br; $result-close(); } public function __destruct() { $this-mysqli-close(); } } $A = new A(); $B = new B(); Expected result: $this-mysqli-close() should work without throwing an error Actual result: -- 2006-04-02 15:01:36 2006-04-02 15:01:36 Warning: mysqli::close() [function.close]: Couldn't fetch mysqli in /home/path/to/test.php on line 56 -- Edit bug report at http://bugs.php.net/?id=36949edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36949r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36949r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36949r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36949r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36949r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36949r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36949r=needscript Try newer version:http://bugs.php.net/fix.php?id=36949r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36949r=support Expected behavior:http://bugs.php.net/fix.php?id=36949r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36949r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36949r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36949r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36949r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36949r=dst IIS Stability:http://bugs.php.net/fix.php?id=36949r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36949r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36949r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36949r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36949r=mysqlcfg
#21748 [NEW]: ftp_chmod() needed to create a dir and chmod it 777 if SAFE_MODE is ENABLED
From: [EMAIL PROTECTED] Operating system: GNU/Linux PHP version: 4.3.0 PHP Bug Type: Feature/Change Request Bug description: ftp_chmod() needed to create a dir and chmod it 777 if SAFE_MODE is ENABLED It is impossible to create a dir and make it chmod 777 when SAFE_MODE is ENABLED. This is needed when you would like to create a directory for image uploading for example... like the admin of a site creates a new model in the CMS, and then a new dir should be created for the model, so the images arent stored in 1 dir. Ok i've thought of putting binary in the database.. but this can't be used when using Macromedia FlashMX because the output must be all paths of the files and not many images on one page :) i Checked Description Possible Solution Bug #214: mode for chmod is in decimal instead of octal chmod(foo, 777) treats 777 as a decimal number, which forces you to do octal-decimal conversion. It's doing it with mkdir() as well. This is the correct behavior. If you want it to operate on an octal number, give it an octal number: chmod(foo, 0777); Bug #3571: Missing Features in the FTP functions. next to it it says: Looks like it was added. Thanks to whomever did so. but i do not see the function ftp_chmod() anywhere in the ftp_functions... i.e ftp_chmod() would be needed, eventhough chmod isnt defined in the RFC of FTP... Gabe Jackson -- Edit bug report at http://bugs.php.net/?id=21748edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21748r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21748r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21748r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21748r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21748r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21748r=support Expected behavior: http://bugs.php.net/fix.php?id=21748r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21748r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21748r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21748r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21748r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21748r=dst IIS Stability: http://bugs.php.net/fix.php?id=21748r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=21748r=gnused