Oracle and php 5.4 doesn't work

Description:
I was using php 5.3 with oracle client 11g and everything works fine. I have a wep app already in production with php5.3. I tried upgrade to php5.4, so I install in another folder XAMPP 1.8 who uses php 5.4. I tried everything to make oracle works, but I cannot connect in the database. Its really strange because in the same machine with the same remote database php 5.3 works just fine.
I am using in php 5.3 o php_oci8.dll with oracle client 11g
and with php5.4 I tried use php_oci8.dll. The error is:
ORA-12154: TNS:could not resolve the connect identifier specified
after I tried php_oci8_11g.dll and the the error is:
ORA-24315: illegal attribute type
I on a Windows Vista 64bit Machine,
Both php are 32bis,
oracle client is 32bits
The database is in another machine.
I think that everything that you need to simulate the problem is install XAMPP 1.8, enable php_oci8.dll and try run the test script.
Test script:
print_r(get_loaded_extensions());
print_r(get_extension_funcs('oci8'));
echo system('env');
echo "Client Version: " . oci_client_version();
print_r(oci_pconnect(DBUSER, DBPASSWORD, DBTNS));
print_r(oci_error());
die();
Expected result:
I was expecting that the oci_pconnect works, because the same script with php 5.3, works.
Actual result:
Array
[0] => Core
[1] => bcmath
[2] => calendar
[3] => com_dotnet
[4] => ctype
[5] => date
[6] => ereg
[7] => filter
[8] => ftp
[9] => hash
[10] => iconv
[11] => json
[12] => mcrypt
[13] => SPL
[14] => odbc
[15] => pcre
[16] => Reflection
[17] => session
[18] => standard
[19] => mysqlnd
[20] => tokenizer
[21] => zip
[22] => zlib
[23] => libxml
[24] => dom
[25] => PDO
[26] => bz2
[27] => SimpleXML
[28] => wddx
[29] => xml
[30] => xmlreader
[31] => xmlwriter
[32] => apache2handler
[33] => Phar
[34] => mbstring
[35] => exif
[36] => gd
[37] => gettext
[38] => mysql
[39] => mysqli
[40] => oci8
[41] => pdo_mysql
[42] => pdo_sqlite
[43] => soap
[44] => sockets
[45] => sqlite3
[46] => xmlrpc
[47] => xsl
[48] => mhash
Array
[0] => oci_define_by_name
[1] => oci_bind_by_name
[2] => oci_bind_array_by_name
[3] => oci_field_is_null
[4] => oci_field_name
[5] => oci_field_size
[6] => oci_field_scale
[7] => oci_field_precision
[8] => oci_field_type
[9] => oci_field_type_raw
[10] => oci_execute
[11] => oci_cancel
[12] => oci_fetch
[13] => oci_fetch_object
[14] => oci_fetch_row
[15] => oci_fetch_assoc
[16] => oci_fetch_array
[17] => ocifetchinto
[18] => oci_fetch_all
[19] => oci_free_statement
[20] => oci_internal_debug
[21] => oci_num_fields
[22] => oci_parse
[23] => oci_new_cursor
[24] => oci_result
[25] => oci_client_version
[26] => oci_server_version
[27] => oci_statement_type
[28] => oci_num_rows
[29] => oci_close
[30] => oci_connect
[31] => oci_new_connect
[32] => oci_pconnect
[33] => oci_error
[34] => oci_free_descriptor
[35] => oci_lob_save
[36] => oci_lob_import
[37] => oci_lob_size
[38] => oci_lob_load
[39] => oci_lob_read
[40] => oci_lob_eof
[41] => oci_lob_tell
[42] => oci_lob_truncate
[43] => oci_lob_erase
[44] => oci_lob_flush
[45] => ocisetbufferinglob
[46] => ocigetbufferinglob
[47] => oci_lob_is_equal
[48] => oci_lob_rewind
[49] => oci_lob_write
[50] => oci_lob_append
[51] => oci_lob_copy
[52] => oci_lob_export
[53] => oci_lob_seek
[54] => oci_commit
[55] => oci_rollback
[56] => oci_new_descriptor
[57] => oci_set_prefetch
[58] => oci_set_client_identifier
[59] => oci_set_edition
[60] => oci_set_module_name
[61] => oci_set_action
[62] => oci_set_client_info
[63] => oci_password_change
[64] => oci_free_collection
[65] => oci_collection_append
[66] => oci_collection_element_get
[67] => oci_collection_element_assign
[68] => oci_collection_assign
[69] => oci_collection_size
[70] => oci_collection_max
[71] => oci_collection_trim
[72] => oci_new_collection
[73] => oci_free_cursor
[74] => ocifreecursor
[75] => ocibindbyname
[76] => ocidefinebyname
[77] => ocicolumnisnull
[78] => ocicolumnname
[79] => ocicolumnsize
[80] => ocicolumnscale
[81] => ocicolumnprecision
[82] => ocicolumntype
[83] => ocicolumntyperaw
[84] => ociexecute
[85] => ocicancel
[86] => ocifetch
[87] => ocifetchstatement
[88] => ocifreestatement
[89] => ociinternaldebug
[90] => ocinumcols
[91] => ociparse
[92] => ocinewcursor
[93] => ociresult
[94] => ociserverversion
[95] => ocistatementtype
[96] => ocirowcount
[97] => ocilogoff
[98] => ocilogon
[99] => ocinlogon
[100] => ociplogon
[101] => ocierror
[102] => ocifreedesc
[103] => ocisavelob
[104] => ocisavelobfile
[105] => ociwritelobtofile
[106] => ociloadlob
[107] => ocicommit
[108] => ocirollback
[109] => ocinewdescriptor
[110] => ocisetprefetch
[111] => ocipasswordchange
[112] => ocifreecollection
[113] => ocinewcollection
[114] => ocicollappend
[115] => ocicollgetelem
[116] => ocicollassignelem
[117] => ocicollsize
[118] => ocicollmax
[119] => ocicolltrim
Client Version: 11.1.0.6.0
<b>Warning</b>: oci_pconnect(): in <b>C:\xampp18\htdocs\config\aguaCheiro.php</b> on line <b>25</b>
Array
=> 24315
    [message] => ORA-24315: invalid atribute type
    [offset] => 0
    [sqltext] =>

