php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63003 Some tests are failing.
Submitted: 2012-09-03 18:38 UTC Modified: 2012-09-04 05:33 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.4.6 OS: GNU/Linux (Fedora 17)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2012-09-03 18:38 UTC] remi@php.net
Description:
------------
Test which use DOM extension fails when dom is a shared extension.

Tests concerned
APC: Bug #62190	Couldn't fetch DOMProcessingInstruction with APC and native obj (php 5.4 nts) [tests/apc54_003.phpt]
APC: Bug #61912 Memory corruption in ext/dom (php 5.4) [tests/apc54_008.phpt]
APC: Bug #61824 apc produces strange notice (php 5.4) [tests/apc54_009.phpt]

Proposal: in server_test.inc, change to :
  $apcext = (substr(PHP_OS, 0, 3) == 'WIN') ? 'php_apc.dll' : 'apc.so';
  $domext = (substr(PHP_OS, 0, 3) == 'WIN') ? 'php_dom.dll' : 'dom.so';
  $php_args = "-d extension_dir=$doc_root/../modules -d extension=$apcext -d extension=$domext";

apc54_020.phpt only succed with php >= 5.4.6 (fails, at least, with php 5.4.5)

Proposal: adjust SKIPIF section




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-04 05:25 UTC] remi@php.net
A better solution (I think) is to honour TEST_PHP_ARGS when provided

When not set, keep current behaviour.
When set, use it, this will allow to pass, p.e.

TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=dom.so -d extension=apc.so" 

I will commit this change which seems not intrusive.
 [2012-09-04 05:32 UTC] remi@php.net
Automatic comment from SVN on behalf of remi
Revision: http://svn.php.net/viewvc/?view=revision&revision=327454
Log: Fixed bug #63003 honour TEST_PHP_ARGS, allow to add dom.so to server cmd
 [2012-09-04 05:33 UTC] remi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: remi
 [2012-09-04 05:33 UTC] remi@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/.

 For Windows:

http://windows.php.net/snapshots/
 
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 05:01:33 2025 UTC