It strongly sounds like you have multiple versions of Oracle libraries and are seeing some kind of clash.

Similar Messages

  • How do I use a NORMAL headset (dual 3.5mm) on my new Macbook pro retina? No usb ports available and headset buddy adapter doesn't work.

    Title says it all:
    How do I use a NORMAL headset (dual 3.5mm) on my new Macbook pro retina? No usb ports available and headset buddy adapter doesn't work.

    Hi Auracles1,
    Here's a pretty discussion regarding wireless printing with this device and a Mac.
    http://h30434.www3.hp.com/t5/Printer-networking-and-wireless/HP-Officejet-6500-E 709n-wireless-issue/m-p/258853
    I have a similar OfficeJet and it was a multi-step process. (1) Install printer drivers on the machine, (2) Add the printer queue in print & fax, (3) Run the "setup wizard" from the disc for wireless printing.

  • I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work. Help?

    I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work.
    ^^ that's the main problem. Here's the full history.
    I bought a new 13" i5 MBP, early 2011 edition. I had an old white Macbook 2.14 ghz core2duo on Snow Leopard. I attempted to port over my time machine backup, but encountered problems in that my User was inaccessible from the new computer after the import finished, and I had to go in and change the root password, etc, and for some reason or another, I couldn't install any programs at all from that administrator's account. By "couldn't" I mean I could install them, but upon installation they would never boot. So, I took it to the apple store and did a clean install from the most up to date Lion OSX. Then, I created a brand new admin account, instead of trying to import the old one, and things seemed great. Then, I just imported my old files from the TM backup, but not any system settings, permissions, or user data. Just my Docs, pics, vids, apps, and itunes stuff.
    Here's where things get weird again. I imported this stuff under the name "old", but all of these folders have a red negative sign on them, marking them as restricted. So, from my main admin account, I cannot even peruse these folders. Since I didn't import user data, I can't sign in to the "old" account to change permissions. I already tried to change the permissions from system preferences, but that didn't change anything. And now, for whatever reason, of all the apps that were imported then, MS Office is the only set of apps that does not work. When I click on it, it just says there was a problem and asks if I'd like to send a report to apple. I tried reinstalling it to no avail. I'm an English student, so i really need access to Word. Can anyone help? The Apple store is a major detour for me and would like to fix this issue myself.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • I have just updated my software to 10.8.2 and now my sound doesn't work. Any suggestions?

    I have just updated my software to 10.8.2 and now my sound doesn't work. Any suggestions?

    I used disk permission repair to try to resolve this as well as a 'soft' restart. Still have a grayed-out mute checkbox in the sound section of system preferences.

  • I just downloaded the updates and now my mail doesn't work. It says I now need a newer version of OS to allow I've to open my mail which I can't right now

    I just downloaded the updates and now my mail doesn't work. It says I now need a newer version of OS to allow I've to open my mail which I can't right now

    What version of the OS X are you running? Go to the Apple in the upper left corner and select About This Mac and report the Version back here.

  • At the moment I can use my apple Id on my iPod touch to connect to iCloud and IMessage and FaceTime but it doesn't work on App Store. Face to an error: can not connect to iTunes Store. What's wrong? My apple Id is working on my MacBook Pro as well.

    At the moment I can use my apple Id on my iPod touch to connect to iCloud and IMessage and FaceTime but it doesn't work on App Store &amp; iTunes just on iPod  Face to an error: can not connect to iTunes Store. (Setting... itunes &amp; app store)What's wrong? My apple Id is working on my MacBook Pro as well. And it was working on this iPod before resetting . Just after resetting I can not connect to App Store &amp; iTunes and I can not instal any app even free apps

    Try
    Can't connect to the iTunes Store

  • My ipod touch 5th generation will not turn on and the home button doesn't work. what do i do?

    Hello my name is Leslie and i would like to ask you guys a question on how to fix my ipod or what is wrong with it. My ipod touch 5th generation will not turn on and the home button doesn't work. what can i do to fix it ?

    Has the home button worked in the past, or is this been something that hasn't worked for some time? The only way to reset the device is with the sleep/wake (power) and home buttons together. Without it, you would have to wait until the battery dies and then plug it in to try and reset it. The Home button is used for several user troubleshooting steps. Without it, you cannot perform a reset, put the device into recovery mode, or place it in DFU mode. You need to get the home button repaired.

  • I recently installed WIndows 8 and now my scanner doesn't work. I have an HP M175nw printer/scanner

    I recently installed Windows 8 and now my scanner doesn't work. I have an HP M175nw printer/scanner

    update your scanner's driver.  ie, see if hp has a win 8 driver for that model.

  • HP Photosmart 6520 Server Connection Error: -1: Apps don't work and Scan to email doesn't work

    My HP PhotoSmart 6520 has a persistent error to connect to the server and therefore Apps and Scan to email doesn't work.
    I have manually set DNS to 8.8.8.8 / 8.8.4.4, I have installed latest driver on my Macbook pro, I have updated firmware, but still not working. Weird is also that in my ePrintCenter, the Apps I see there are not in line with thos visible on the printer.
    Detail is that I have set up the printer on a Windows PC but recently changed to Mac.
    Printing, scan to Computer all works fine.
    Help! I have read a lot on forums but so far no solution for me!

    Hi Jack6520,
    Welcome to the HP Support Forums.  I see that you are unable to connect to the apps and use the scan to email feature of your Photosmart 6520 printer due to a server connection error.
    First off, thank you for the very detailed information, I really appreciate it.
    To better assist you, would you please provide some additional information:
    When you set the manual DNS servers, did you also set a manual IP address for the printer?
    Have you changed routers or internet service providers recently?  Have you updated the firmware on the router? If you have an ISP-provided router, do you know if they pushed out a firmware update?
    Have you recently installed any new anti-virus/malware software?  If so it may have blocked the ports the printer uses to communicate.  I’ve included a post by VisionAiry titled “Check the Anti-Virus for Blocked Ports and Timed Scans”. 
    Do you have a guest network setup? Please Print a Network Configuration page. It will let you know how many networks the printer sees. A guest network will have the same name as your network with a tag about it being the guest network.
    Previously did you customize the printer’s ePrint email address? I’m asking this because I might ask you to disable then enable the web services.  If we have to take this step you will lose the customized ePrint email address without any ability to get it back.
    What version of Mac OS X are you using? whatsmyos.com
    Are there any cables other than the power cable connected to the printer?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • I have an iPhone and when I got it, I had a Toshiba laptop.  Now I have a MacBook Pro, but when I try to wi-fi sync my iphone and new computer, it doesn't work because on my iphone it is still trying to sync with my old computer.  How I can fix this?

    I have an iPhone and when I got it, I had a Toshiba laptop.  Now I have a MacBook Pro, but when I try to wi-fi sync my iphone and new computer, it doesn't work because on my iphone it is still trying to sync with my old computer.  How I can fix this?

    Move the content from the old computer to the new computer.
    Sync the iPhone via cable to the new computer and enable Wi-Fi syncing.
    It should now be possible to sync via Wi-Fi to the new computer.

  • Hi! I bought my iPhone from USA and the power button doesn't work. I have warranty. I will come to UK soon. I wanna learn; can i benefit my warranty in UK?

    Hi! I bought my iPhone from USA and the power button doesn't work. I have warranty. I will come to UK soon. I wanna learn; can i benefit my warranty in UK?

    The warranty is not and has never been International.  Warranty and support are only valid in the country of origin.  The only exception is for devices sold in the EU where the EU is treated as one country for warranty and support purposes.

  • My iPhone 5 is disabled and the power button doesn't work. How would I fix it?

    My iPhone 5 is disabled and the power button doesn't work. How would I fix it? Please Help

    wait it for your iPhone to die then before it turns it plug it into iTunes while holding the home button and it will force it into recovery mode.
    will be hard to get the timing right cause u will need to wait for the battery to die and charge up again. Other then that just take it to apple and have them replace the device for a fee.

  • I have an ipod touch 5th generation and it won't cut on. I've had it about a year and the home button doesn't work, How do I fix it?

    How do I fix my ipod?

    It is an ipod touch 5th generation. I've had it about a year and the home button doesn't work. Right now it doesn't want to turn on.

  • How to unlock an iphone 3gs when it's sim locked and the lock button doesn't work???

    I bought this iphone 3gs off an app. I just want to use it as an ipod. it is sim locked (with two attempts left) and the lock button doesn't work at all. What can I do? I just want to use it as an ipod.
    I have also tried everything. I took the sim card out and put it back in again. And I have also left it out. And I have tried connecting it to itunes but I need to unlock. (some of these were suggested by the seller)
    Please help me.
    im

    My guess - and this is completely a guess - is that the SIM in that phone has a PIN that was added to it by the previous owner. Whomever you bought it from didn't bother to check for this (or didn't care) before they got it from the previous owner.
    You need to get a new AT&T SIM for that phone - you could even borrow one from a friend if they have one that will fit the phone. You would only need the SIM to activate it.
    There is no way to activate an iPhone without a SIM in it, even if you don't plan to use it as anything other than an iPod.
    ~Lyssa

  • Zoom in-out and rotation in trackpad doesn't work in iPhoto and Aperture. Any solution?

    Zoom in-out and rotation in trackpad doesn't work in iPhoto and Aperture. Any solution?

    Sound like a trackpad problem and not an iPhoto one.  Have you asked in the forum dedicated to the Mac model you're using or is this an add on trackpad?
    OT

Maybe you are looking for

  • White screen computer turns off

    my macbook 2.16 intel duo running 10.6.8 has been turning itself off with a white screen, this follows weeks of fan noise that has now stopped. I have done all the basics and the hardrive is fine according to disc utility and tech tool all checks pas

  • E6: What is the most convenient way to switch betw...

    I have three email accounts: Hotmail, Yahoo and Gmail. Can you share how you normally switch to different account? I normally have to exit the one I am using and then start another one. Is there any short cut??

  • Some of the messages aren't dequeued using JMS/AQ

    Hi. I am having strange problems dequeuing messages from an Oracle9i Release 2 database. I have a trigger that sends a message everytime a table is updated. When I have SQL worksheet and update the table through a SQL statement then I only recieve ab

  • Route determination

    Hai All, In the step of define routes and sdtages, there is a field for procedure. If we give the standrad procedure how it will be effected in the route determination 2. Also we are checking the box cal;led shipping costs relevent. How we wll mainta

  • Reg: Guidance

    Hello, I am beginner of oracle sql and plsql. I am searching job in related this technology. Please anyone can guide me and tell me how to get a job in these technology. Thank you.